新手上路
- 积分
- 48
- 金钱
- 48
- 注册时间
- 2020-4-28
- 在线时间
- 12 小时
|

楼主 |
发表于 2021-7-3 15:56:27
|
显示全部楼层
我把启动文件改成了startup_stm32f401xx.s,宏定义也改成了STM32F401xxx,USE_STDPERIPH_DRIVER,编译还是提示错误,错误信息如下:compiling stm32f4xx_fsmc.c...
..\FWLIB\src\stm32f4xx_fsmc.c(137): error: #20: identifier "FSMC_Bank1" is undefined
FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030DB;
..\FWLIB\src\stm32f4xx_fsmc.c(142): error: #20: identifier "FSMC_Bank1" is undefined
FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030D2;
..\FWLIB\src\stm32f4xx_fsmc.c(144): error: #20: identifier "FSMC_Bank1" is undefined
FSMC_Bank1->BTCR[FSMC_Bank + 1] = 0x0FFFFFFF;
..\FWLIB\src\stm32f4xx_fsmc.c(145): error: #20: identifier "FSMC_Bank1E" is undefined
FSMC_Bank1E->BWTR[FSMC_Bank] = 0x0FFFFFFF;
..\FWLIB\src\stm32f4xx_fsmc.c(181): error: #20: identifier "FSMC_Bank1" is undefined
FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank] =
..\FWLIB\src\stm32f4xx_fsmc.c(218): error: #20: identifier "FSMC_Bank1E" is undefined
FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = |
|