To explain further, as it was not obvious to me:
You can use this indirectly to decode a stack trace from PlatformIO, but you do need Arduino installed. However you don’t need to open your PlatformIO project in Arduino, so it is not too hard.
Try this:
- Install in the Arduino tools as described in the the
me-no-dev
git readme. - In PlatformIO build and run your project and get the stack trace ready in the terminal window. This generates the .elf file.
- Open in Arduino menu, Tools, ESP Exception Decoder.
- You are prompted for a .esp file. Open from /.pio/build/lolin-d32/firmware.elf (or similar)
- You are prompted for the trace - paste in from the terminal
- Read the decoded stack results.