标题: KEIL软件的Error: Flash Download failed - Could not load file [打印本页]

作者: 莱诺123    时间: 2018-8-23 01:12
标题: KEIL软件的Error: Flash Download failed - Could not load file
最近买了一个开发板,在创建寄存器模板的时候,最后一步无法下载,KEIL软件的Error: Flash Download failed - Could not load file '..\OBJ\Template.axf'解决思路
作者: 莱诺123    时间: 2018-8-23 01:12
求大神指点
作者: 莱诺123    时间: 2018-8-23 02:57
这是出现的错误:
Build target 'Target 1'
compiling main.c...
assembling main.s...
linking...
.\Obj\Template.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_hd.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 1 error messages.
".\Obj\Template.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02
Load "E:\\qianrushi\\实验\\寄存器模板创建\\Obj\\Template.axf"
_____^
*** error 56: cannot open file
Error: Flash Download failed  -  Could not load file 'E:\qianrushi\实验\寄存器模板创建\Obj\Template.axf'
Flash Load finished at 02:51:02
Load "E:\\qianrushi\\实验\\寄存器模板创建\\Obj\\Template.axf"
_____^
*** error 56: cannot open file
Error: Flash Download failed  -  Could not load file 'E:\qianrushi\实验\寄存器模板创建\Obj\Template.axf'
Flash Load finished at 02:53:15
作者: 一波三折    时间: 2018-8-23 16:07
在Options for Target 'Template'中的User选项下设置After Build/Rebuild下Run#的路径,路径就选择Template.axf的实际路径即可
作者: admin    时间: 2018-8-25 15:52
参考下:http://www.51hei.com/bbs/dpj-132984-1.html
作者: jlli    时间: 2020-8-29 11:33
莱诺123 发表于 2018-8-23 02:57
这是出现的错误:
Build target 'Target 1'
compiling main.c...

楼主解决了不?我现在也有这个问题

作者: ly1972001    时间: 2020-8-29 14:21
编译未通过,有一个错误,Undefined symbol SystemInit 。
当然就不让下载了。说明KEIL还是很负责的。
作者: 梁廷明    时间: 2020-8-31 14:09
下载错误,找不到仿真模板,你用新的工程下载试试
作者: 小文文    时间: 2020-8-31 15:05
你程序没问题?
作者: GIGI111    时间: 2020-8-31 15:48
可以参考这个https://zhuanlan.zhihu.com/p/91157946
作者: 权威人物    时间: 2020-8-31 17:06
程序报错了,你不用看你程序有没有问题的么?




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1