初级会员

- 积分
- 102
- 金钱
- 102
- 注册时间
- 2017-1-2
- 在线时间
- 27 小时
|
1金钱
Hi,大家好 问几个关于STM32F401新建工程问题?
参考原子的方法,使用HAL库STM32Cube_FW_F4_V1.26.0,配置STM32F401CCU6新工程,总是报错
(1)我把Inc和Src文件夹全考到工程中,编译报错,后缀_template.c是不是要全部删掉,否则编译不过吧,另外_template.c有什么用,干嘛放在库里
(2)_template.c全部删掉后还是报错,信息如下
请问这是什么问题,查了下,是sys.c文件中语句引起的 ”ret=HAL_PWREx_EnableOverDrive(); //开启Over-Driver功能“,请问该怎么处理?
编译报错信息如下:
..\OBJ\STM32F401.axf: Error: L6218E: Undefined symbol HAL_PWREx_EnableOverDrive (referred from sys.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 1 error messages.
"..\OBJ\STM32F401.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:03
(3)另外,目录STM32Cube_FW_F4_V1.26.0\Drivers\CMSIS\Include下的头文件 和 原子教程里的文件不一致,我把它们全考到core文件夹下,没什么坏处吧
|
|