stm32新人首次编译出错
时间:10-02
整理:3721RD
点击:
编译后是这样子的:
linking...
.\Objects\LED.axf: Error: L6218E: Undefined symbol assert_param (referred from misc.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 1 error messages.
".\Objects\LED.axf" - 1 Error(s), 380 Warning(s).
Target not created.
Build Time Elapsed: 00:00:14
里面说的是:".\Objects\LED.axf" ,Target not created.
请问该如何解决
linking...
.\Objects\LED.axf: Error: L6218E: Undefined symbol assert_param (referred from misc.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 1 error messages.
".\Objects\LED.axf" - 1 Error(s), 380 Warning(s).
Target not created.
Build Time Elapsed: 00:00:14
里面说的是:".\Objects\LED.axf" ,Target not created.
请问该如何解决
assert_param这个没定义,找找吧,或者是没定义,或者是跨文件使用没正确说明
已经解决:在Options->C/C++->preprocessor Symboles有Define:项中输入USE_STDPERIPH_DRIVER,重新编译链接,无警告无错误
或者是头文件没加吧
哦,是设置的问题,还有.s文件如果加的不对,也会报一大堆错,反正一开始是折腾了一阵。