VS Arduino
Visual Micro >> Installation & Troubleshooting >> Exeption decoder esp32
https://www.visualmicro.com/forums/YaBB.pl?num=1651531371

Message started by The_Specialist on May 2nd, 2022 at 10:42pm

Title: Exeption decoder esp32
Post by The_Specialist on May 2nd, 2022 at 10:42pm
The exception decoder doesn't work anymore with arduino esp sdk 2.0.3 rc.

Could you please test? In Arduino it is showed but in visual micro 2019 not.

My advice to you is set the exception decoder in the visual micro menu so it is easier to check it's found in visual micro. Now it is working or not.

Title: Re: Exeption decoder esp32
Post by Simon@Visual Micro on May 3rd, 2022 at 10:12am
Thanks for the report.

Can you attach an example of an exception as a text file, which you have hit on the ESP32 2.0.3-RC1 board package which is not working correctly with the exception decoder in vMicro.

Can you also please attach a full build log as shown at the top of this page in the yellow box so we can ensure we are using the correct setup and board.

Title: Re: Exeption decoder esp32
Post by The_Specialist on May 12th, 2022 at 4:48am
Here my veboselog and the backtrace

Backtrace:0x400dcab6:0x3ffb26d00x401d82bd:0x3ffb26f0 0x400d3225:0x3ffb2710 0x400dc80d:0x3ffb2820

This seems the information about the exception decoder in the build.

exceptions.serial.enabled=true
exceptions.serial.messages={vm.platform.root.path}/hardware/esp32/exceptions.txt
exceptions.serial.regex.exception_number=Exception \(([0-9]*)\):
exceptions.serial.regex.stack_addresses=40[0-2][0-9a-f]{5}\b
exceptions.serial.resolve.addr2line.args=-aipfC -e"{build.path}/{build.project_name}.elf"
exceptions.serial.resolve.addr2line.cmd=xtensa-esp32-elf-addr2line
exceptions.serial.resolve.stack_addresses.pattern="{compiler.path}{addr2line.cmd}" {addr2line.args} {stack_addresses.list}
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Build_020.txt ( 182 KB | 0 Downloads )

Title: Re: Exeption decoder esp32
Post by Simon@Visual Micro on May 12th, 2022 at 12:58pm
Thanks for the detail.

The latest version (22.04.29-2) should resolve this and show the Exception decoder button in this scenario, as well as decode the trace.  This is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Title: Re: Exeption decoder esp32
Post by The_Specialist on May 13th, 2022 at 10:43am
Did you know the extension changed to jar?

<home_dir>/Arduino/tools/EspExceptionDecoder/tool/EspExceptionDecoder.jar)

Another question. If I create a library it I see that GCC and GNU are missing. I have seen this in a video on youtube. I'm installing the Arduino-esp32 for git in this folder...

G:\Documents\Visual Studio 2019\Arduino\hardware\espressif\esp32

Title: Re: Exeption decoder esp32
Post by Tim@Visual Micro on May 13th, 2022 at 1:03pm
The exception decoder for the Arduino IDE has always been a jar file. That is because the Arduino IDE is java. In Visual Micro we implemented the decoder functionality using C#.

Please open a new thread about how to install custom toolchains in the sketchbook/hardware folder. The esp32 is normally best installed via Board Manager.

Title: Re: Exeption decoder esp32
Post by The_Specialist on May 13th, 2022 at 1:50pm
I tried first the lastest version founded on the homepage, but that one didn't work. Than I saw the link you send me was different. Now I did the test with the link you have me and it works. Thanks!

The latest version Visual Micro 22.04.29.1902 for Visual Studio 2017/2019

Maybe I don't have to open a new tread. I have an explanition of you. I will try that first, see it still works.

https://www.visualmicro.com/forums/YaBB.pl?num=1625425510/2

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.