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 Error Debugging ESP32-S3 (Visual Studio 2022) (Read 1866 times)
::GIPERON::
Newbies
*
Offline


Posts: 1
Joined: May 27th, 2023
Error Debugging ESP32-S3 (Visual Studio 2022)
May 27th, 2023 at 2:51pm
Print Post  
Good time of day

I ask for your help in solving the problem of debugging the ESP32-S3 code using "ESP-Prog JTAG" https://aliexpress.ru/item/33044313716.html?spm=a2g2w.orderdetail.0.0.16b24aa6gH...

I have looked through the entire forum and website, but I have not found a solution to the problem.

At the moment of starting debugging, I get a GDB error...

Output window text:

=thread-group-added,id="i1"
Reading symbols from D:/TEMP_USER/VMBuilds/Sketch1/esp32_esp32s3/Debug/Sketch1.ino.elf...
+echo vMicro: Hardware Debugging
vMicro: Hardware Debugging+echo vMicro: debug.tool = esp32prog\n
vMicro: debug.tool = esp32prog
+echo vMicro: Initializing remote target...\n
vMicro: Initializing remote target...
+echo Running Setup Actions\n
Running Setup Actions
+target extended-remote | " -d2 -c "gdb_port pipe; tcl_port disabled; telnet_port disabled" -c "adapter_khz 5000" -s ts/" -f ts/interface/ftdi/minimodule-lowcost.cfg" -c "set ESP32_RTOS none" -f ts/board/../target/esp32s3.cfg" -c "init; reset halt"
=cmd-param-changed,param="pagination",value="off"
Программа "" завершилась с кодом 42 (0x2a).

------------------

File text "board.txt"

debug.toolingsystem=gdbscript
# Very Latest OpenOCD needed for ESP32S3
tools.openocd.debug.path={runtime.tools.openocd-esp32-0.10.1-2021.11.11.path}
tools.openocd.program.path={runtime.tools.openocd-esp32-0.10.1-2021.11.11.path}
tools.openocd.upload.path={runtime.tools.openocd-esp32-0.10.1-2021.11.11.path}

------------

I ask for your help in solving this problem. Where to look, what could be wrong?  Undecided
  

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: Error Debugging ESP32-S3 (Visual Studio 2022)
Reply #1 - May 30th, 2023 at 10:10pm
Print Post  
Thanks for the report and the detail.

Can you enable the below settings:
vMicro > Compiler > Vebose
vMicro > Compiler > Show Build Properties
vMicro > Uploader > Verbose

Then run the build and upload to your board, and try starting the debug session from Debug > Attach to Process.

If you can attach the complete output as a text file, from the Output Window > Micro Build it will help us investigate the issue further.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Error Debugging ESP32-S3 (Visual Studio 2022)
Reply #2 - Jul 5th, 2023 at 4:19pm
Print Post  
Also please ensure you check the fuses on your ESP32-S3 board to ensure that JTAG is available.

This process can be seen on the below page, and if the STRAP_JTAG_SEL fuse is burned you will also need to ground GPIO3 before powering the ESP32-S3 up.
Documentation: https://www.visualmicro.com/page/ESP32S3-JTAG-Debugging.aspx
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint