Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello,
I want to access the stack and heap pointers for debugging purposes, and write their values to a terminal:
unsigned int StackPointer = *[address of sp?]; unsigned int HeapPointer = *[address of hp?]; pc.printf("The stack pointer is at: %08x\n", StackPointer); pc.printf("The heap pointer is at: %08xp\n", HeapPointer);How can I access these pointers?
Thanks Tim