This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM57L843: How to achieve stack frame backtracking on the RM57L843

Part Number: RM57L843

How to achieve stack frame backtracking on the RM57L843,other ARM architecture mcu have the FP stack frame pointer, I have read the cortex-r5 data manual

did not find some register about this.

  • Hi Peng,

    The stack pointer (SP) is a hardware feature of almost all processors.  The SP points to the present end of a queue which holds return addresses of all the calls made to the moment.  When a call is made, the return address is pushed onto the stack; upon exiting the called function, the return address is popped from the stack.

    The frame pointer (FP) is an optional programming feature used by some programming languages on some processors. Not all processors have the hardware resources to implement a frame pointer and some implementations don't want to have the extra overhead of maintaining a frame pointer. The FP points to a fixed point in the stack and points to a location in the stack where the arguments and local variables for a called function are located. I don’t have solution to implement FP using SW.

    Regards,

    QJ

     

  • Hi Peng,

    I got advice that my answer may not be correct or accurate. I forwarded your question to TI compiler forum:

    e2e.ti.com/.../

    Regards,
    QJ
  • thanks for your reply.

    Does the RM57L843 has the frame point?