Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: esp_usb_jtag: could not find or open device! (OCD-943) #327

Open
aygh4266 opened this issue Jun 6, 2024 · 14 comments
Open

Error: esp_usb_jtag: could not find or open device! (OCD-943) #327

aygh4266 opened this issue Jun 6, 2024 · 14 comments

Comments

@aygh4266
Copy link

aygh4266 commented Jun 6, 2024

OpenOCD version

v0.12.0-esp32-20240318

Operating System

Windows 11

Using an IDE ?

VSCode

OpenOCD command line

openocd -f board/esp32s3-builtin.cfg

ESP-IDF version

v5.2.2

Problem Description

Hello everyone,

I am trying to debug my code on my ESP32-S3-DevKitM-1 using esp-prog.
I think it is PID VID issue, since the PID VID on my PORT are follwing USB\VID_0403&PID_6010&MI_00 (libwdi autogenerated).

I have tried to reconfigure the esp32s3-builtin.cfg using these commands:

adapter driver ftdi
ftdi vid_pid 0x0403 0x6010
ftdi layout_init 0x0008 0x000b
ftdi layout_signal nSRST -data 0x0020 -oe 0x0020
adapter speed 20000
transport select jtag

set ESP32_ONLYCPU 1
source [find target/esp32s3.cfg]

but I still got another error:

Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi tdo_sample_edge falling"
Info : clock speed 20000 kHz
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
Warn : Bypassing JTAG setup events due to errors
Warn : [esp32s3.cpu0] Unexpected OCD_ID = ffffffff
Error: [esp32s3.cpu0] Examination failed
Warn : target esp32s3.cpu0 examination failed
Warn : [esp32s3.cpu1] Unexpected OCD_ID = ffffffff
Error: [esp32s3.cpu1] Examination failed
Warn : target esp32s3.cpu1 examination failed
Info : starting gdb server for esp32s3.cpu0 on 3333
Info : Listening on port 3333 for gdb connections

The Pin Connection is okay. Any help would be appreicated.

Debug Logs

Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselecting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: esp_usb_jtag: could not find or open device!
C:\Users\Labor-Admin\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error:
at file "C:\Users\Labor-Admin\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9

Expected behavior

OpenOCD connected successfully to the board

Screenshots

No response

@github-actions github-actions bot changed the title Error: esp_usb_jtag: could not find or open device! Error: esp_usb_jtag: could not find or open device! (OCD-943) Jun 6, 2024
@erhankur
Copy link
Collaborator

erhankur commented Jun 6, 2024

@aygh4266 Did you burn any efuse to use JTAG pins instead of USB-SERIAL-JTAG? By default usb-serial-jtag is enabled.

https://docs.espressif.com/projects/esp-idf/en/v5.2.2/esp32s3/api-guides/jtag-debugging/configure-other-jtag.html#configure-efuses

And, for the ESP-PROG you can use -f board/esp32s3-ftdi.cfg

@aygh4266
Copy link
Author

aygh4266 commented Jun 6, 2024

@aygh4266 Did you burn any efuse to use JTAG pins instead of USB-SERIAL-JTAG? By default usb-serial-jtag is enabled.

https://docs.espressif.com/projects/esp-idf/en/v5.2.2/esp32s3/api-guides/jtag-debugging/configure-other-jtag.html#configure-efuses

And, for the ESP-PROG you can use -f board/esp32s3-ftdi.cfg

OK I understand it better right now. So basically there are two option to debug the esp idf. Using USB-Serial-JTAG by default or using JTAG with external debugger like ESP PROG. So before I burn the efuse, I am trying to use the USB SERIAL JTAG but I still having issues. I tried this command openocd -f board/esp32s3-builtin.cfg for the serial builtin.

And got this output:

Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselecting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : esp_usb_jtag: serial (F4:12:FA:87:C4:D8)
Info : esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255
Info : clock speed 40000 kHz
Info : JTAG tap: esp32s3.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32s3.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : [esp32s3.cpu0] Examination succeed
Info : [esp32s3.cpu1] Examination succeed
Info : starting gdb server for esp32s3.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
Info : [esp32s3.cpu0] Debug controller was reset.
Info : [esp32s3.cpu0] Core was reset.
Info : [esp32s3.cpu1] Debug controller was reset.
Info : [esp32s3.cpu1] Core was reset.
Info : [esp32s3.cpu0] Target halted, PC=0x40375D4B, debug_reason=00000000
Info : [esp32s3.cpu0] Reset cause (1) - (Power on reset)
Info : [esp32s3.cpu1] Target halted, PC=0x403789D2, debug_reason=00000000
Info : [esp32s3.cpu1] Reset cause (1) - (Power on reset)

@aygh4266
Copy link
Author

aygh4266 commented Jun 6, 2024

Update: I can flash the esp32 using the JTAG but can't debug. Maybe it is a VSCode issue, since i am using esp idf extension

@erhankur
Copy link
Collaborator

erhankur commented Jun 6, 2024

We are about to release the new idf extension which will be faster than the current one. You can download it from here and give it a try. espressif/vscode-esp-idf-extension#1207 (comment)

Then you can report your debugging issue there or here with the verbose logs.

As I see from your logs, you don't have an issue with the usb-serial-jtag.

@erhankur
Copy link
Collaborator

erhankur commented Jun 7, 2024

@aygh4266 closing this. Feel free to re-open if you have any other issues.

@PragatiGarg-eaton
Copy link

Update: I can flash the esp32 using the JTAG but can't debug. Maybe it is a VSCode issue, since i am using esp idf extension

@erhankur @aygh4266 I’m also facing the same issue, and it’s not related to VSCode since I’ve tried running it through the command line as well.

@erhankur erhankur reopened this Dec 26, 2024
@PragatiGarg-eaton
Copy link

@erhankur Following are the debug logs:

  1. For cmd: >openocd -d3 -f board/esp32c3-builtin.cfg
Open On-Chip Debugger v0.12.0-esp32-20240821 (2024-08-21-14:45)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
User : 3 15 options.c:52 configuration_output_handler(): debug_level: 3User : 4 15 options.c:52 configuration_output_handler():
Debug: 5 15 options.c:346 parse_cmdline_args(): ARGV[0] = "openocd"
Debug: 6 30 options.c:346 parse_cmdline_args(): ARGV[1] = "-d3"
Debug: 7 34 options.c:346 parse_cmdline_args(): ARGV[2] = "-f"
Debug: 8 36 options.c:346 parse_cmdline_args(): ARGV[3] = "board/esp32c3-builtin.cfg"
Debug: 9 39 options.c:233 add_default_dirs(): bindir=/builds/idf/openocd-esp32/_build/../openocd-esp32/bin
Debug: 10 39 options.c:234 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/_build/../openocd-esp32/share/openocd
Debug: 11 48 options.c:235 add_default_dirs(): exepath=C:/OpenOCD-esp32/821/openocd-esp32/bin
Debug: 12 51 options.c:236 add_default_dirs(): bin2data=../share/openocd
Debug: 14 59 configuration.c:33 add_script_search_dir(): adding C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/site
Debug: 15 59 configuration.c:33 add_script_search_dir(): adding C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts
Debug: 16 71 command.c:152 script_debug(): command - ocd_find board/esp32c3-builtin.cfg
Debug: 17 75 configuration.c:88 find_file(): found C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/board/esp32c3-builtin.cfg
Debug: 18 83 command.c:152 script_debug(): command - ocd_find interface/esp_usb_jtag.cfg
Debug: 19 89 configuration.c:88 find_file(): found C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/interface/esp_usb_jtag.cfg
Debug: 20 96 command.c:152 script_debug(): command - adapter driver esp_usb_jtag
Info : 21 99 transport.c:106 allow_transports(): only one transport option; autoselecting 'jtag'
Debug: 22 104 command.c:152 script_debug(): command - espusbjtag vid_pid 0x303a 0x1001
Info : 23 108 esp_usb_jtag.c:891 esp_usb_jtag_vid_pid(): esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Debug: 24 110 command.c:152 script_debug(): command - espusbjtag caps_descriptor 0x2000
Info : 25 118 esp_usb_jtag.c:902 esp_usb_jtag_caps_descriptor(): esp_usb_jtag: capabilities descriptor set to 0x2000
Debug: 26 120 command.c:152 script_debug(): command - adapter speed 40000
Debug: 27 126 adapter.c:262 adapter_config_khz(): handle adapter khz
Debug: 28 129 adapter.c:226 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 29 134 adapter.c:226 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 30 139 command.c:152 script_debug(): command - ocd_find target/esp32c3.cfg
Debug: 31 144 configuration.c:88 find_file(): found C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/target/esp32c3.cfg  
Debug: 32 151 command.c:152 script_debug(): command - ocd_find target/esp_common.cfg
Debug: 33 155 configuration.c:88 find_file(): found C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/target/esp_common.cfg
Debug: 34 161 command.c:152 script_debug(): command - ocd_find bitsbytes.tcl
Debug: 35 164 configuration.c:88 find_file(): found C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/bitsbytes.tcl
Debug: 36 171 command.c:152 script_debug(): command - ocd_find memory.tcl
Debug: 37 176 configuration.c:88 find_file(): found C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/memory.tcl
Debug: 38 182 command.c:152 script_debug(): command - ocd_find mmr_helpers.tcl
Debug: 39 186 configuration.c:88 find_file(): found C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/mmr_helpers.tcl
Debug: 40 188 command.c:152 script_debug(): command - ocd_find target/esp_version.cfg
Debug: 41 197 configuration.c:88 find_file(): found C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/target/esp_version.cfg
Debug: 42 204 command.c:152 script_debug(): command - version
Debug: 43 206 command.c:152 script_debug(): command - add_help_text program_esp write an image to flash, address is only required for binary images. verify, reset, exit, compress, restore_clock and encrypt are optional
Debug: 44 214 command.c:152 script_debug(): command - add_usage_text program_esp <filename> [address] [verify] [reset] [exit] [compress] [no_clock_boost] [restore_clock] [encrypt]
Debug: 45 225 command.c:152 script_debug(): command - add_help_text program_esp_bins write all the images at address specified in flasher_args.json generated while building idf project
Debug: 46 232 command.c:152 script_debug(): command - add_usage_text program_esp_bins <build_dir> flasher_args.json [verify] [reset] [exit] [compress] [no_clock_boost] [restore_clock]
Debug: 47 241 command.c:152 script_debug(): command - add_help_text esp_get_mac Print MAC address of the chip. Use a `format` argument to return formatted MAC value
Debug: 48 248 command.c:152 script_debug(): command - add_usage_text esp_get_mac [format]
Debug: 49 252 command.c:152 script_debug(): command - jtag newtap esp32c3 tap0 -irlen 5 -expected-id 0x00005c25
Debug: 50 258 tcl.c:405 handle_jtag_newtap_args(): Creating New Tap, Chip: esp32c3, Tap: tap0, Dotted: esp32c3.tap0, 4 params
Debug: 51 259 core.c:1476 jtag_tap_init(): Created Tap: esp32c3.tap0 @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 52 271 command.c:152 script_debug(): command - target create esp32c3 esp32c3 -chain-position esp32c3.tap0 -coreid 0 -rtos FreeRTOS
Debug: 53 280 target.c:2139 target_free_all_working_areas_restore(): freeing all working areas
Debug: 54 287 FreeRTOS.c:1472 freertos_create(): freertos_create
Debug: 55 290 command.c:258 register_command(): command 'esp' is already registered
Debug: 56 295 command.c:258 register_command(): command 'esp32c3 esp' is already registered
Debug: 57 301 command.c:152 script_debug(): command - esp32c3 configure -work-area-phys 0x3FC80000 -work-area-virt 0x3FC80000 -work-area-size 0x24000 -work-area-backup 1
Debug: 58 311 target.c:2139 target_free_all_working_areas_restore(): freeing all working areas
Debug: 59 314 target.c:2139 target_free_all_working_areas_restore(): freeing all working areas
Debug: 60 319 target.c:2139 target_free_all_working_areas_restore(): freeing all working areas
Debug: 61 324 target.c:2139 target_free_all_working_areas_restore(): freeing all working areas
Debug: 62 326 command.c:152 script_debug(): command - flash bank esp32c3.flash esp32c3 0x0 0 0 0 esp32c3
Debug: 63 332 command.c:258 register_command(): command 'esp' is already registered
Debug: 64 338 tcl.c:1308 handle_flash_bank_command(): 'esp32c3' driver usage field missing
Debug: 65 341 command.c:152 script_debug(): command - flash bank esp32c3.irom esp32c3 0x0 0 0 0 esp32c3
Debug: 66 342 command.c:258 register_command(): command 'esp' is already registered
Debug: 67 342 command.c:258 register_command(): command 'esp appimage_offset' is already registered
Debug: 68 354 command.c:258 register_command(): command 'esp compression' is already registered
Debug: 69 357 command.c:258 register_command(): command 'esp verify_bank_hash' is already registered
Debug: 70 361 command.c:258 register_command(): command 'esp flash_stub_clock_boost' is already registered
Debug: 71 366 command.c:258 register_command(): command 'esp encrypt_binary' is already registered
Debug: 72 371 command.c:258 register_command(): command 'esp stub_log' is already registered
Debug: 73 374 tcl.c:1308 handle_flash_bank_command(): 'esp32c3' driver usage field missing
Debug: 74 377 command.c:152 script_debug(): command - flash bank esp32c3.drom esp32c3 0x0 0 0 0 esp32c3
Debug: 75 380 command.c:258 register_command(): command 'esp' is already registered
Debug: 76 386 command.c:258 register_command(): command 'esp appimage_offset' is already registered
Debug: 77 390 command.c:258 register_command(): command 'esp compression' is already registered
Debug: 78 394 command.c:258 register_command(): command 'esp verify_bank_hash' is already registered
Debug: 79 397 command.c:258 register_command(): command 'esp flash_stub_clock_boost' is already registered
Debug: 80 404 command.c:258 register_command(): command 'esp encrypt_binary' is already registered
Debug: 81 407 command.c:258 register_command(): command 'esp stub_log' is already registered
Debug: 82 407 tcl.c:1308 handle_flash_bank_command(): 'esp32c3' driver usage field missing
Debug: 83 416 command.c:152 script_debug(): command - esp32c3 configure -event halted 
                global _ESP_WDT_DISABLE
                $_ESP_WDT_DISABLE
                esp halted_event_handler

Debug: 84 423 command.c:152 script_debug(): command - esp32c3 configure -event examine-end
                # Need to enable to set 'semihosting_basedir'
                arm semihosting enable
                arm semihosting_resexit enable
                if { [info exists _SEMIHOST_BASEDIR] } {
                        if { $_SEMIHOST_BASEDIR != "" } {
                                arm semihosting_basedir $_SEMIHOST_BASEDIR
                        }
                }

Debug: 85 439 command.c:152 script_debug(): command - esp32c3 configure -event reset-assert-post
                global _ESP_SOC_RESET
                $_ESP_SOC_RESET

Debug: 86 445 command.c:152 script_debug(): command - esp32c3 configure -event gdb-attach
                if { $_ESP_ARCH == "xtensa" } {
                        $_TARGETNAME_0 xtensa smpbreak BreakIn BreakOut
                }
                # necessary to auto-probe flash bank when GDB is connected and generate proper memory map
                halt 1000
                if { [$_ESP_MEMPROT_IS_ENABLED] } {
                        # 'reset halt' to disable memory protection and allow flasher to work correctly
                        echo "Memory protection is enabled. Reset target to disable it..."
                        reset halt
                }

                if { $_ESP_ARCH == "riscv" } {
                        # by default mask interrupts while stepping
                        riscv set_maskisr steponly
                }

Debug: 87 470 command.c:152 script_debug(): command - riscv set_reset_timeout_sec 2
Debug: 88 473 command.c:152 script_debug(): command - riscv set_command_timeout_sec 5
Debug: 89 477 command.c:152 script_debug(): command - riscv set_mem_access sysbus progbuf abstract
Debug: 90 480 command.c:152 script_debug(): command - riscv set_ebreakm on
Debug: 91 486 command.c:152 script_debug(): command - riscv set_ebreaks on
Debug: 92 490 command.c:152 script_debug(): command - riscv set_ebreaku on
Debug: 93 493 command.c:152 script_debug(): command - esp32c3 riscv expose_csrs 2016=mpcer
Debug: 94 496 command.c:152 script_debug(): command - esp32c3 riscv expose_csrs 2017=mpcmr
Debug: 95 502 command.c:152 script_debug(): command - esp32c3 riscv expose_csrs 2018=mpccr
Debug: 96 506 command.c:152 script_debug(): command - esp32c3 riscv expose_csrs 2051=cpu_gpio_oen
Debug: 97 510 command.c:152 script_debug(): command - esp32c3 riscv expose_csrs 2052=cpu_gpio_in
Debug: 98 512 command.c:152 script_debug(): command - esp32c3 riscv expose_csrs 2053=cpu_gpio_out
Info : 99 521 server.c:299 add_service(): Listening on port 6666 for tcl connections
Info : 100 521 server.c:299 add_service(): Listening on port 4444 for telnet connections
Debug: 101 529 command.c:152 script_debug(): command - init
Debug: 102 532 command.c:152 script_debug(): command - target init
Debug: 103 534 command.c:152 script_debug(): command - target names
Debug: 104 539 command.c:152 script_debug(): command - esp32c3 cget -event gdb-flash-erase-start
Debug: 105 542 command.c:152 script_debug(): command - esp32c3 configure -event gdb-flash-erase-start reset init
Debug: 106 542 command.c:152 script_debug(): command - esp32c3 cget -event gdb-flash-write-end
Debug: 107 552 command.c:152 script_debug(): command - esp32c3 configure -event gdb-flash-write-end reset halt
Debug: 108 553 command.c:152 script_debug(): command - esp32c3 cget -event gdb-attach
Debug: 109 562 target.c:1597 handle_target_init_command(): Initializing targets...
Debug: 110 564 riscv.c:449 riscv_init_target(): [esp32c3] riscv_init_target()
Debug: 111 570 semihosting_common.c:105 semihosting_common_init():
Error: 112 604 esp_usb_jtag.c:636 esp_usb_jtag_init(): esp_usb_jtag: could not find or open device!
Debug: 113 617 command.c:528 exec_command(): Command 'init' failed with error code -4
User : 114 617 command.c:600 command_run_line(): C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/target/esp_common.cfg:9: Error:
at file "C:/OpenOCD-esp32/821/openocd-esp32/bin/../share/openocd/scripts/target/esp_common.cfg", line 9
Debug: 115 631 breakpoints.c:328 breakpoint_remove_all_internal(): [esp32c3] Delete all breakpoints
Debug: 116 636 riscv.c:534 riscv_deinit_target(): [esp32c3] riscv_deinit_target()
Error: 117 641 riscv.c:429 get_target_type(): [esp32c3] Unsupported DTM version: -1
Error: 118 644 riscv.c:539 riscv_deinit_target(): [esp32c3] Could not identify target type.
Debug: 119 644 target.c:2139 target_free_all_working_areas_restore(): freeing all working areas
  1. openocd -d3 -c 'set ESP_RTOS none' -c 'set ESP_FLASH_SIZE 0' -f target/esp32.cfg -c "init; reset halt"

Open On-Chip Debugger v0.12.0-esp32-20240821 (2024-08-21-14:45)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
User : 3 0 options.c:52 configuration_output_handler(): debug_level: 3User : 4 16 options.c:52 configuration_output_handler():
Unexpected command line argument: ESP_RTOS

@erhankur
Copy link
Collaborator

@PragatiGarg-eaton Please try installing the drivers using the online installer: https://dl.espressif.com/dl/esp-idf/

For the C3, we have a customized WinUSB driver. You can install it from the link.

And for the other error, try this command

openocd -d3 -c 'set ESP_RTOS none' -c 'set ESP_FLASH_SIZE 0' -f interface/ftdi/esp32_devkitj_v1.cfg -f target/esp32.cfg -c "init; reset halt"

You need to specify both an interface file and the target.

@PragatiGarg-eaton
Copy link

PragatiGarg-eaton commented Dec 27, 2024

@PragatiGarg-eaton Please try installing the drivers using the online installer: https://dl.espressif.com/dl/esp-idf/

For the C3, we have a customized WinUSB driver. You can install it from the link.

And for the other error, try this command

openocd -d3 -c 'set ESP_RTOS none' -c 'set ESP_FLASH_SIZE 0' -f interface/ftdi/esp32_devkitj_v1.cfg -f target/esp32.cfg -c "init; reset halt"

You need to specify both an interface file and the target.

Reference: https://www.esp32.com/viewtopic.php?f=12&t=21007#p76800, http://esp32.io/viewtopic.php?t=42394#p140421 and http://esp32.io/viewtopic.php?t=42394#p140421

@erhankur, I’m using the ESP32-C2-DevKitM-1 (revision v0.2) and have already tried connecting a USB/TTL converter to the GPIO18 and GPIO19 pins on the board, but it hasn’t worked. Do you think swapping the resistors, as mentioned, is necessary to use USB/JTAG? The resistors are very small and difficult to solder/desolder, so if there are any other alternatives, I’d prefer to avoid risking damage to the board

@erhankur
Copy link
Collaborator

Ah, yes, I forgot that the USB connector is connected to the serial bridge, not a built-in USB device.

So, you will need a cable like this: https://www.adafruit.com/product/4448

You don't need to touch the resistors. Just connect the green and white wires to GPIO19 and GPIO18, respectively.

@PragatiGarg-eaton
Copy link

Ah, yes, I forgot that the USB connector is connected to the serial bridge, not a built-in USB device.

So, you will need a cable like this: https://www.adafruit.com/product/4448

You don't need to touch the resistors. Just connect the green and white wires to GPIO19 and GPIO18, respectively.

Yeah, I already gave it a try, it is not working even after the USB/ttl connections.

@erhankur
Copy link
Collaborator

Please make sure to use a breakout cable instead of a USB/TTL converter.

@PragatiGarg-eaton
Copy link

Okay, I'll check with this once.

@PragatiGarg-eaton
Copy link

Ah, yes, I forgot that the USB connector is connected to the serial bridge, not a built-in USB device.

So, you will need a cable like this: https://www.adafruit.com/product/4448

You don't need to touch the resistors. Just connect the green and white wires to GPIO19 and GPIO18, respectively.

Hi @erhankur I tried by connecting breakout cable to GPIO18/19 as you mentioned and as per https://docs.espressif.com/projects/esp-idf/en/stable/esp32c3/api-guides/jtag-debugging/configure-builtin-jtag.html

  • But I am getting unknown USB device issue now,

image

  • I also tried to install the driver through zadig, but it is failing too, since no USB ID is present and it is unable to identify the hardware here-

image

image

  • Output from the
    image

cc: @igrr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants