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
Hot Topic (More than 8 Replies) Solution upload in ESP32 by ESP-PROG by VisualMicro (Read 295 times)
ntrbiosensors
Junior Member
**
Offline


Posts: 11
Location: Turin, Italy
Joined: Nov 25th, 2024
Solution upload in ESP32 by ESP-PROG by VisualMicro
Jan 11th, 2025 at 4:05pm
Print Post  
We are having trouble uploading the Firmware solution on Visual Micro into out ESP32 board via ESP-PROG (after burning the e-fuse). 
In attachment 2 error messages we got when performing the action. 
  

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


Posts: 2564
Joined: Feb 13th, 2019
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #1 - Jan 11th, 2025 at 4:43pm
Print Post  
Thanks for the report.

This may not be relevant to the current issue, but in general it is best to have project (and INO file) names without spaces in as these can cause issues with some aspects, and is also not Arduino Compatible.  If you right click the INO fie and rename it to remove the spaces, Visual Micro will align everything once OK is clicked on the popup.

Can you try adding a Local board.txt (vMicro > Add Code > Add Local Board.txt) with the overrides shown on the below page in the Software Setup section:
https://www.visualmicro.com/page/ESP32S3-JTAG-Debugging.aspx

Can you also confirm which efuse you have burned for clarity?

If there are still issues please enable the below options, and attach the full log from a build and upload:
  • vMicro > Compiler > Verbose
  • vMicro > Compiler > Show Build Properties
  • vMicro > Uploader > Verbose
« Last Edit: Jan 11th, 2025 at 4:46pm by Simon@Visual Micro »  
Back to top
IP Logged
 
ntrbiosensors
Junior Member
**
Offline


Posts: 11
Location: Turin, Italy
Joined: Nov 25th, 2024
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #2 - Jan 12th, 2025 at 11:15pm
Print Post  
Thank you Simon for the reply,

I just changed my project (and .ino file) names without spaces.

I attached the Board.txt file I created in my project, I am not sure if I need to modify the tools.openocd part following the documentation you provided or not. 

efuse we burned is STRAP_JTAG_SEL
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #3 - Jan 13th, 2025 at 10:19am
Print Post  
Thanks for confirming the project rename and the fuse.

The overrides in the documentation should all be added to the boards.txt (which will amend the OpenOCD configuration for debug and upload), however I can't see any attachment on your reply.

Have you added a wire to pull GPIO3 low?

If you can attach the full log for a build and upload, we will be able to check the configuration has applied correctly for your project.
  
Back to top
IP Logged
 
ntrbiosensors
Junior Member
**
Offline


Posts: 11
Location: Turin, Italy
Joined: Nov 25th, 2024
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #4 - Jan 13th, 2025 at 10:28am
Print Post  
I thought I attached it, I do it now sorry for that.

Yes, we added a wire to pull GPIO3 low.

In a couple of hours, I will also share the log for a build&upload, 

thank you very much for your support
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ntrbiosensors
Junior Member
**
Offline


Posts: 11
Location: Turin, Italy
Joined: Nov 25th, 2024
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #5 - Jan 13th, 2025 at 1:07pm
Print Post  
I tried the build&upload and i attach here the full log.


About the GPIO3 i found in the cmd during the burning of the refuse the following summary:
STRAP_JTAG_SEL (BLOCK0)   Enable selection between usb_to_jtagor pad_to_jtag = True R/W (0b1) through GPIO3
  

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


Posts: 2564
Joined: Feb 13th, 2019
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #6 - Jan 13th, 2025 at 2:11pm
Print Post  
Thanks for the update, and the STRAP_JTAG_SEL Fuse looks correct:
Espressif Doc: https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/api-guides/jtag-de...

The error in the log suggests there is a wiring issue between the ESP-PROG and the ESP32S3 board, or sometimes they both need disconnecting from power then plugging back in again to reset a hung state.

It may also be worth lowering the speed in the board.txt file (adapter_khz 2000).

Can you confirm all connections are correct and the GND connection is also made between the ESPPROG and ESP32S3?
  
Back to top
IP Logged
 
ntrbiosensors
Junior Member
**
Offline


Posts: 11
Location: Turin, Italy
Joined: Nov 25th, 2024
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #7 - Jan 13th, 2025 at 3:15pm
Print Post  
I tried to disconnect the ESPPROG and ESP32S3 and I get the same error message, do you think the problem relies on the connection wire between the two?

I tried to set the speed to 1000Hz, and the log messages are attached here. 
Info : Flash mapping goes until the number 70579:
and then I have: 
"Error during upload using programmer
Upload timed out waiting for a response

The uploader process failed

Upload timed out waiting for a response

The uploader process failed
The uploader returned an error"

Yes, the connections and the GND connection between the two should be correct.
  

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


Posts: 2564
Joined: Feb 13th, 2019
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #8 - Jan 13th, 2025 at 5:08pm
Print Post  
Thanks for the log and it appears to be getting further at least.

Quote:
(though not sure why it just ends after the Flash Mapping output).

I'm not sure why this is and on my setup (working) it only shows two entries, then continues.

Can you try uploading a program (e.g. blink) to the board using the normal USB interface, and then try uploading your desired program via ESPPROG again?
  
Back to top
IP Logged
 
ntrbiosensors
Junior Member
**
Offline


Posts: 11
Location: Turin, Italy
Joined: Nov 25th, 2024
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #9 - Jan 13th, 2025 at 7:03pm
Print Post  
I just tried using a blink (Hello word!) program uploaded by ESPPROG in the board and I got the error message I attach

What do you mean with "using the normal USB interface"? I cannot connect directly the ESP32 board to my laptop USB. 

By the way, the previous error message was truncated because of the long text, but it ends with:
Info : Flash mapping 70578: 0x0 -> 0x0, 0 KB
Info : Flash mapping 70579: 0x0 -> 0x0, 0 KB
Error during upload using programmer
The uploader process failed

The uploader process failed
The uploader returned an error


Also, what do you mean with: I'm not sure why this is and on my setup (working) it only shows two entries, then continues
  

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


Posts: 2564
Joined: Feb 13th, 2019
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #10 - Jan 14th, 2025 at 9:58am
Print Post  
Quote:
I cannot connect directly the ESP32 board to my laptop USB.

Thanks for confirming, I wasn't sure if you had a full dev board(with USB connection) or just the ESP32S3 module (or chip on a custom board).

Thanks for clarifying the Flash Mapping entries in the logs as well.

I only see the below when connecting in my log, and the upload via ESPPROG is working here, and it maps the Flash correctly to the two regions:
** Programming Started **
Info : esp32s3.cpu0: Target halted, PC=0x403B2412, debug_reason=00000001
Info : Flash mapping 0: 0x10020 -> 0x3c030020, 58 KB
Info : Flash mapping 1: 0x20020 -> 0x42000020, 149 KB

Info : esp32s3.cpu0: Target halted, PC=0x403B2412, debug_reason=00000001
Info : Auto-detected flash bank 'esp32s3.cpu1.flash' size 16384 KB
Info : Using flash bank 'esp32s3.cpu1.flash' size 16384 KB


Can you confirm which exact ESP32S3 module you have (or upload a good quality photo to read the chip/module markings)?

It may be the Flash Size is misconfigured for OpenOCD which is causing it to read it incorrectly, generating the thousands of entries.  It may be that its a newer model of chip so a newer version of OpenOCD is required which can be temporarily configured as below.

If you amend the local board.txt to replace all "{runtime.tools.openocd-esp32-0.10.1-2021.11.11.path}" entries with "{runtime.tools.openocd-esp32-v0.12.0-esp32-20240821.path}", and also select the ESP32 DEVKIT debug probe from the vMicro >Debugger > Hardware Debugger list.  Then restart Visual Studio and try the upload again.
« Last Edit: Jan 14th, 2025 at 3:24pm by Simon@Visual Micro »  
Back to top
IP Logged
 
ntrbiosensors
Junior Member
**
Offline


Posts: 11
Location: Turin, Italy
Joined: Nov 25th, 2024
Re: Solution upload in ESP32 by ESP-PROG by VisualMicro
Reply #11 - Jan 16th, 2025 at 4:16pm
Print Post  
Dear Simon, I just solved this replacing the cable connecting ESPROG and the board, I am facing issues in the debugging but gonna open a new post
Thank you for the support
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint