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) ESP core installation (Read 3383 times)
chris52
Junior Member
**
Offline


Posts: 47
Joined: Jan 9th, 2017
ESP core installation
Feb 25th, 2018 at 3:41pm
Print Post  
I have a sketch which compiles and runs fine using the Arduino IDE. In VisualMicro it compiles and uploads but crashes (with a stack dump to the com port) after running a few lines of code.
The only relevant thing that's changed since this started happening is that I downgraded the ESP8266 core from 2.4.0 to 2.3.0 (because of a known problem with WiFi reconnection in 2.4.0).
In VM I have 'rescanned toolchains and libraries' and have restarted the IDE, but still the same problem. What else do I need to do?
« Last Edit: Feb 25th, 2018 at 3:42pm by chris52 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP core installation
Reply #1 - Feb 25th, 2018 at 3:50pm
Print Post  
Assume you have tried without debug to see if that is the issue?

Otherwise switch on the vmicro verbose and show build properties. then click build>clean. then click build and email or post the output as .txt file.
  
Back to top
WWW  
IP Logged
 
chris52
Junior Member
**
Offline


Posts: 47
Joined: Jan 9th, 2017
Re: ESP core installation
Reply #2 - Feb 25th, 2018 at 5:39pm
Print Post  
I hadn't tried release mode, sorry. It runs OK there.
Verbose file attached. Below is crash report, if that's useful? Last correct output is 'parasite power on'

Code
Select All
Opening port
Port open
Dallas Temperature Library Version: 3.7.9


Found 3 devices.
Parasite power is: ON

Soft WDT reset

ctx: cont
sp: 3ffefb40 end: 3ffefda0 offset: 01b0

>>>stack>>>
3ffefcf0:  3ffefd50 00000001 00000100 40203cf5
3ffefd00:  00000000 00000008 3ffeec24 40203ecd
3ffefd10:  3ffeebf0 00000001 00000007 00000001
3ffefd20:  00000000 00000002 3ffefde4 40204589
3ffefd30:  3ffe8a94 3ffeec08 3ffefde4 00000002
3ffefd40:  3ffeebf0 3ffeec08 00000000 402037c6
3ffefd50:  1e0a4f28 b500000a 3ffefde4 3ffeed6c
3ffefd60:  3fffdad0 3ffeec08 3ffefde4 4020224b
3ffefd70:  3fffdad0 3ffefde4 3ffeec5c 40202475
3ffefd80:  feefeffe 00000000 3ffeed64 40204194
3ffefd90:  feefeffe feefeffe 3ffeed80 40100718
<<<stack<<<

ets Jan  8 2013,rst cause:2, boot mode:(1,7)


ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset

Port closed

 

  

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: ESP core installation
Reply #3 - Feb 25th, 2018 at 6:05pm
Print Post  
did you have a break point set?
  
Back to top
WWW  
IP Logged
 
chris52
Junior Member
**
Offline


Posts: 47
Joined: Jan 9th, 2017
Re: ESP core installation
Reply #4 - Feb 25th, 2018 at 11:49pm
Print Post  
No break points set.
Have done some more testing. It is crashing at the third line in this section:
Code (C++)
Select All
	sensors.getAddress(insideTemp, 0);
	sensors.getAddress(outsideTemp, 1);
	sensors.getAddress(fridgeTemp, 2); 


'sensors' is  an object of theDallasTemperature library class; 'getAddress()' is one of the library functions. 
I have 3 Dallas sensors fitted; if I omit the request for the third address the code does not crash! And still does not crash if run in release mode, even with all 3 sensors.
Dallas library is 3.7.9. There is a version 3.8 but that's giving me a 'file not found' error so had to go back to 3.7.9
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP core installation
Reply #5 - Feb 26th, 2018 at 1:21pm
Print Post  
Are they I2C?

Can you confirm that you have not enabled the debugger to perform I2C scan at startup?
  
Back to top
WWW  
IP Logged
 
chris52
Junior Member
**
Offline


Posts: 47
Joined: Jan 9th, 2017
Re: ESP core installation
Reply #6 - Feb 27th, 2018 at 9:10pm
Print Post  
Tim@Visual Micro wrote on Feb 26th, 2018 at 1:21pm:
Are they I2C?

Can you confirm that you have not enabled the debugger to perform I2C scan at startup?

No, they have a propreitry 'oneWire' protocol : https://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
'Scan I2C at startup' is false.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP core installation
Reply #7 - Feb 27th, 2018 at 9:37pm
Print Post  
Okay thanks, are digital and analog reports off?
« Last Edit: Feb 27th, 2018 at 9:37pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
chris52
Junior Member
**
Offline


Posts: 47
Joined: Jan 9th, 2017
Re: ESP core installation
Reply #8 - Feb 27th, 2018 at 10:01pm
Print Post  
Yes; in fact all debug settings are at default; I haven't yet used any debugging features since re-installing VMicro last week.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint