Compiler/RM57L843: How to achieve stack frame backtracking on the RM57L843?

Part Number: RM57L843

Tool/software: TI C/C++ Compiler

This question was posted to MCU forum. I am not an expert of SW and know little about how we use the CPU registers in CCS/compiler. Please help us answer this question. Thanks

RM57L843: How to achieve stack frame backtracking on the RM57L843

Shuai Peng

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.

Thanks and Regards,
QJ Wang

2 Replies

  • I'm not aware of any documentation which specifically discusses how to somehow traverse the stack frames.  Much of the basic information is in the section titled Function Structure and Calling Conventions in the ARM compiler manual.  But it is probably missing some of the details.

    Thanks and regards,


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

    1. Run the program in CCS if possible and use the CCS stack view.
    2. Otherwise, you will need to parse the DWARF debugging information to get information about each function's frame.  The interpretation of this information is specified in the DWARF standard.
    3. If you don't have DWARF debugging information, you will need to reverse-engineer the assembly code for each function to figure out where it saved key registers on the stack, and how big the stack frame is.

    Can you tell us more about why you need a stack backtrace?  Is this a post-mortem analysis of a crash?