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 Serial programmer don't work after upgrade (Read 1417 times)
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Serial programmer don't work after upgrade
Dec 30th, 2019 at 10:47pm
Print Post  
Hi,
   I had upgrade my visual micro plugin for VS2017 and since the build-in serial programmer no longer work, here is the log data

esptool.py v2.8
Serial port COM4
___
Traceback (most recent call last):
  File "C:\Users\Sylvain s/upload.py", line 69, in <module>
    esptool.main(cmdline)
  File "C:/Users/Sylvain s/esptool\esptool.py", line 2890, in main
    esp.connect(args.before)
  File "C:/Users/Sylvain s/esptool\esptool.py", line 483, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
The uploader process failed

Thanks for your time
Sylvain Bissonnette
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial programmer don't work after upgrade
Reply #1 - Dec 31st, 2019 at 12:40am
Print Post  
Please open the arduino ide, select your board with same properties. switch on file>peferences>upload verbose.

Then try the upload and post the output that shows in the arduino ide.

Thanks
  
Back to top
WWW  
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: Serial programmer don't work after upgrade
Reply #2 - Dec 31st, 2019 at 1:45am
Print Post  
It's look to work

Code
Select All
Sketch uses 257048 bytes (26%) of program storage space. Maximum is 958448 bytes.
Global variables use 27612 bytes (33%) of dynamic memory, leaving 54308 bytes for local variables. Maximum is 81920 bytes.
C:\Users\Sylvain ython3 C:\Users\Sylvain s/upload.py --chip esp8266 --port COM4 --baud 115200 --before default_reset --after hard_reset C:\Users\SYLVAI~1\AppData\Local\Temp\arduino_build_50264/sketch_dec30a.ino.bin
esptool.py v2.8
Serial port COM4
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 84:f3:eb:41:6d:69
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 261200 bytes to 190782...

Writing at 0x00000000... (8 %)
Writing at 0x00004000... (16 %)
Writing at 0x00008000... (25 %)
Writing at 0x0000c000... (33 %)
Writing at 0x00010000... (41 %)
Writing at 0x00014000... (50 %)Invalid library found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master: no headers files (.h) found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master

Writing at 0x00018000... (58 %)
Writing at 0x0001c000... (66 %)
Writing at 0x00020000... (75 %)
Writing at 0x00024000... (83 %)
Writing at 0x00028000... (91 %)
Writing at 0x0002c000... (100 %)
Wrote 261200 bytes (190782 compressed) at 0x00000000 in 17.0 seconds (effective 123.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Invalid library found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master: no headers files (.h) found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master
Invalid library found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master: no headers files (.h) found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master
Invalid library found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master: no headers files (.h) found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master
Invalid library found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master: no headers files (.h) found in C:\Users\Sylvain Bissonnette\Documents\Arduino\libraries\Arduino-master
 

« Last Edit: Dec 31st, 2019 at 1:47am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial programmer don't work after upgrade
Reply #3 - Dec 31st, 2019 at 1:49am
Print Post  
Great, now please follow the guide in yellow above, try to upload and post the output as a .txt file.

Thanks
  
Back to top
WWW  
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: Serial programmer don't work after upgrade
Reply #4 - Dec 31st, 2019 at 2:29am
Print Post  
I found something,

The generated line from vm is
C:\Users\Sylvain ython3 "C:\Users\Sylvain s/upload.py" --chip esp8266 --port "COM4" --baud "921600" --before no_reset --after soft_reset "C:\Data\_BUILD~1\Labo\WIFIDI~1\ESP826~1\Release/WifiDimmer.ino.bin" 

And the one I just found to make it manualy work is
ost1/python3 1/tools/upload.py --chip esp8266 --port COM4 --baud 921600 --before default_reset --after hard_reset C:\Users\SYLVAI~1\OneDrive\Data\Wifi_Dimmer\Code 2.5.2\WifiDimmer\Release\wifidimmer.bin

It's look to be in the reset flags vm put --before no_reset --after soft_reset
and it's work with --before default_reset --after hard_reset 

Thanks
Sylvain Bissonnette
  
Back to top
 
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: Serial programmer don't work after upgrade
Reply #5 - Dec 31st, 2019 at 2:40am
Print Post  
I got it,  I had change in C:\Users\Sylvain ds.txt
the line 67 with generic.menu.ResetMethod.ck.upload.resetmethod=--before default_reset --after hard_reset

and it's work fine,
Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial programmer don't work after upgrade
Reply #6 - Dec 31st, 2019 at 1:42pm
Print Post  
Great, well done and thanks for the update.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint