Other Parts Discussed in Thread: SYSBIOS
Print the callstack of function is useful for analyse issue.
Such as A function call B function, B function call C function, Can we add code in C function to Print the callstack A-->B-->C ? Which API to use?
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.
Hi,
I don't think there is a generic call stack API that you can use.
You can add debug prints in different APIs or look at call stack in CCS.
Regards,
Rishabh
Hi,
If you are using linux use gdb, whenever the breakpoint is hit you can print call stack using backtrace
command.
Regards,
Rishabh
Hi,
Please follow the first suggestion for SYSBIOS i.e. add debug prints in different APIs or look at call stack in CCS
Regards,
Rishabh
Hi Rishabh
Sorry, I don't get your idea, how to add debug prints in different APIs? Sys/bios not have Callstack API, and only add debug info in functions?
Hi,
Yes, I meant that you add debug info in functions.
E.g. A() { print("Entering A"); }
Regards,
Rishabh