Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Re: ESP32 exception decoding? (Read 4898 times)
Andreas E
Junior Member
**
Offline


Posts: 29
Joined: Mar 7th, 2017
Re: ESP32 exception decoding?
Nov 19th, 2018 at 6:34am
Print Post  
Hi, 
I need the possibility for exception decoding and the addr2line functionality, too.
Is this part of the head version of visual micro? According to the Visual Studio 2017 Extensions and Update page, I've version 1810.4.0 installed. Anyway, there is no "!" when an exceptions occurs.

Regards
Andreas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 exception decoding?
Reply #1 - Nov 19th, 2018 at 12:04pm
Print Post  
Post the serial output you are seeing with the exception.
  
Back to top
WWW  
IP Logged
 
Andreas E
Junior Member
**
Offline


Posts: 29
Joined: Mar 7th, 2017
Re: ESP32 exception decoding?
Reply #2 - Nov 19th, 2018 at 6:29pm
Print Post  
Please find the serial output. This is the first issue, it cannot followed up with a function in the serial monitor nor the Exception Decoder (this gives the message that it is not available for "arduino-esp32).

Regards,
Andreas
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Andreas E
Junior Member
**
Offline


Posts: 29
Joined: Mar 7th, 2017
Re: ESP32 exception decoding?
Reply #3 - Nov 19th, 2018 at 6:30pm
Print Post  
And this is a different problem, but with the same result in Visualmicro - VM doesn't give any additional information, and the Exception Decoder is not available, too.

Regards
Andreas
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 exception decoding?
Reply #4 - Nov 20th, 2018 at 6:57pm
Print Post  
Thanks, what info does the arduino ide exception encoder produce?

https://github.com/me-no-dev/EspExceptionDecoder

  
Back to top
WWW  
IP Logged
 
Andreas E
Junior Member
**
Offline


Posts: 29
Joined: Mar 7th, 2017
Re: ESP32 exception decoding?
Reply #5 - Nov 20th, 2018 at 8:31pm
Print Post  
It simply says "Not Supported on arduino-esp32".

I found some advice to rename the arduino-esp32 to esp32, tried different directories, etc. With these changes, compiling works fine (some paths needs to be adjusted), but EspExceptionDecoder still shows up with the same error message. (see e.g. here: https://github.com/me-no-dev/EspExceptionDecoder/issues/24)

When using the addr2line on the command line, everything is fine, but it's not that comfortable.

I'm not aware of how to get verbose messages from the exception decoder.

Thanks for your support!

Regards Andreas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 exception decoding?
Reply #6 - Nov 20th, 2018 at 8:36pm
Print Post  
Please switch on "vmicro>compiler>show build properties" and "vmicro>compiler>verbose" and post a .txt file (click reply to attach) or email to info[at]visualmicro.com along with a link to this thread.

Thanks
  
Back to top
WWW  
IP Logged
 
Andreas E
Junior Member
**
Offline


Posts: 29
Joined: Mar 7th, 2017
Re: ESP32 exception decoding?
Reply #7 - Nov 21st, 2018 at 7:01am
Print Post  
Ok, send the log via e-mail to you,
Regards
Andreas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 exception decoding?
Reply #8 - Nov 21st, 2018 at 12:53pm
Print Post  
Thanks I will take a look over the next few days.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 exception decoding?
Reply #9 - Nov 24th, 2018 at 10:18pm
Print Post  
Please delete this folder C:\Users\AKAEM\Documents\Arduino\hardware\espressif

Then restart the ide

Thanks
  
Back to top
WWW  
IP Logged
 
Andreas E
Junior Member
**
Offline


Posts: 29
Joined: Mar 7th, 2017
Re: ESP32 exception decoding?
Reply #10 - Nov 26th, 2018 at 8:19am
Print Post  
I can confirm that it works. This is for another exception because I could not reproduce the other one anymore.

What I'm missing are some more information on the source code file and linenumbers. 

Output currently is:
Code
Select All
Error
   : ?? ??:0
   0x40080000 _iram_start
   :?:::0x400802e4:_NMIExceptionVector
   0x401be6cf __cxxabiv1
   0x40097010 invoke_abort
   0x40097213 abort
   0x401be716 std
   0x401ac17b __cxa_throw
   0x400da941 BLEClient
   0x400d1b27 connectToServer(BLEAddress)
   0x400d2435 loop()
:17 (discriminator 1):::0x401c628c:loopTask(void*)
 



Regards
Andreas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 exception decoding?
Reply #11 - Nov 26th, 2018 at 1:36pm
Print Post  
Does visual micro show the "I" icon and then show a clickable stack trace?
  
Back to top
WWW  
IP Logged
 
Andreas E
Junior Member
**
Offline


Posts: 29
Joined: Mar 7th, 2017
Re: ESP32 exception decoding?
Reply #12 - Nov 29th, 2018 at 6:19pm
Print Post  
Yes, the "!" shows a clickable list (not easy to see that's clickable) and if I double-click it jumps to the correct code line.

The stack trace reads like this
Code
Select All
Error
   : ?? ??:0
   : ?? ??:0
   : ?? ??:0
   0x400d26ff setup()
   : ?? ??:0
   : ?? ??:0
   :17 (discriminator 1):::0x401a1c54:loopTask(void*)
   :355 (discriminator 1):::0x40092815:vPortTaskWrapper 



For the updated arduino-esp32 (1.0.1rc1 I used) the arduino Exception decoder works again for me. The results are

Code
Select All
PC: 0x400d26ff: setup() at C:\Users\AKAEM\Documents\Visual Studio 2017\Projects\disPOD\disPOD/disPOD.ino line 616
EXCVADDR: 0x801a1c57

Decoding stack results
0x400d26ff: setup() at C:\Users\AKAEM\Documents\Visual Studio 2017\Projects\disPOD\disPOD/disPOD.ino line 616
0x401a1c54: loopTask(void*) at C:\Users\AKAEM\Documents\Arduino\hardware\espressif\esp32\cores\esp32\main.cpp line 17
0x40092815: vPortTaskWrapper at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/port.c line 143
 



For convenience it would be great to extend the exception decoding in VisulMicro to give complete path/file name and line number directly, and to print et least PC (or did I miss something?)

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint