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 Trouble with upload sketch to ESP8266 (Read 4719 times)
Tozapid
Newbies
*
Offline


Posts: 7
Joined: Nov 8th, 2017
Trouble with upload sketch to ESP8266
Nov 8th, 2017 at 1:19pm
Print Post  
Hello! 
Introduction:
1. I use software:
Arduino IDE 1.8.5
Visual Studio Pro  2017 15.4.0
Visual Micro 1.1706.25 (I'm not shure, it's from marketplace)
2. Hardware:
ESP8266 esp-12e - NodeMCU
3. Simple sketches like blink works normal

So, I try to upload example sketch WiFiWebServer.ino -
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/Wi...
When I upload it throw Arduino IDE all works normal and ESP8266 conected to my wi-fi.
But when I use Visual Studio + vMicro my ESP doesn't work.

Screenshots:
https://photos.app.goo.gl/Aow3tcq27d9zaPRj2
https://photos.app.goo.gl/QyliCCscj9vhfkqt1
« Last Edit: Nov 8th, 2017 at 1:20pm by Tozapid »  
Back to top
 
IP Logged
 
Tozapid
Newbies
*
Offline


Posts: 7
Joined: Nov 8th, 2017
Re: Trouble with upload sketch to ESP8266
Reply #1 - Nov 8th, 2017 at 1:23pm
Print Post  
This is the same problem, i think - http://www.visualmicro.com/forums/YaBB.pl?num=1510070437
  
Back to top
 
IP Logged
 
Tozapid
Newbies
*
Offline


Posts: 7
Joined: Nov 8th, 2017
Re: Trouble with upload sketch to ESP8266
Reply #2 - Nov 8th, 2017 at 1:56pm
Print Post  
And the second question.
How I can choose sketch for upload to arduino? For example, I work with tab WiFiWebServer.ino and click to button "Build and upload", but bilding other sketch WebServer.ino

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tozapid
Newbies
*
Offline


Posts: 7
Joined: Nov 8th, 2017
Re: Trouble with upload sketch to ESP8266
Reply #3 - Nov 8th, 2017 at 2:12pm
Print Post  
Debug in Visual Studio and Arduino IDE looks the same:

Visual Studio:
Code (C++)
Select All
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
	setting board to nodemcu
	setting baudrate from 115200 to 115200
	setting port from COM1 to COM3
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
	setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
Uploading 234848 bytes from  to flash at 0x00000000
	erasing flash
	size: 039560 address: 000000
	first_sector_index: 0
	total_sector_count: 58
	head_sector_count: 16
	adjusted_sector_count: 42
	erase_size: 02a000
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	setting serial port timeouts to 15000 ms
	setting serial port timeouts to 1000 ms
	espcomm_send_command: receiving 2 bytes of data
	writing flash
 [ 34% ]
Verbose message are On
 [ 69% ]
......................................................................           [ 100% ]
	The upload process has finished.
starting app without reboot
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	espcomm_send_command: receiving 2 bytes of data
closing bootloader
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
 



Arduino IDE:
Code (C++)
Select All
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
	setting board to nodemcu
	setting baudrate from 115200 to 115200
	setting port from COM1 to COM3
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
	setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	read 0, requested 1
trying to connect
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
Uploading 234080 bytes from C:\Users\Larson\AppData\Local\Temp\arduino_build_129562/sketch_nov08a.ino.bin to flash at 0x00000000
	erasing flash
	size: 039260 address: 000000
	first_sector_index: 0
	total_sector_count: 58
	head_sector_count: 16
	adjusted_sector_count: 42
	erase_size: 02a000
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	setting serial port timeouts to 15000 ms
	setting serial port timeouts to 1000 ms
	espcomm_send_command: receiving 2 bytes of data
	writing flash
 [ 34% ]
 [ 69% ]
.....................................................................            [ 100% ]
starting app without reboot
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	espcomm_send_command: receiving 2 bytes of data
closing bootloader
	flush start
	setting serial port timeouts to 1 ms
	setting serial port timeouts to 1000 ms
	flush complete
 

  
Back to top
 
IP Logged
 
Tozapid
Newbies
*
Offline


Posts: 7
Joined: Nov 8th, 2017
Re: Trouble with upload sketch to ESP8266
Reply #4 - Nov 8th, 2017 at 5:28pm
Print Post  
I tried to change project option to release, but it still not working.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tozapid
Newbies
*
Offline


Posts: 7
Joined: Nov 8th, 2017
Re: Trouble with upload sketch to ESP8266
Reply #5 - Nov 8th, 2017 at 6:18pm
Print Post  
Ok, I turn off option vMicro→Debugger→Automatic debugger and now it's work well!
Can anyone answer to post 3?
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Trouble with upload sketch to ESP8266
Reply #6 - Nov 10th, 2017 at 6:17am
Print Post  
Hi,

To switch between Debug and Release you use the tool bar. On your tool bar it shows as "x64-release"

#3, which project debugs when you have more than one in a solution. This depends on the visual micro tools options. The default is that the active project/code should build and upload.

To see more clearly you need to show your solution explorer. Then see which project is selected.

Normally visual studio will start and debug the "Startup Project". You can see the startup project in the solution explorer with a bold name. This behavour is optional with visual micro and as I have said can be changed on tools>options>visual micro

Right click any project in the solution explorer to set it as startup project.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint