本帖最后由 Sancheese 于 2022-5-19 14:15 编辑
AT32F403A.cfg 配置文件如下
#CMSIS DAP-HS
source [find interface/atlink.cfg]
# adapter driver cmsis-dap
#SWD
# transport select swd
#MCU
source [find target/at32f4xx.cfg]
#10M
adapter speed 5000
# 不使用复位接口
reset_config none
CLion 实际运行的命令如下D:\DevelopTools\OpenOCD_V2.0.0\bin\openocd.exe
-s D:\DevelopTools\OpenOCD_V2.0.0\share\openocd\scripts
-f D:\Documents\AT32workspace\Develop\AT32F403A.cfg
-c "tcl_port disabled" -c "gdb_port disabled" -c "tcl_port disabled"
-c "program \"D:/Documents/AT32workspace/Develop/cmake-build-debug/Develop.elf\""
-c reset -c shutdown
报错如下(仍旧是flash driver 'at32f4x' not found)
Open On-Chip Debugger 0.10.0+dev-snapshot (2021-12-17-16:55)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 5000 kHz
Error: flash driver 'at32f4x' not found
|