ESP32-C3-DevKitC-02 is external jtag adapter required

goldzwm
Posts: 5
Joined: Mon Aug 29, 2022 12:44 pm

ESP32-C3-DevKitC-02 is external jtag adapter required

Postby goldzwm » Tue Sep 06, 2022 12:00 pm

i am trying to access the jtag functionality in "ESP32-C3-DevKitC-02" but a jtag port does not appear in the device manager.
i looked in the menuconfig and tried both usb_serial_jtag_port and usb serial/jtag controller
but does not see how to connect to the supposed onboard jtag controller
i tried replacing the silabs driver but that did not help too
i tried going with the getting started guides but the openocd doesn't find the jtag device.
if anyone knows how to use that and help, thanks.

ESP_Sprite
Posts: 9711
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C3-DevKitC-02 is external jtag adapter required

Postby ESP_Sprite » Wed Sep 07, 2022 12:04 am

That devkit by default connects to an USB-serial chip (the Silabs one) rather than directly to the ESP32. If you want to connect directly, either you can make your own cable connecting to GPIO18/19 (ref) or move 2 SMD resistors so the micro-USB port connects to it.

ESP_jakob
Posts: 49
Joined: Mon Jun 01, 2020 6:28 am

Re: ESP32-C3-DevKitC-02 is external jtag adapter required

Postby ESP_jakob » Wed Sep 07, 2022 9:03 am

Regarding changing the resistors, you can refer to the pictures. "us_uart_bridge.jpg" refers to the default setting when you buy a development board. If you want to use the integrated USB serial/JTAG on the micro-USB port of the board, you need to change the resistors to the orientation shown in "usb_serial_jtag.jpg". The resistors are quite small, so creating your own cable and connecting it as ESP_Sprite suggested, might be easier.
Attachments
usb_uart_bridge.jpg
usb_uart_bridge.jpg (922.06 KiB) Viewed 2870 times
usb_serial_jtag.jpg
usb_serial_jtag.jpg (795.83 KiB) Viewed 2870 times

goldzwm
Posts: 5
Joined: Mon Aug 29, 2022 12:44 pm

Re: ESP32-C3-DevKitC-02 is external jtag adapter required

Postby goldzwm » Wed Sep 07, 2022 1:46 pm

yes, this was my problem.
i finally connected a custom patch cable to gpio18/19 and it works now
thank you.

goldzwm
Posts: 5
Joined: Mon Aug 29, 2022 12:44 pm

Re: ESP32-C3-DevKitC-02 is external jtag adapter required

Postby goldzwm » Tue Sep 20, 2022 11:49 am

it is now recognized and working.
my only problem is that is runs with openocd only when i boot into bootloader mode and in normal flash boot mode openocd does not work.
but then I cannot debug the actual program because it runs the boot program.
anyone encountered this?

ESP_Sprite
Posts: 9711
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C3-DevKitC-02 is external jtag adapter required

Postby ESP_Sprite » Wed Sep 21, 2022 2:36 am

Possibly your program is reconfiguring the GPIO18/19 pins?

Who is online

Users browsing this forum: No registered users and 44 guests