Could we add support for stack trace decoding in the ESP8266?

The Arduino IDE supports decoding the stack traces that the ESP8266 outputs through the serial connection https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.md#Decode. Would it be possible to integrate this tool into PlatformIO: GitHub - me-no-dev/EspExceptionDecoder: Exception Stack Trace Decoder for ESP8266 and ESP32.

1 Like

Please open a feature request here Issues · platformio/platform-espressif8266 · GitHub

I had a the same problem, that I don’t have the Arduino IDE installed. I created GitHub - janLo/EspArduinoExceptionDecoder: Python Script to decode ESP8266 Exceptions.. Maybe its helpful.

Why do you need Python 3? Could you add support for Python 2.7? We depend on it.

Because python 2.7 was released in 2010 and we have 2018 :wink:

It should not be difficult to add 2.7 support - I’ll have a look.

@ivankravets Should work with 2.7 now.

See: Add stack trace decoding [$35] · Issue #31 · platformio/platform-espressif8266 · GitHub

Look also miniterm filter approach at the Gist: serial monitor for ESP8266, run "pio run -t upload" on ctrl-t ctrl-u, decode stacktraces, paths are hardcoded for platformio with nodemcuv2 board · GitHub