用官方1.8版本的库函数建立工程报错如下,哪位高人给指点下!FMC_Bank1在stm32f4xx_fmc.c中有定义的。 ..\Library\src\stm32f4xx_fmc.c(144): error: #20: identifier "FMC_Bank1" is undefined FMC_Bank1->BTCR[FMC_Bank] = 0x000030DB; ..\Library\src\stm32f4xx_fmc.c(149): error: #20: identifier "FMC_Bank1" is undefined FMC_Bank1->BTCR[FMC_Bank] = 0x000030D2; ..\Library\src\stm32f4xx_fmc.c(151): error: #20: identifier "FMC_Bank1" is undefined FMC_Bank1->BTCR[FMC_Bank + 1] = 0x0FFFFFFF; ..\Library\src\stm32f4xx_fmc.c(152): error: #20: identifier "FMC_Bank1E" is undefined FMC_Bank1E->BWTR[FMC_Bank] = 0x0FFFFFFF; ..\Library\src\stm32f4xx_fmc.c(191): error: #20: identifier "FMC_Bank1" is undefined tmpbcr = FMC_Bank1->BTCR[FMC_NORSRAMInitStruct->FMC_Bank]; ..\Library\src\stm32f4xx_fmc.c(195): error: #20: identifier "FMC_BCR1_MBKEN" is undefined tmpbcr &= ((uint32_t)~(FMC_BCR1_MBKEN | FMC_BCR1_MUXEN | FMC_BCR1_MTYP | \ ..\Library\src\stm32f4xx_fmc.c(195): error: #20: identifier "FMC_BCR1_MUXEN" is undefined tmpbcr &= ((uint32_t)~(FMC_BCR1_MBKEN | FMC_BCR1_MUXEN | FMC_BCR1_MTYP | \ ..\Library\src\stm32f4xx_fmc.c(195): error: #20: identifier "FMC_BCR1_MTYP" is undefined tmpbcr &= ((uint32_t)~(FMC_BCR1_MBKEN | FMC_BCR1_MUXEN | FMC_BCR1_MTYP | \ ..\Library\src\stm32f4xx_fmc.c(196): error: #20: identifier "FMC_BCR1_MWID" is undefined FMC_BCR1_MWID | FMC_BCR1_FACCEN | FMC_BCR1_BURSTEN | \ ..\Library\src\stm32f4xx_fmc.c(196): error: #20: identifier "FMC_BCR1_FACCEN" is undefined FMC_BCR1_MWID | FMC_BCR1_FACCEN | FMC_BCR1_BURSTEN | \ ..\Library\src\stm32f4xx_fmc.c(196): error: #20: identifier "FMC_BCR1_BURSTEN" is undefined FMC_BCR1_MWID | FMC_BCR1_FACCEN | FMC_BCR1_BURSTEN | \ ..\Library\src\stm32f4xx_fmc.c(197): error: #20: identifier "FMC_BCR1_WAITPOL" is undefined FMC_BCR1_WAITPOL | FMC_BCR1_WRAPMOD | FMC_BCR1_WAITCFG | \ ..\Library\src\stm32f4xx_fmc.c(197): error: #20: identifier "FMC_BCR1_WRAPMOD" is undefined FMC_BCR1_WAITPOL | FMC_BCR1_WRAPMOD | FMC_BCR1_WAITCFG | \ ..\Library\src\stm32f4xx_fmc.c(197): error: #20: identifier "FMC_BCR1_WAITCFG" is undefined FMC_BCR1_WAITPOL | FMC_BCR1_WRAPMOD | FMC_BCR1_WAITCFG | \ ..\Library\src\stm32f4xx_fmc.c(198): error: #20: identifier "FMC_BCR1_WREN" is undefined FMC_BCR1_WREN | FMC_BCR1_WAITEN | FMC_BCR1_EXTMOD | \ ..\Library\src\stm32f4xx_fmc.c(198): error: #20: identifier "FMC_BCR1_WAITEN" is undefined FMC_BCR1_WREN | FMC_BCR1_WAITEN | FMC_BCR1_EXTMOD | \ ..\Library\src\stm32f4xx_fmc.c(198): error: #20: identifier "FMC_BCR1_EXTMOD" is undefined FMC_BCR1_WREN | FMC_BCR1_WAITEN | FMC_BCR1_EXTMOD | \ ..\Library\src\stm32f4xx_fmc.c(199): error: #20: identifier "FMC_BCR1_ASYNCWAIT" is undefined FMC_BCR1_ASYNCWAIT| FMC_BCR1_CBURSTRW | FMC_BCR1_CCLKEN)); ..\Library\src\stm32f4xx_fmc.c(199): error: #20: identifier "FMC_BCR1_CBURSTRW" is undefined FMC_BCR1_ASYNCWAIT| FMC_BCR1_CBURSTRW | FMC_BCR1_CCLKEN)); ..\Library\src\stm32f4xx_fmc.c(199): error: #20: identifier "FMC_BCR1_CCLKEN" is undefined FMC_BCR1_ASYNCWAIT| FMC_BCR1_CBURSTRW | FMC_BCR1_CCLKEN)); ..\Library\src\stm32f4xx_fmc.c(253): error: #20: identifier "FMC_Bank1E" is undefined tmpbwr = FMC_Bank1E->BWTR[FMC_NORSRAMInitStruct->FMC_Bank]; ..\Library\src\stm32f4xx_fmc.c(256): error: #20: identifier "FMC_BWTR1_ADDSET" is undefined tmpbwr &= ((uint32_t)~(FMC_BWTR1_ADDSET | FMC_BWTR1_ADDHLD | FMC_BWTR1_DATAST | \ ..\Library\src\stm32f4xx_fmc.c(256): error: #20: identifier "FMC_BWTR1_ADDHLD" is undefined tmpbwr &= ((uint32_t)~(FMC_BWTR1_ADDSET | FMC_BWTR1_ADDHLD | FMC_BWTR1_DATAST | \ ..\Library\src\stm32f4xx_fmc.c(256): error: #20: identifier "FMC_BWTR1_DATAST" is undefined tmpbwr &= ((uint32_t)~(FMC_BWTR1_ADDSET | FMC_BWTR1_ADDHLD | FMC_BWTR1_DATAST | \ ..\Library\src\stm32f4xx_fmc.c(257): error: #20: identifier "FMC_BWTR1_BUSTURN" is undefined FMC_BWTR1_BUSTURN | FMC_BWTR1_ACCMOD)); ..\Library\src\stm32f4xx_fmc.c(257): error: #20: identifier "FMC_BWTR1_ACCMOD" is undefined FMC_BWTR1_BUSTURN | FMC_BWTR1_ACCMOD)); ..\Library\src\stm32f4xx_fmc.c(269): error: #20: identifier "FMC_Bank1E" is undefined FMC_Bank1E->BWTR[FMC_NORSRAMInitStruct->FMC_Bank] = 0x0FFFFFFF; ..\Library\src\stm32f4xx_fmc.c(321): error: #20: identifier "FMC_Bank1" is undefined FMC_Bank1->BTCR[FMC_Bank] |= BCR_MBKEN_SET; ..\Library\src\stm32f4xx_fmc.c(326): error: #20: identifier "FMC_Bank1" is undefined FMC_Bank1->BTCR[FMC_Bank] &= BCR_MBKEN_RESET; ..\Library\src\stm32f4xx_fmc.c(394): error: #20: identifier "FMC_Bank2" is undefined FMC_Bank2->PCR2 = 0x00000018; ..\Library\src\stm32f4xx_fmc.c: 0 warnings, 30 errors |
STM32F407 定时器触发DMA 求助大神
【MCU实战经验】基于STM32F407的音频播放器设计
盘古UE-STM32F407工控板原理图
【STM32F429心得\疑问】+STM32F4之FSMC和FMC
STM32F429读取IO口传输的数据速率
STM32F407ZGT6 手摸芯片背部重启
STM32F4 SPI 动作时,软件片选信号被拉高,IO口程序逻辑失控
STM32F401RE NUCLEO求助,串口一直不能进中断
读取STM32F407内部温度传感器值错误
STM32F429多路内部ADC独立采集的办法
自己在原子老师的《STM32F4开发指南-库函数版本》中找到了了解释---“stm32f4xx_fmc.c比较特殊。这个文件是STM32F42和STM32F43系列才用到,所以我们这里要把它删掉(注意是stm32f4xx_fmc.c要删掉,不要删掉stm32f4xx_fsmc.c”。删除多余的文件就ok了。
评分
查看全部评分