How to view Stack Dumps
-
How can we decode stack dumps? I see there's a utility ./spresense/sdk/tools/callstack.py, but where is the map file we are to use?
Thanks!
-
I would like to know this too.
Some clarifications
- Are we talking about the Arduino SDK build?
- and about the stack trace you get in the serial console?
There is a map file in the Arduino Output folder called output.map next to the elf and spk file. The Arduino Output folder is inside some temp folder dependent on the OS. It can be also specified when using the VS Code Arduino Plugin.
-
I found this in the documentation. https://developer.sony.com/develop/spresense/docs/sdk_tutorials_en.html#_tips_callstack
It does not say where the map file is, but that it is generated with the build. So I guess it is in the build folder.
-
@jens6151-0-1-1 No, I'm using the Spresense SDK directly. And yes, the stack trace from serial console.
-
@jens6151-0-1-1 This link is very helpful. Thanks!