本帖最后由 修道者 于 2024-10-17 10:07 编辑
1.芯片AT32F421F8P7,
2.PA13,PA14,开机1s后配置成输入模式
3.使用AT -LINK
4.空白芯片,第一次AT32IDE烧录成功,之后一直失败
Start download flash 2024-10-17 09:17:52
Exec cmd: D:\AT32IDE\OpenOCD/bin/openocd.exe -s D:\AT32IDE\OpenOCD/scripts -f ./interface/atlink.cfg -f ./target/at32f421xx.cfg -c program "D:\\项目备份\\巨贸\\24充灌机控制板\\程序\\联调程序\\YOD001\\project\\AT32_IDE/Debug/YOD001.elf" verify reset exit
Open On-Chip Debugger 0.11.0+dev-snapshot (2023-02-24-14:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : flash reg address: 0x0, usd addr: 0x0
Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable}
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: SWO-UART supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: Test domain timer supported
Info : CMSIS-DAP: FW Version = 2.3.5
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 5000 kHz
Error: Error connecting DP: cannot read IDR
in procedure 'program'
** OpenOCD init failed **
shutdown command invoked
Download failed 2024-10-17 09:17:53
5.使用官方ICP正常,每次都成功。
这具体是那里出现问题?求大佬指点 |