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 ESP8266 (Adafruit Huzzah) board not working with VM - SOLVED (Read 5861 times)
vyruz
Junior Member
**
Offline


Posts: 10
Joined: Jan 3rd, 2015
ESP8266 (Adafruit Huzzah) board not working with VM - SOLVED
Oct 28th, 2015 at 11:06pm
Print Post  
Hi again,

I've been using Visual Micro (paid version Smiley) with Visual Studio 2015 community edition.
Really happy with for developing on my Arduino boards.

However this week I decided to check out the ESP8266 SOC and see what all the fuzz is about.
So I ordered an Adafruit ESP8266 Huzzah board, the tutorial I linked to provides easy step-by-step instructions on how to configure Arduino IDE so that one can develop software for this board as he would with any other arduino board.

This works fine if I use the Arduino IDE, but not with VM/VS2015 Sad
In VS2015 I can select the Adafruit Huzzah ESP8266 board, select the clock rate and COM port as in the arduino IDE, the code also compiles and seemingly uploads fine, but the board will not run correctly.

This board has to be manually set into bootloader mode before software can be flashed, to do this one has to keep the GPIO#0 button pressed while resetting the board, the bootloader mode can be identified by a dimly lit GPIO#0 LED.
When I flash the software from the arduino IDE, once the software is flashed the board restarts and my sketch starts running (I'm using the simply blink sketch in the adafruit tutorial as example).

When I flash the software through VM, the board seems to restart but comes back up in bootloader mode (GPIO#0 dimly lit). When I reset the board manually it will continuously reset with the following message on the serial port:
Code
Select All
 ets Jan  8 2013,rst cause:4, boot mode:(3,4)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld 



When I compare the *.bin files created by Arduino IDE and VM, they are different, so I put the verbose compiler logs on pastebin:
Build using Visual Micro
Build using Arduino IDE

Hopefully someone can see where the problem is exactly, I would love to use VM to code for this board!
« Last Edit: Oct 29th, 2015 at 12:07am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 (Adafruit Huzzah) board not working with VM
Reply #1 - Oct 28th, 2015 at 11:22pm
Print Post  
Hi,

My board has just been delivered so I look forward to testing it.

At a glance it looks like the visual micro project includes the LiquidCrytal library but the arduino compile doesn't appear to include it.

Can you please check that and also click "Build>Clean Solution", then build and post the output. That will drop the cache and allow us to see the full compile.

Also please confirm which version of visual micro you are using. You can see that in "tools>extensions and updates"
« Last Edit: Oct 28th, 2015 at 11:28pm by Tim@Visual Micro »  
Back to top
IP Logged
 
vyruz
Junior Member
**
Offline


Posts: 10
Joined: Jan 3rd, 2015
Re: ESP8266 (Adafruit Huzzah) board not working with VM
Reply #2 - Oct 28th, 2015 at 11:49pm
Print Post  
Thanks for the quick reply!
It seems that doing the Build>Clean option fixed my problem!
I did build>Clean then hit F5 and after the upload was complete the blink sketch was running fine as with the Arduino IDE

I use a 'general' Sketch in VM/VS2015 in which I test out stuff, and I probably used it for LiquidCrystal stuff not so long ago. I'll remember to use the clean option in the future when I run into strange problems with this General sketch.

For completeness sake I'll answer your questions:
See here the verbose output after running the Clean function: http://pastebin.com/shNhAs7f
And I did update VM to the latest version before posting here, so I'm at 1.1510.22 at the moment.

Thanks again for your help!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 (Adafruit Huzzah) board not working with VM
Reply #3 - Oct 29th, 2015 at 12:07am
Print Post  
That sounds and looks great thanks for the update.

Just to be safe I will do more testing and ensure the cache is being cleared properly when selections are made from the board options menu.

If you get a chance to test debug with the Huzzah that would save me some time thanks
« Last Edit: Oct 29th, 2015 at 12:08am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint