初级会员

- 积分
- 98
- 金钱
- 98
- 注册时间
- 2021-5-2
- 在线时间
- 15 小时
|
1金钱
本帖最后由 samuelhg 于 2022-7-31 07:26 编辑
在使用clion开发时,配合openocd下载烧录代码配置STLINK很方便,
配置文件如下
- source [find interface/stlink.cfg]
- transport select hla_swd
- source [find target/stm32f1x.cfg]
- adapter speed 10000
复制代码 但是在配置DAP时,就不行了配置文件如下
- <blockquote># choose dap-link
复制代码 结果
- Open On-Chip Debugger 0.11.0 (2021-11-18) [https://github.com/sysprogs/openocd]
- Licensed under GNU GPL v2
- libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable}
- 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: FW Version = 2.0.0
- Info : CMSIS-DAP: Interface Initialised (SWD)
- Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 1 nRESET = 1
- Info : CMSIS-DAP: Interface ready
- Info : clock speed 10000 kHz
- Error: Error connecting DP: cannot read IDR
复制代码
请教如何解决?
|
|