-->
Page 1 of 1

Crashdump and Stackdump

PostPosted: Tue Oct 08, 2019 12:28 pm
by Agentsmithers
https://github.com/SuperHouse/esp-open- ... rash-Dumps
So I am doing a lot of reading and research on this and came across this example when trying to research an answer for an exception I am getting in my project.
Do any of you know if I write something like this

uint_32 SP = 0;
#define ReadStackAddress() { asm volatile( "mov.n SP, A1); }

can call ReadStackAddress() that I could possibly do some logic to walk this stack to determine the full stack trace for NONOS SDK?

Before I go down this road I wanted to see if anyone knows this is possible without RTOS?

Here is a pretty solid example of code that touches on the stacktrace: https://gitlab.fai.utb.cz/jurenat/Espru ... d4c9da81c0
https://backend.cesanta.com/blog/esp8266-gdb.shtml