自制ESP32C3板子,内置USB JTAG接口模式无法下载和调试,USB串口模式可以下载固件,卡了一个月了

javaisrubbish
Posts: 6
Joined: Tue Mar 28, 2023 6:19 am

自制ESP32C3板子,内置USB JTAG接口模式无法下载和调试,USB串口模式可以下载固件,卡了一个月了

Postby javaisrubbish » Sun Dec 07, 2025 2:39 pm

自制ESP32C3板子,内置USB JTAG接口模式无法下载和调试,USB串口模式可以下载固件,卡了一个月了,望高人帮忙解决,卡着一直没办法量产。

[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20250707 (2025-07-06-17:44)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

debug_level: 2

Info : esp_usb_jtag: VID set to 0x303a and PID to 0x
1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000

Info : Listening on port 6666 for tcl c
onnections
Info : Listening on port 4444 for telnet connections

Info : esp_usb_jtag: serial (B4:3A:45:5A:0D:2C)

Info : esp_usb_jtag: Device foun
d. Base speed 40000KHz, div range 1 to 255

Info : clock speed 40000 kHz

Info : JTAG tap: esp32c3.tap0 tap/devi
ce found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)

Info : [esp32c3] externa
l reset happened in halted state (dmstatus:0x000f03a2)

Info : [esp32c3] datacount=2 progb
ufsize=16

Info : [esp32c3] Examined RISC-V core; found 1 harts
Info : [esp32c3] XLEN=32, misa=0x40101104

Info : [esp32c3] Examination succeed
Info : [esp32c3] starting gdb server on 3333

Info : Listening on port 3333 for gdb connections

[/OpenOCD]
[ESP-Flash]
Can't proceed with flashing, since project elf file (grbl_test.elf) is missing from the build dir. (c:\Users\38794\grbl_test\build)
[/ESP-Flash]
[Build]
Project build complete. To flash, run:
ESP-IDF: Flash your project in the ESP-IDF Visual Studio Code Extension
or in a ESP-IDF Terminal:
idf.py flash
or
idf.py -p PORT flash
or
python -m esptool --chip esp32c3 -b 460800 --before default_reset --after hard_reset --port COM5 write_flash --flash_mode dio --flash_size 2MB --flash_freq 80m 0x0 bootloader/bootloader.bin 0x10000 grbl_test.bin 0x8000 partition_table/partition-table.bin
or from the "c:\Users\38794\grbl_test\build" directory
python -m esptool --chip esp32c3 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"
Open On-Chip Debugger v0.12.0-esp32-20250707 (2025-07-06-17:44)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

[/Build]
[OpenOCD]
Info : accepting 'tcl' connection on tcp/6666
Info : dropped 'tcl' connection

Info : accepting 'tcl' connection on tcp/6666
ready

Flashing "c:/Users/38794/grbl_test/bui
ld/bootloader/bootloader.bin" at 0x0
** program_esp input args <0x0 verify> **

Info : JTAG tap: esp32c3.tap0 t
ap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)

Info : [esp32c3] Reset cause (3) - (Software core
reset)

** Programming Started **

Info : [esp32c3] Found 8 triggers

Warn : Failed to get flash maps (-9)!
Warn : Failed to read
❌ flash size!
Warn : Failed to get flash mappings (-4)!
Error: Failed to probe flash, size 0 KB
Error: auto_probe failed
Error: Failed to find bank 'esp32c3.flash'!

** Flashing Failed **
-1

[/OpenOCD]
[ESP-Flash]
Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']
[/ESP-Flash]
[OpenOCD]
[Stopped] : OpenOCD Server
For assistance with OpenOCD errors, please refer to our Troubleshooting FAQ: https://github.com/espressif/openocd-es ... ooting-FAQ
Open On-Chip Debugger v0.12.0-esp32-20250707 (2025-07-06-17:44)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

Open On-Chip Debugger v0.12.0-esp32-20250707 (2025-07-06-17:44)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

debug_level: 2

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 (B4:3A:45:5A:0D:2C)

Info : esp_usb_jtag: Device
found. Base speed 40000KHz, div range 1 to 255

Info : clock speed 40000 kH
z

Info : JTAG tap: esp32c3.tap0 tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)

Info : [esp32c3] datacount=2 progb
ufsize=16

Info : [esp32c3] Examined RISC-V core;
found 1 harts
Info : [esp32c3] XLEN=32, misa=0x40101104
Info : [esp32c3] Examination succeed
Info : [esp32c3] starting gdb server on 3333

Info : Listening on port 3333 for gdb connections

Info : accepting 'tcl' connection on tcp/6666
Info : dropped 'tcl' connection

Info : accepting 'tcl' connection on tcp/6666

ready

Flashing "c:/Users/38794/grb
l_test/build/bootloader/bootloader.bin" at 0x0
** program_esp input args <0x0 verify> **

Info : JTAG tap: esp32c3.tap0
tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)

Info : [esp32c3] Reset cause (3) - (Software core reset)

** Programming Started **

Info : [esp32c3] Found 8 triggers

Warn : Failed to get flash maps (-9)!

❌ Warn : Failed to read flash size!
Warn : Failed to get flash mappings (-4)!
Error: Failed to probe flash, size 0 KB
Error: auto_probe failed
Error: Failed to find bank 'esp32c3.flash'!
** Flashing Failed **

-1

[/OpenOCD]
[ESP-Flash]
Failed to flash the device (JTag), please try again [got response: '-1', expecting: '0']

miyongcheng
Posts: 2
Joined: Mon Sep 25, 2023 12:06 pm

Re: 自制ESP32C3板子,内置USB JTAG接口模式无法下载和调试,USB串口模式可以下载固件,卡了一个月了

Postby miyongcheng » Thu Apr 09, 2026 3:33 am

解决了吗,我也遇到这个问题,买的两种开发板一个可以一个不行,自己的板子也不行,搞不清楚问题在哪

Who is online

Users browsing this forum: No registered users and 2 guests