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) ESP8266 exception decoder (Read 3145 times)
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
ESP8266 exception decoder
Jul 6th, 2021 at 4:08am
Print Post  
I'm trying to use the built in exception decoder.
When I get an exception with the stack trace shown in the serial output, pressing the '!' button shows very little detail in the output window:
Quote:
Failed to resolve hardware exception from the monitor text
Exception:Error:3 -> LoadStoreError: Attempt to read/write memory in a manner not supported by the hardware (for example, trying to read/write a byte to a memory area that only supports word accesses)


Using the Arduino exception decoder provides me with the decoded stack trace.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP8266 exception decoder
Reply #1 - Jul 6th, 2021 at 12:50pm
Print Post  
Thanks for the report.

Can you attach the full build output with the vMicro > Compiler Show Build Properties, and Verbose options Enabled so we can understand your environment more.

Also please attach the output from the Serial Window when the exception occurs and you press the '!' button, so we can investigate further.
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 exception decoder
Reply #2 - Jul 21st, 2021 at 4:00pm
Print Post  
Hi, files emailed.
It sometimes works, sometimes not.
I've emailed the files for when it hasn't worked.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP8266 exception decoder
Reply #3 - Jul 27th, 2021 at 10:23am
Print Post  
Thanks for the detail, and the files.

Trying the provided output in the Serial monitor has worked in vMicro when I have attempted it, and not all errors thrown can be decoded in the same way.

Does the output provided always fail to decode in vMicro? (you can paste it into the serial monitor, then close and re-open it to try it out, provided the sketch is compiled for the right board)

(You can also click on the addresses in the decoded output to jump to the source file where they are available)
« Last Edit: Jul 27th, 2021 at 10:38am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 exception decoder
Reply #4 - Aug 11th, 2021 at 3:11pm
Print Post  
Still sometimes yes, sometimes no - and more no than yes. When it works it's great!

I tried the copy/paste but the same, no decoded trace. Always works in Arduino IDE though..
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP8266 exception decoder
Reply #5 - Aug 12th, 2021 at 4:55pm
Print Post  
Thanks for the update.

We are still struggling to replicate this, would it be possible to attach another Serial Monitor output which never works in vMicro, and a screenshot of it working in the Arduino IDE?
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 exception decoder
Reply #6 - Aug 14th, 2021 at 5:19am
Print Post  
I've emailed the latest files
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: ESP8266 exception decoder
Reply #7 - Aug 19th, 2021 at 1:23pm
Print Post  
Thanks again for the files and detail.  We have resolved the issue internally, and we will update shortly when the fixed version is available for download.
  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 exception decoder
Reply #8 - Aug 21st, 2021 at 3:41am
Print Post  
..almost!
The decode is working now which is great but the link back to the source isn't quite there - it looks like it's missing the drive letter - see attached screenshot.
  

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: ESP8266 exception decoder
Reply #9 - Aug 23rd, 2021 at 4:24pm
Print Post  
Thanks for the update and detail, this is resolved in the latest release (21.06.06.21), and the local files can be clicked on to navigate to the line number where the error occurred as expected.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint