platformio / platform-espressif8266

Espressif 8266: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif8266
Apache License 2.0
323 stars 219 forks source link

Esp8266ExceptionDecoder: add monitor filter to decode exception traces #197

Closed Tasssadar closed 4 years ago

Tasssadar commented 4 years ago

Requires https://github.com/platformio/platformio-core/pull/3383.

Adds a monitor filter that can decode esp8266 exception traces, the result looks like this (stuff added by this filter outlined in red):

trace

It decodes the exception number, registers and whatever looks like program address in the stack dump.

It was tested on Linux with Python3 and Windows with Python 2 with ESP8266 NodeMCU-clone board.

Add --filter=esp8266_exception_decoder to monitor_flags to activate it.

Fixes #31

ivankravets commented 4 years ago

@Tasssadar could you share somewhere ESP8266 project which raises an exception? I would like to test it on my machine after code refactoring. Thanks!

Tasssadar commented 4 years ago

Sure, here it is: https://github.com/Tasssadar/esp8266_crash

AgainPsychoX commented 2 years ago

Is there anyway to parse crash from log file? I don't have the monitor connection live, but I get the logs.