AnsweredAssumed Answered

Set Stack onto external memory

Question asked by abderrezak on Feb 9, 2017
Latest reply on Feb 10, 2017 by abderrezak

Hi,

On my custom board, I have set an external RAM on 32MB. I use it as heap with the following:

--defsym=__user_heap_base=0xA0000000

--defsym=_pvHeapLimit=0xA2000000

since Redlib offers this symbols. It works fine.

Now I want to try using the external RAM for both heap and stack using this symbols:

--defsym=__user_heap_base=0xA0000000

--defsym=__user_stack_top=0xA2000000

My code end with a HardFault trying to execute a NULL pointer.

Why this is happening? For sure I'm messing something about memory segmentation, or about its initialization.

I am thankful for your help

Outcomes