openosc and ESP32-C3 not working
Posted: Thu Dec 01, 2022 1:07 pm
- Hi, I don't get working openocd together with my ESP32-C3 board. I'm working with the elektor book "RISCV-V Assembly Language Programming" from Warren Gay and run Windows 10. The book mentions that openocd should work at minimum board rev. 3. That is given for my board (see snip from flashing attached below). Flashing and monitoring works fine, different projects, blink, hello world, arithmetic. The pins D+ and D- are mentioned. I'm not sure how to check, if these correctly wired to the USB connector on the board as required. I tried two different cables and connectors at front and back of my PC.
- I collected the needed *.cfg from github ESP32 (beginning with esp32c3-builtin.cfg) and stored three files in folders board,interface and target. I didn't edit these files, because I don't know the meaning yet and trust that these are valid.
- Please find two output snippets from flashing and trying connection with openocd. I investigated a lot, but now I don't know what to investigate next. Please help :?
- Flashing works fine, see excerpt from output
- snip begin --->
- esptool.py v3.3.2
- Serial port COM18
- Connecting....
- Chip is ESP32-C3 (revision 3)
- Features: Wi-Fi
- Crystal is 40MHz
- MAC: f4:12:fa:18:83:f4
- ...
- ESP-ROM:esp32c3-api1-20210207
- Build:Feb 7 2021
- snip end --->
- Excerpt from openocd try to connect
- snip begin --->
- 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
- 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!
- Error: Unsupported xlen: -1
- Error: Unknown target arch!
- snip end --->