esp32 s3 jtag

Sysprogs forums Forums VisualGDB esp32 s3 jtag

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #32832
    engineering-spirit
    Participant

    Is there support for the buildin usb JTAG of the esp32-s3 ?

     

     

    #32833
    engineering-spirit
    Participant

    C:\Users\pvisser\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core\bin\openocd.exe -c “gdb_port 64499” -c “telnet_port 64497” -f interface/esp_usb_jtag.cfg -c “adapter_khz 3000” -f target/esp32s3.cfg -c “echo VisualGDB_OpenOCD_Ready”
    Open On-Chip Debugger 0.10.0 (2022-05-03)
    Licensed under GNU GPL v2
    libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    Info : only one transport option; autoselect ‘jtag’
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
    Info : esp_usb_jtag: capabilities descriptor set to 0x2000
    adapter speed: 40000 kHz

    DEPRECATED! use ‘adapter speed’ not ‘adapter_khz’
    adapter speed: 3000 kHz

    Warn : Transport “jtag” was already selected
    VisualGDB_OpenOCD_Ready
    Info : Listening on port 6666 for tcl connections
    Info : Listening on port 64497 for telnet connections
    Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
    Error: esp_usb_jtag: could not find or open device!

    Error: No JTAG interface configured yet. Issue ‘init’ command in startup scripts before communicating with targets.
    Error: Failed to clear OCDDCR_ENABLEOCD!
    Error: No JTAG interface configured yet. Issue ‘init’ command in startup scripts before communicating with targets.
    Error: Failed to clear OCDDCR_ENABLEOCD!

    #32852
    engineering-spirit
    Participant

    so the buildin jtag is not supported?
    Or is there a way to use it.

    I cant vind any option to use it in the debug configuration.

    #32854
    support
    Keymaster

    Hi,

    We have just retested it with the ESP32-S3-BOX and it worked just fine. Please make sure you actually install the WinUSB driver for the “USB Composite device”  as VisualGDB suggests (you need to select “USB Devices” in the “Debug Using” field for VisualGDB to check the drivers).

    The default driver layout (separate serial port & debug nodes) appears to be incompatible with the current version of OpenOCD.

    #33478
    AshvajitP
    Participant

    Hi,

    I am getting the issue, not able to use debug my ESP32-S3 in custom board. I have already flashed my code in S3, but I am not able to debug using built-in USB debug of ESP32-S3.

    I am getting this exception message:

    VisualGDB version: 5.6.104.4534
    —————— System.Exception ——————
    System.Exception: esp_usb_jtag: could not find or open device!
    at VisualGDB.Common_GUI.WPF.DebugMethodTestWindow.ThrowTestFailedException()
    at VisualGDB.Common_GUI.WPF.DebugMethodTestWindow.TestThreadBody()
    trace=[VisualGDB.Common_GUI.WPF.DebugMethodTestWindow.ThrowTestFailedException:56, VisualGDB.Common_GUI.WPF.DebugMethodTestWindow.TestThreadBody:356]

     

    Test settings

    C:\Users\APRASAD\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp32.core\bin\openocd.exe -c “gdb_port 60858” -c “telnet_port 60856” -f interface/esp_usb_jtag.cfg -c “adapter_khz 3000” -f target/esp32s3.cfg -c “echo VisualGDB_OpenOCD_Ready”
    Open On-Chip Debugger 0.10.0 (2022-05-03)
    Licensed under GNU GPL v2
    libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    Info : only one transport option; autoselect ‘jtag’
    Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
    Info : esp_usb_jtag: capabilities descriptor set to 0x2000
    adapter speed: 40000 kHz

    DEPRECATED! use ‘adapter speed’ not ‘adapter_khz’
    adapter speed: 3000 kHz

    Warn : Transport “jtag” was already selected
    VisualGDB_OpenOCD_Ready
    Info : Listening on port 6666 for tcl connections
    Info : Listening on port 60856 for telnet connections
    Error: esp_usb_jtag: could not find or open device!

    Error: No JTAG interface configured yet. Issue ‘init’ command in startup scripts before communicating with targets.
    Error: Failed to clear OCDDCR_ENABLEOCD!
    Error: No JTAG interface configured yet. Issue ‘init’ command in startup scripts before communicating with targets.
    Error: Failed to clear OCDDCR_ENABLEOCD!

     

     

    • This reply was modified 2 years ago by AshvajitP. Reason: To add more details
    Attachments:
    You must be logged in to view attached files.
    #33481
    support
    Keymaster

    Hi,

    This is something to check with Espressif, the maintainers of the ESP32 OpenOCD port. All VisualGDB does in this case is launch OpenOCD with the parameters you select.

    #33485
    AshvajitP
    Participant

    Hi,

    I have found the issue and I am able to debug my ESP32-S3 now. It turns out that visual GDB was not able to change the driver of USB device. I had to do it manually using USB Driver Tool and is working now with earlier given commands.

    Attachments:
    You must be logged in to view attached files.
    #34395
    orbitcoms
    Participant

    I am also interested how to get the debugging working for the S3.

    Can the dual USB version modules be debugged in Visual Studio with Visual gdb? The board works with openocd and flash programming ok in VS Code.

    I notice in the “New Espressif sdk project” dialog there is only option to select ESP32C3 built-in jtag. Is this to be selected to set up S3 debugging as attached?

    Attachments:
    You must be logged in to view attached files.
    #34410
    support
    Keymaster

    Hi,

    The built-in debugging interface was originally introduced in ESP32C3, hence VisualGDB calls it “ESP32C3 debug interface”. If it was auto-detected by the USB ID as shown on the screenshot, it should work just fine.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.