How to access panic reason/stacktrace on next boot?
Posted: Wed May 02, 2018 4:20 pm
I would like to have devices that reboot unexpectedly, report that panic reason/data over the network after the reboot has settled and network connectivity has been established. I only need the text of what is printed by the standard panic handler -- not a full coredump, although I realize that is also possible. Perhaps a ringbuffer of recent UART logs, could also be good, and might include the panic text anyway.
So is there some means to store some data that will persist across soft reboots [in fact, I would prefer NOT flash, or encrypted-only flash -- it might contain sensitive data], and which can be reliably written even during a panic handler? Ideally something in esp-idf which is already hooked up to the panic data and/or UART logs.
So is there some means to store some data that will persist across soft reboots [in fact, I would prefer NOT flash, or encrypted-only flash -- it might contain sensitive data], and which can be reliably written even during a panic handler? Ideally something in esp-idf which is already hooked up to the panic data and/or UART logs.