【原因】
1、我在使用vscode进行编程下载中,配置好了下载参数:
- {
- // See https://go.microsoft.com/fwlink/?LinkId=733558
- // for the documentation about the tasks.json format
- "version": "2.0.0",
- "tasks": [
- {
- "label": "download code",
- "type": "process",
- "command": "D:/AT32IDE/OpenOCD/bin/openocd.exe",
- "args": [
- "-f",
- "D:/AT32IDE/OpenOCD/scripts/interface/atlink.cfg",
- "-f",
- "D:/AT32IDE/OpenOCD/scripts/target/at32l021xx.cfg",
- "-c",
- "program build/Project.elf verify reset exit"
- ],
- "group": "build"
- }
- ]
- }
下载时提示:
- * 正在执行任务: D:/AT32IDE/OpenOCD/bin/openocd.exe -f D:/AT32IDE/OpenOCD/scripts/interface/atlink.cfg -f D:/AT32IDE/OpenOCD/scripts/target/at32l021xx.cfg -c program build/Project.elf verify reset exit
- Open On-Chip Debugger 0.11.0+dev-snapshot (2024-08-05-13:55)
- Licensed under GNU GPL v2
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- Error: flash driver 'at32l0xx' not found
几经周折还是没有下载成功。然后使用AT32 IDE创建了工程。配置调试如下:
下载时也是提示:
我查看了at32l021xx.cfg源文件,他起先的文件内容是
很典型,这文件是没有更新过的。
烦请官方更新一下这个配置文件!
|