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 ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE (Read 860 times)
Marco (Italy)
Full Member
***
Offline


Posts: 190
Joined: Jul 12th, 2019
ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE
Oct 22nd, 2024 at 5:45am
Print Post  
Hi Simon, i'm using a ESP32-S3 DevkitC-V1.1 board and there is a issue about the JTAG for upload/debug.

I have some dubts about wiring between ESP_PROG and Target board.

There is a issue about the e-fuse? 

my connections are:
https://www.visualmicro.com/page/ESP32S3-JTAG-Debugging.aspx

at this time I have not changed the fuses, they are still the original ones. Should I change them?


the output is this:
Program size: 663393 bytes (used 51% of a 1310720 byte maximum) (6,85 secs)
Minimum Memory Usage: 43088 bytes (13% of a 327680 byte maximum)
 
Uploading 'ESP32_WROOM_OLIMEX' to 'ESP32S3 Dev Module(esp32_esp32s3)' using 'ESP32 PROG'
Open On-Chip Debugger  v0.10.0-esp32-20211111 (2021-11-10-21:40)
Licensed under GNU GPL v2
For bug reports, read
     http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
adapter speed: 2000 kHz
****[vMicro]**** Uploading App :Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32s3.cpu0: IR capture error; saw 0x1f not 0x01
Error during upload using programmer
The uploader process failed

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


Posts: 2697
Joined: Feb 13th, 2019
Re: ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE
Reply #1 - Oct 22nd, 2024 at 8:30am
Print Post  
Thanks for the report.

The wiring looks the same for this board in the Espressif Documentation, as shown on the JTAG page on Visual Micro.

Have you checked the efuse bits to see what is set currently?

This process is described on the ESP32-S3 JTAG debugging page, and we are happy to review the output from the efuse command if it helps?
  
Back to top
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 190
Joined: Jul 12th, 2019
Re: ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE
Reply #2 - Oct 22nd, 2024 at 3:16pm
Print Post  
Hi Simon
in attach the output efuse summary
regards
Marco
  

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


Posts: 2697
Joined: Feb 13th, 2019
Re: ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE
Reply #3 - Oct 22nd, 2024 at 3:36pm
Print Post  
Thanks for the showing the STRAP_JTAG_SEL Fuse.

Can you see the DIS_USB_JTAG fuse as well? (I expect this to be also False)

If you are unsure about burning the fuses, you should find the JTAG device is visible already in the Zadig tool, when the correct USB port is connected to your PC.

NOTE: Burning the fuses CANNOT be undone, so make sure you are burning the right one!

If the DIS_USB_JTAG is False, then you can burn the STRAP_JTAG_SEL fuse, so that GPIO3 can be pulled LOW and the board re-powered to allow the JTAG lines to be used with the ESP-PROG.


« Last Edit: Oct 22nd, 2024 at 3:40pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 190
Joined: Jul 12th, 2019
Re: ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE
Reply #4 - Oct 22nd, 2024 at 4:30pm
Print Post  
Hi simon
in attach the 2nd efuse report.
  

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


Posts: 2697
Joined: Feb 13th, 2019
Re: ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE
Reply #5 - Oct 23rd, 2024 at 8:19am
Print Post  
Thanks for the update.

If you want to use the ESP-PROG instead of the USB Debugging then the STRAP_JTAG_SEL Fuse will need to be burned at minimum, which is shown on the ESP32S3 via JTAG Debugging page below:
https://www.visualmicro.com/page/ESP32S3-JTAG-Debugging.aspx

This allows GPIO3 to be pulled LOW before powering the board up to switch to the JTAG transport for Debugging.  If this is not done the board will continue to work with USB debugging (not to be confused with vMicro Serial Debugging):
https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx

Alternatively you can use the ESP32S3 USB debugging option which will work without the ESP-PROG or any fuses needing to be burned.
  
Back to top
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 190
Joined: Jul 12th, 2019
Re: ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE
Reply #6 - Oct 24th, 2024 at 9:24am
Print Post  
[SOLVED]
Hi Simon, I made the change on the eFuse, it is now TRUE. Then I brought GPIO3 = LOW with a jumper, aswell as it works fine is you left open GPIO3. Everything works!

I would like to point out these things to keep in mind:
1.) if you connect ESP_PROG in a different PC USB, the win11 driver SW does not see it. It only works on a specific USB port.

2) the JTAG connections for the ESP32-S3 devkit1.1 board indicated in your page are wrong. you show the pinout on the TOP side of the board, but if you turn the board BOTTOM side, you will see that the nice Chinese have a different pinout you have to follow the one on the bottom side. The Chinese will hardly become masters of the world if they keep doing things like this!!!!

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


Posts: 2697
Joined: Feb 13th, 2019
Re: ESP32-S3 WITH ESP_PROG JTAG DEBUG/UPLOAD ISSUE
Reply #7 - Oct 24th, 2024 at 10:00am
Print Post  
Glad its working as expected and thanks for the feedback, we will review our documentation to ensure this is noted.

Can you confirm the pins which you connected on the board are the same numbers (GPIO39-41) as shown in the table on the page below?
https://www.visualmicro.com/page/ESP32S3-JTAG-Debugging.aspx

Sadly we can't show every bord variant from all manufacturers, so the table should provide the correct details for all boards of the same MCU.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint