Closed Grutsch closed 2 years ago
same here when trying to decode from ESP32 Arduino board support V2.0.2
Same here also! Arduino Core v2.0.2
which version exception decoder though?
2.0.2
Same here V2.0.2 of the decoder.
Looking at the code it seems there is a problem opening/reading the input stream or the thread.
You swallow a number of exceptions there.
Suggest you re-wrap them in RunTimeExceptions and re-throw them and catch the handle (print) them at the higher level for better error messages.
ok, i guess we are in situation where the latest arduino-esp32 is also 2.0.2 :) Which version arduino-esp32 are you using?
I am using Arduino IDE V1.8.19 and ESP32 board support V2.0.2 installed from this url https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json and the decoder from your releases page (as of 7th March 2022) p.s. this decoder is invaluable. I am lost without it :-(
Except to build a version for you to try, that has more debug enabled, I do not know what to do. I am using the same decoder and it works nicely here (Mac, but should not matter). Latest version should work fine on all chips that are currently supported too (and any future ones, hopefully)
No problem I am willing to help. So just let me know where to pick up this debug version
Please see the discussion on #68, already closed.
TL;DR: Install the ESP32 board package manually from Espressif's GitHub repo.
The long version: The official board definition package from Espressif for the ESP32 architecture as referenced by @drmpf is still outdated and does not download the latest toolchain ("-patch2" version). If you manually install the ESP32 board package, it should work.
There is no problem with the EspExceptionDecoder (2.0.2) per se, but it would be very useful to have more detailed error messages than a simple "Decode Failed".
The instructions for the manual install are here.
@mcpicoli
it would be very useful to have more detailed error messages
There are a couple of articles I wrote on Java error recovery with some sample code for un-wrapping exceptions. Java GUI Programming Tips and Guidelines - Error Recovery and Java GUI Programming Tips and Guidelines -- Unified Error/Information Messages and Help
I can confirm that adding the .dll's from the zip file mentioned #68
fixed my issue and that I can now decode traces from ESP23 V2.0.2 installed via url
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
For me, the solution described by drmpf is working. So I will close this issue. Thanks for the help.
I am using the latest ExceptionDecoder (2.02) also tried earlier ones but doesn't matter what I do I get Decode Failed (IDE 1.8.19).