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 while flashing ESP32-C3-DevKitM-1 via builtin JTAG interface (OCD-543) #224

Closed
Wasabinary opened this issue Apr 14, 2022 · 6 comments

Comments

@Wasabinary
Copy link

Development Kit

ESP32-C3-DevKitM-1

Module or chip used

ESP32-C3-MINI-1

Debug Adapter

builtin usb-jtag

OpenOCD version

v0.11.0-esp32-20211220

Operating System

Windows

Using an IDE ?

Eclipse

OpenOCD command line

openocd -f board/esp32c3-builtin.cfg

JTAG Clock Speed

default

ESP-IDF version

v4.4

Problem Description

  1. Create ESP-IDF "hello-world" template project for ESP32-C3
  2. Remove R1 and R4 resistors from ESP32-C3-DevKitM-1 to disconnect CP2102N USB to Serial chip from ESP32-C3-MINI-1
  3. Place R2 and R3 resistors to link USB connector straight to GPIO18 and GPIO19
  4. Flash board via JTAG using Eclipse IDE and openocd -f board/esp32c3-builtin.cfg command

Debug Logs

Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:43)
Licensed under GNU GPL v2
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
Warn : Transport "jtag" was already selected
Flashing C:/Users/rbruneau/eclipse-workspace/hello_world/build/partition_table/partition-table.bin at 0x8000
Info : esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255
Info : clock speed 40000 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: esp32c3.cpu: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unsupported DTM version: 15
Warn : target esp32c3 examination failed
Info : starting gdb server for esp32c3 on 3333
Info : Listening on port 3333 for gdb connections
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: esp32c3.cpu: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unsupported DTM version: 15
Error: Unsupported DTM version: 15

Expected behavior

Successful flashing of the board

Screenshots

No response

@github-actions github-actions bot changed the title Error while flashing ESP32-C3-DevKitM-1 via builtin JTAG interface Error while flashing ESP32-C3-DevKitM-1 via builtin JTAG interface (OCD-543) Apr 26, 2022
@erhankur erhankur removed the Type: Bug label May 6, 2022
@erhankur
Copy link
Collaborator

erhankur commented May 6, 2022

@Wasabinary there is similar topic in the ESP32 forum Can you please verify your modifications?

@Wasabinary
Copy link
Author

Hello @erhankur,

This topic is precisely the one I followed to get the hardware modifications right. It looks OK since the board is recognized as a COM port, so I can flash it using idf.py -p COMx flash monitor. Still, the openocd -f board/esp32c3-builtin.cfg command fails with the error message above... Any suggestions ?

@erhankur
Copy link
Collaborator

@Wasabinary I couldn't help a lot, but I wonder did you manage to fix the issue?

@Wasabinary
Copy link
Author

@erhankur No I actually gave up. I think I don't really understand how the built-in JTAG interface works...

@erhankur
Copy link
Collaborator

@Spritetm maybe you can be help in the hardware design.

@Marc-Aurele
Copy link

Hello

Don't you have to solder C4 and C5 also ? Maybe the issue could come from this ? (as they seem to be unmounted)
I'm also interested in this feature but I didn't test it yet !

regards

@erhankur erhankur closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2023
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