启动文件
STM32F103ZET6是属于大容量的器件,启动文件应该选择startup_stm32f10x_hd.s
stm32启动文件的选择.
添加之后编译,会报错:
Rebuild target 'Target 1'
compiling main.c...
main.c(11): warning: #1-D: last line of file ends without a newline
//}
main.c: 1 warning, 0 errors
assembling startup_stm32f10x_hd.s...
linking...
.\Objects\Project.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.
".\Objects\Project.axf" - 1 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed: 00:00:00
其中
main.c(11): warning: #1-D: last line of file ends without a newline
需要在最后一行来个回车,添加一个空行(奇了怪了,为什么会这样报错)
assembling startup_stm32f10x_hd.s...
linking...
.\Objects\Project.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_hd.o).
Not enough information to list image symbols.
这个是因为在之前添加的启动文件中有这个
; Reset handler
Reset_Handler PROC
EXPORT Reset_Handler [