新手上路
- 积分
- 26
- 金钱
- 26
- 注册时间
- 2018-9-11
- 在线时间
- 3 小时
|
1金钱
如题:为什么必须在配置文件里定义USE_STDPERIPH_DRIVER和STM32F40_41xxx ?
而在主函数前面采用
#define STM32F40_41xxx
#define USE_STDPERIPH_DRIVER
这种预定义方式程序就会编译不通过,出现很多warning和一个错误:
....
..\FWLIB\src\stm32f4xx_wwdg.c(242): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_WWDG_COUNTER(Counter));
..\FWLIB\src\stm32f4xx_wwdg.c: 4 warnings, 0 errors
linking...
..\test1.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.
"..\test1.axf" - 1 Error(s), 545 Warning(s).
Target not created.
Build Time Elapsed: 00:00:34
|
|