Open ttwards opened 3 days ago
Try to set 1MHz or 10MHz clock before IDR read
(esp) ttwards@MiWiFi-RC06-srv [~/esp/wireless-esp8266-dap] git:(master) ✗ ➜ openocd -f ./dap.cfg [15:44:37]
Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:25)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 10000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: JTAG supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: Test domain timer supported
Info : CMSIS-DAP: FW Version = 2.1.0
Info : CMSIS-DAP: Serial# = 1234
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 1 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 10000 kHz
Setting it to 10MHz caused openocd to be stuck here Setting it to 1MHz the problem is the same as 2MHz...
I thought it may be related to the version of IDF, but compiling fails with v5.3.1. Are there any plans to fix the issue with newer IDF?
I can not reproduce it. Check your hardware connection
Do models of developement boards matter? I'm currently using SEEED Xiao ESP32C3. I'll try the pre-compiled firmware later.
When I try to connect via openocd to a STM32F407IGH6, openocd reported
Error: Error connecting DP: cannot read IDR
Here is the log from openocdHere is log from ESP32(not complete)
Here is the data from logic analyzer:
You can see the first HIGH level, the time gap is 6.53 us
Here is data from logic analyzer of ST-LINK-v2 at the same bitrate You can also compare the first two signals
I'm so confused, seems when they work at both 2000kHz and sending
Request Debugport READ IDCODE
, ESP32-DAP has SWCLK at 2380 kHz, STLINK_v2 has SWCLK at 2000 kHz I've tried 1000 kHz, they are similar