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 Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB (Read 1035 times)
AndreaC
Newbies
*
Offline


Posts: 4
Joined: Feb 25th, 2024
Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB
Feb 29th, 2024 at 9:26pm
Print Post  
Hello,

I've been reading through some of the posts regarding this issue but it doesn't seem something encountered before.

I'm able to upload a sketch through either the UART or the USB interface without a problem but when I try to setup a hardware debug session I get an error (I use the options "Debug: hardware" with "ESP32S3-USB" and "No Optimization" selected). The build log can be found in the dedicated email (see  the bottom of the post for the details. You can also see below the output of the *.log file:

Quote:

     0
     embedded:startup.tcl:63: Error: Can't find /interface/../board/esp32s3-builtin.cfg
     in procedure 'script' 
     at file "embedded:startup.tcl", line 63


If I inspect the folder, I can see that the "esp32s3-builtin.cfg" file it complains about is actually missing.

I then retrieved the openocd folder from the installation of the ESP-IDF Tools folder (here: c:\esp\tools\.espressif\tools\openocd-esp32), replaced across the whole content, tried to debug again and I got the error included in the file "Test2.ino_DebugOpenOCD - 2.log"

This was clearly a bodged solution but was worth trying it. :p

I'm not sure what the problem is. I followed the recommendations from this page (with and without the board.txt file): https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx

I've also configured the driver of the "USB JTAG/serial debug unit (Interface 0)" with Zadig as "USB Serial (CDC)".

I'm not sure what the problem is. Probably it is something very silly.


For info, I'm running with the following specs:
- Visual Studio Community 2022 (64-bit) - Current Version 17.5.3
- VisualMicro 2024.102.2203

All the files are attached to the email I sent you privately:
    vMicro Support Request | AndreaC | Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB

Containing the following files:

         
  • Test2.ino_DebugOpenOCD - 1.log (first attempt, with openocd files as are)
         
  • Test2.ino_DebugOpenOCD - 2.log (with bodged openocd files)
         
  • Build - 1.log (log file of the first build)
         
  • Build - 2.log (log file of the second build)


Thanks in advance to anyone who tries to help. Smiley
« Last Edit: Feb 29th, 2024 at 9:28pm by AndreaC »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB
Reply #1 - Mar 1st, 2024 at 10:44am
Print Post  
Thanks for the report.

On the below page, there are a number of overrides in the "Software Setup" section that need to be added to a local board.txt in your project (vMicro > Add Code > Add Local Board.txt):
https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx

Once these are added, and the WinUSB driver has been installed on "USB JTAG/serial debug unit (Interface 2)", the debugging session should start as expected.
  
Back to top
IP Logged
 
AndreaC
Newbies
*
Offline


Posts: 4
Joined: Feb 25th, 2024
Re: Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB
Reply #2 - Mar 2nd, 2024 at 1:45pm
Print Post  
Thanks for the reply.

I created the board.txt file as you suggested and installed the driver on the Interface 2 with Zadig but now when I try to debug I get the error shown in the screenshot attached ErrorDialog.png.

Could it be because there are spaces and special characters in the path (in the obfuscated part)?
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB
Reply #3 - Mar 4th, 2024 at 12:02pm
Print Post  
Thanks for the update.

It could be due to the special characters, (though spaces should be fine), can you confirm what the special characters are?
(If you feel it needs to be kept confidential please email us the logs again and this screenshot so we can check and test with the same special characters and spaces present)
  
Back to top
IP Logged
 
AndreaC
Newbies
*
Offline


Posts: 4
Joined: Feb 25th, 2024
Re: Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB
Reply #4 - Mar 4th, 2024 at 8:25pm
Print Post  
Thanks Simon, I sent an email with the details.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB
Reply #5 - Mar 5th, 2024 at 12:02pm
Print Post  
Thanks for the files and the clarity on the special characters and spaces involved.

The spaces cause an issue for the debugger alone, and the special characters mean it won't work further rework of your setup, or changing a windows setting.

As the folders used for the build process and the board package installations already need changing, it seems pointless to change windows settings as well as they could affect other software.

If you change the below elements, it should allow debugging to work, if the new paths have no spaces or special characters in:
1) Board Package Installation Location:  This can be changed on the vMicro > General > Configure IDE Locations Screen, under the "Optional Physical Folder for Downloaded Board Packages"
2) Build Folder Location: This can be changed on the Tools > Options > Visual Micro > Build Folder

Hopefully this allows you to get the debugging working on your machine, let us know if you have any issues in changing the settings or after these have been altered.
  
Back to top
IP Logged
 
AndreaC
Newbies
*
Offline


Posts: 4
Joined: Feb 25th, 2024
Re: Cannot start debugging ESP32-S3-DevKitC-1 using integrated JTAG over USB
Reply #6 - Mar 5th, 2024 at 9:51pm
Print Post  
Good news!

After changing the two paths as suggested it finally works!

I had to re-install all the boards (which took an unusual amount of time) but then it was fine.

I even set up the two folders in a different drive than "C:\" and it still works fine (this shouldn't be taken for granted).

Thank you Simon for the assistance, you've been blazing fast and really helpful in solving the issue. 

Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint