Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esp8266ExceptionDecoder: add monitor filter to decode exception traces #197

Merged
merged 2 commits into from
Mar 11, 2020

Conversation

Tasssadar
Copy link
Contributor

@Tasssadar Tasssadar commented Feb 21, 2020

Requires platformio/platformio-core#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

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

Fixes platformio#31
@ivankravets ivankravets merged commit c519cb8 into platformio:develop Mar 11, 2020
@ivankravets
Copy link
Member

@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
Copy link
Contributor Author

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

@AgainPsychoX
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add stack trace decoding [$35]
3 participants