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
Normal Topic ESP32 exception decoding (Read 741 times)
Rahul
Newbies
*
Offline


Posts: 2
Joined: Oct 11th, 2022
ESP32 exception decoding
Oct 11th, 2022 at 9:58am
Print Post  
Hi All,

Need your help in finding the issue that is causing the program to crash randomly.

I can see the stack trace in the output window as well as the exclamation button, but clicking it is not showing the source code details where the crash is happening.


Here are some details of the setup
MCU - ESP-WROOM-32 (nodemcu-32s)
Visual Studio 2022
VisualMicro version 2022.611.2204

I have attached the Exception data. Please take a look.
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP32 exception decoding
Reply #1 - Oct 11th, 2022 at 10:12am
Print Post  
Thanks for the detail, please enable the settings shown at the top of the page, and perform a Build > Clean, then a build, and attach the complete build output so we can replicate your environment.

Please also supply the ELF file from the build folder for your project.
« Last Edit: Oct 11th, 2022 at 10:47am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Rahul
Newbies
*
Offline


Posts: 2
Joined: Oct 11th, 2022
Re: ESP32 exception decoding
Reply #2 - Oct 11th, 2022 at 11:18am
Print Post  
Hi Simon,

Thanks a lot for responding. Build output and .elf file are attached. Please remove .txt extension from the .elf file before using it.

Regards,
Rahul
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP32 exception decoding
Reply #3 - Oct 11th, 2022 at 12:28pm
Print Post  
Thanks for the detail, the exception appears to be decoded as far as it can be with the tools provided by espressif in the Arduino Board Package, as there is no stacktrace output when it crashes.

From the Load Prohibited error shown, an illegal address in memory is being accessed, and from the address shown (EXCVADDR: 0x801e2d5c) it is highly likely to be an uninitialized pointer or it has become corrupted (shown in the doc linked above).

If you disable the Debug: Serial option (set it to Debug: Off), does this make any difference to the issue?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint