如题:为什么必须在配置文件里定义USE_STDPERIPH_DRIVER和STM32F40_41xxx ?
而在主函数前面采用
#define STM32F40_41xxx
#define USE_STDPERIPH_DRIVER
这种预定义方式程序就会编译不通过,出现很多warning和一个错误:
....
..FWLIBsrcstm32f4xx_wwdg.c(242): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_WWDG_COUNTER(Counter));
..FWLIBsrcstm32f4xx_wwdg.c: 4 warnings, 0 errors
linking...
.. est1.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.
".. est1.axf" - 1 Error(s), 545 Warning(s).
Target not created.
Build Time Elapsed: 00:00:34
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>