Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

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 and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Pages: 1 2 
Send Topic Print
ESP32 Upload Error (Read 1661 times)
StockBrick
Junior Member
**
Offline



Posts: 28
Re: ESP32 Upload Error
Reply #20 - Jun 27th, 2022 at 10:40pm
 
Yes, confusing. I’ll report on Expressif Github site as you suggest. I will also see if I can encourage Sparkfun to mention it in their guide. Thanks for your interest.
Back to top
 
 
IP Logged
 
Sylvain
Junior Member
**
Offline



Posts: 53
Montreal, Canada
Re: ESP32 Upload Error
Reply #21 - Jul 24th, 2022 at 5:27pm
 
Hi,
     I have almost the same problem,  With wemos esp32 the upload work, but with lolin esp32 upload fail, if I place a 2.2uf cap between GND and EN pin it's work, look like there is a timing problem to put the esp in bootmode. 

     Is it possible to modify the timing of the RTS and DTR pin?

Thanks
Sylvain Bissonnette
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1457
Re: ESP32 Upload Error
Reply #22 - Jul 28th, 2022 at 3:14pm
 
We have added an additional board.txt property to allow a configurable pause before the upload begins (example is 3s):
Code:
upload.pause_before_ms=3000 



This is available in the latest version (22.06.11.05) which is available for download from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

If this does not help, can you enable the below options:
  1. vMicro > Compiler > Verbose
  2. vMicro > Compiler > Show Build Properties
  3. vMicro > Uploader > Verbose


And perform the Build and Upload, and send us the entire contents of the Output > Micro Build window so we can replicate the setup exactly.
Back to top
« Last Edit: Jul 28th, 2022 at 4:19pm by Simon@Visual Micro »  
 
IP Logged
 
Sylvain
Junior Member
**
Offline



Posts: 53
Montreal, Canada
Re: ESP32 Upload Error
Reply #23 - Jul 30th, 2022 at 3:46pm
 
I will try to remove the cap and add delay this week and keep you inform

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



Posts: 28
Re: ESP32 Upload Error
Reply #24 - Jul 31st, 2022 at 1:41pm
 
Thanks @Simon@Visual Micro. I'm not clear on how to implement this. Is it a case of adding Local Board.txt to the project and adding the code upload.pause_before_ms=3000 as an override?
Back to top
« Last Edit: Jul 31st, 2022 at 1:46pm by StockBrick »  
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11487
United Kingdom
Re: ESP32 Upload Error
Reply #25 - Jul 31st, 2022 at 3:38pm
 
yes that is right
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
StockBrick
Junior Member
**
Offline



Posts: 28
Re: ESP32 Upload Error
Reply #26 - Jul 31st, 2022 at 4:00pm
 
With no "#" in front?

Code:
# ESP32_BT_LSM9DS1_GPS_ESPMaster_BadElf_V02 build property overrides
upload.pause_before_ms=3000 


Back to top
 
 
IP Logged
 
StockBrick
Junior Member
**
Offline



Posts: 28
Re: ESP32 Upload Error
Reply #27 - Jul 31st, 2022 at 6:53pm
 
I'm still getting the error:
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

I'll send output file via email.

Thanks
Back to top
 
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11487
United Kingdom
Re: ESP32 Upload Error
Reply #28 - Jul 31st, 2022 at 9:40pm
 
Ah I forgot that Visual Micro make the serial connection for the upload.

You might need to contact the author of the tool chain. You should also say what you have put in the board.txt in case it is causing non-standard upload.

This is the upload command. Please try it from a cmd prompt. You can see that it uses the esptool.exe which is part of the tool chain.

Code:
C:\Users\Stephen\AppData\Local\arduino15\packages\esp32\tools\esptool_py\3.1.0\esptool.exe --chip esp32 --port "COM8" --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0xe000 "C:\Users\Stephen\AppData\Local\arduino15\packages\esp32\hardware\esp32\2.0.2/tools/partitions/boot_app0.bin" 0x1000 "C:\Users\Stephen\AppData\Local\Temp\VMBuilds\ESP32_~1\ESP32_~1\Release/ESP32_BT_LSM9DS1_GPS.ino.bootloader.bin" 0x10000 "C:\Users\Stephen\AppData\Local\Temp\VMBuilds\ESP32_~1\ESP32_~1\Release/ESP32_BT_LSM9DS1_GPS.ino.bin" 0x8000 "C:\Users\Stephen\AppData\Local\Temp\VMBuilds\ESP32_~1\ESP32_~1\Release/ESP32_BT_LSM9DS1_GPS.ino.partitions.bin"
 

Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11487
United Kingdom
Re: ESP32 Upload Error
Reply #29 - Aug 6th, 2022 at 8:26pm
 
Off-Topic replies have been moved to this Topic.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Pages: 1 2 
Send Topic Print