ESP32-C3-MINI Programmation Issues
Posted: Tue Aug 31, 2021 4:21 pm
Hello,
We currently have issues with the programmation of ESP32C3MINI1-H4.
We produced 12 PCB with this module on it and don't succeeded in reprogramming them on our PCB with JTAG protocol.
We have also Development boards (ESP32-DEVKITM-1) of this module, and the JTAG programmation works well on it.
When we unsolder the module of the Development Board to program it on JTAG by wiring only pins IO4,IO5,IO6,IO7 to the ESP-PROG Board, it works:
C:\esp-idf>openocd -f board/esp32c3-ftdi.cfg
Open On-Chip Debugger v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
force hard breakpoints
adapter speed: 5000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 5000 kHz
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Info : datacount=2 progbufsize=16
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x40101104
Info : Listening on port 3333 for gdb connections
When we take our module bought on Mouser to do the same thing, it doesn't work:
C:\esp-idf>openocd -f board/esp32c3-ftdi.cfg
Open On-Chip Debugger v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
force hard breakpoints
adapter speed: 5000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 5000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32c3.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: dtmcontrol is 0. Check JTAG connectivity/board power.
Info : Listening on port 3333 for gdb connections
Moreover, when we solder the modules we bought on Mouser on the Development Board, neither JTAG nor UART programmation works.
It seems like there is a difference between the Development Board module and the one we supplied on Mouser.
The only difference we can notice for now is that there is "D1H4" written on Development Board modules, and "XXH4" written on the ones we supplied.
We don't know if it is that difference that cause the issue of programmation we face...
Thanks for any help.
We currently have issues with the programmation of ESP32C3MINI1-H4.
We produced 12 PCB with this module on it and don't succeeded in reprogramming them on our PCB with JTAG protocol.
We have also Development boards (ESP32-DEVKITM-1) of this module, and the JTAG programmation works well on it.
When we unsolder the module of the Development Board to program it on JTAG by wiring only pins IO4,IO5,IO6,IO7 to the ESP-PROG Board, it works:
C:\esp-idf>openocd -f board/esp32c3-ftdi.cfg
Open On-Chip Debugger v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
force hard breakpoints
adapter speed: 5000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 5000 kHz
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Info : datacount=2 progbufsize=16
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x40101104
Info : Listening on port 3333 for gdb connections
When we take our module bought on Mouser to do the same thing, it doesn't work:
C:\esp-idf>openocd -f board/esp32c3-ftdi.cfg
Open On-Chip Debugger v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
force hard breakpoints
adapter speed: 5000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 5000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32c3.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: dtmcontrol is 0. Check JTAG connectivity/board power.
Info : Listening on port 3333 for gdb connections
Moreover, when we solder the modules we bought on Mouser on the Development Board, neither JTAG nor UART programmation works.
It seems like there is a difference between the Development Board module and the one we supplied on Mouser.
The only difference we can notice for now is that there is "D1H4" written on Development Board modules, and "XXH4" written on the ones we supplied.
We don't know if it is that difference that cause the issue of programmation we face...
Thanks for any help.