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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) ESP32 Upload Error (Read 9915 times)
StockBrick
Junior Member
**
Offline


Posts: 28
Joined: May 9th, 2021
Re: ESP32 Upload Error
Reply #20 - Jun 27th, 2022 at 9:40pm
Print Post  
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: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: ESP32 Upload Error
Reply #21 - Jul 24th, 2022 at 4:27pm
Print Post  
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: 2145
Joined: Feb 13th, 2019
Re: ESP32 Upload Error
Reply #22 - Jul 28th, 2022 at 2:14pm
Print Post  
We have added an additional board.txt property to allow a configurable pause before the upload begins (example is 3s):
Code
Select All
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.
« Last Edit: Jul 28th, 2022 at 3:19pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: ESP32 Upload Error
Reply #23 - Jul 30th, 2022 at 2:46pm
Print Post  
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
Joined: May 9th, 2021
Re: ESP32 Upload Error
Reply #24 - Jul 31st, 2022 at 12:41pm
Print Post  
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?
« Last Edit: Jul 31st, 2022 at 12:46pm by StockBrick »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 Upload Error
Reply #25 - Jul 31st, 2022 at 2:38pm
Print Post  
yes that is right
  
Back to top
WWW  
IP Logged
 
StockBrick
Junior Member
**
Offline


Posts: 28
Joined: May 9th, 2021
Re: ESP32 Upload Error
Reply #26 - Jul 31st, 2022 at 3:00pm
Print Post  
With no "#" in front?

Code
Select All
# 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
Joined: May 9th, 2021
Re: ESP32 Upload Error
Reply #27 - Jul 31st, 2022 at 5:53pm
Print Post  
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: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 Upload Error
Reply #28 - Jul 31st, 2022 at 8:40pm
Print Post  
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
Select All
sptool.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 ols/partitions/boot_app0.bin" 0x1000 _LSM9DS1_GPS.ino.bootloader.bin" 0x10000 _LSM9DS1_GPS.ino.bin" 0x8000 _LSM9DS1_GPS.ino.partitions.bin"
 

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 Upload Error
Reply #29 - Aug 6th, 2022 at 7:26pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint