Accessing initial_sp and heap_base at run time?

Hello,

We are currently working on stack and heap management on STM32F10x. Is there a way to access then __initial_sp and __heap_base values in the start up file at runtime.

We have found that when tracing the stack, that some code changes effect the position of both these values and rather then having to manual check after each build if the address has change we would like to do this at runtime.

Any suggestion on this can be achieved?

Cheers.

Parents Reply Children
No data
More questions in this forum