Cannot find argument 'Reset Handler' 和 Cannot find argument'_____vector'

1.用keil4编译stm32工程出现以下错误,

Cannot find argument 'Reset Handler' 和 Cannot find argument'_____vector'

 

 

2.错误分析:

(1)Cannot find argument 'Reset Handler'表明启动文件xxxx.s找不到,未添加 入项目

(2)Cannot find argument'_____vector'表明找不到中断向量_____vector的Reset复位中断,单片机一上电就开始读0X0000 0004,找不到就无法复位。中断向量是在项目中的汇编文件xxxxx.s中定义的,出现该错误说明.s的汇编文件有问题或者没有添加,

 

 

3.解决方法:

将正确的启动文件加入文件夹,然后在工程中导入:

Cannot find argument 'Reset Handler' 和 Cannot find argument'_____vector'

 

Cannot find argument 'Reset Handler' 和 Cannot find argument'_____vector'

 

 

4.再次编译成功

Cannot find argument 'Reset Handler' 和 Cannot find argument'_____vector'