2019-07-20 05:34发布
qiuzhicheng 发表于 2018-9-5 16:56 错误提示是什么
qiuzhicheng 发表于 2018-9-5 17:05添加了stm32f4xx_fmc.c这个文件没
最多设置5个标签!
我查过这些错误,都是在stm32f4xx.h头文件里定义命名的
..FWLIBsrcstm32f4xx_fmc.c(144): error: #20: identifier "FMC_Bank1" is undefined
FMC_Bank1->BTCR[FMC_Bank] = 0x000030DB;
..FWLIBsrcstm32f4xx_fmc.c(149): error: #20: identifier "FMC_Bank1" is undefined
FMC_Bank1->BTCR[FMC_Bank] = 0x000030D2;
..FWLIBsrcstm32f4xx_fmc.c(151): error: #20: identifier "FMC_Bank1" is undefined
FMC_Bank1->BTCR[FMC_Bank + 1] = 0x0FFFFFFF;
..FWLIBsrcstm32f4xx_fmc.c(152): error: #20: identifier "FMC_Bank1E" is undefined
FMC_Bank1E->BWTR[FMC_Bank] = 0x0FFFFFFF;
..FWLIBsrcstm32f4xx_fmc.c(191): error: #20: identifier "FMC_Bank1" is undefined
FMC_Bank1->BTCR[FMC_NORSRAMInitStruct->FMC_Bank] =
..FWLIBsrcstm32f4xx_fmc.c(242): error: #20: identifier "FMC_Bank1E" is undefined
FMC_Bank1E->BWTR[FMC_NORSRAMInitStruct->FMC_Bank] =
..FWLIBsrcstm32f4xx_fmc.c(252): error: #20: identifier "FMC_Bank1E" is undefined
FMC_Bank1E->BWTR[FMC_NORSRAMInitStruct->FMC_Bank] = 0x0FFFFFFF;
..FWLIBsrcstm32f4xx_fmc.c(304): error: #20: identifier "FMC_Bank1" is undefined
FMC_Bank1->BTCR[FMC_Bank] |= BCR_MBKEN_SET;
..FWLIBsrcstm32f4xx_fmc.c(309): error: #20: identifier "FMC_Bank1" is undefined
FMC_Bank1->BTCR[FMC_Bank] &= BCR_MBKEN_RESET;
..FWLIBsrcstm32f4xx_fmc.c(377): error: #20: identifier "FMC_Bank2" is undefined
FMC_Bank2->PCR2 = 0x00000018;
..FWLIBsrcstm32f4xx_fmc.c(386): error: #20: identifier "FMC_Bank3" is undefined
FMC_Bank3->PCR3 = 0x00000018;
..FWLIBsrcstm32f4xx_fmc.c(445): error: #20: identifier "FMC_Bank2" is undefined
FMC_Bank2->PCR2 = tmppcr;
..FWLIBsrcstm32f4xx_fmc.c(452): error: #20: identifier "FMC_Bank3" is undefined
FMC_Bank3->PCR3 = tmppcr;
..FWLIBsrcstm32f4xx_fmc.c(504): error: #20: identifier "FMC_Bank2" is undefined
FMC_Bank2->PCR2 |= PCR_PBKEN_SET;
..FWLIBsrcstm32f4xx_fmc.c(508): error: #20: identifier "FMC_Bank3" is undefined
FMC_Bank3->PCR3 |= PCR_PBKEN_SET;
..FWLIBsrcstm32f4xx_fmc.c(516): error: #20: identifier "FMC_Bank2" is undefined
FMC_Bank2->PCR2 &= PCR_PBKEN_RESET;
..FWLIBsrcstm32f4xx_fmc.c(520): error: #20: identifier "FMC_Bank3" is undefined
FMC_Bank3->PCR3 &= PCR_PBKEN_RESET;
..FWLIBsrcstm32f4xx_fmc.c(544): error: #20: identifier "FMC_Bank2" is undefined
FMC_Bank2->PCR2 |= PCR_ECCEN_SET;
..FWLIBsrcstm32f4xx_fmc.c(548): error: #20: identifier "FMC_Bank3" is undefined
FMC_Bank3->PCR3 |= PCR_ECCEN_SET;
..FWLIBsrcstm32f4xx_fmc.c(556): error: #20: identifier "FMC_Bank2" is undefined
FMC_Bank2->PCR2 &= PCR_ECCEN_RESET;
..FWLIBsrcstm32f4xx_fmc.c(560): error: #20: identifier "FMC_Bank3" is undefined
FMC_Bank3->PCR3 &= PCR_ECCEN_RESET;
..FWLIBsrcstm32f4xx_fmc.c(580): error: #20: identifier "FMC_Bank2" is undefined
eccval = FMC_Bank2->ECCR2;
..FWLIBsrcstm32f4xx_fmc.c(585): error: #20: identifier "FMC_Bank3" is undefined
eccval = FMC_Bank3->ECCR3;
..FWLIBsrcstm32f4xx_fmc.c(640): error: #20: identifier "FMC_Bank4" is undefined
FMC_Bank4->PCR4 = 0x00000018;
..FWLIBsrcstm32f4xx_fmc.c(676): error: #20: identifier "FMC_Bank4" is undefined
FMC_Bank4->PCR4 = (uint32_t)FMC_PCCARDInitStruct->FMC_Waitfeature |
..FWLIBsrcstm32f4xx_fmc.c(739): error: #20: identifier "FMC_Bank4" is undefined
FMC_Bank4->PCR4 |= PCR_PBKEN_SET;
..FWLIBsrcstm32f4xx_fmc.c(744): error: #20: identifier "FMC_Bank4" is undefined
FMC_Bank4->PCR4 &= PCR_PBKEN_RESET;
..FWLIBsrcstm32f4xx_fmc.c(809): error: #20: identifier "FMC_Bank5_6" is undefined
FMC_Bank5_6->SDCR[FMC_Bank] = 0x000002D0;
..FWLIBsrcstm32f4xx_fmc.c(868): error: #20: identifier "FMC_Bank5_6" is undefined
FMC_Bank5_6->SDCR[FMC_SDRAMInitStruct->FMC_Bank] = tmpr1;
..FWLIBsrcstm32f4xx_fmc.c(876): error: #20: identifier "FMC_Bank5_6" is undefined
FMC_Bank5_6->SDCR[FMC_Bank1_SDRAM] = tmpr3;
..FWLIBsrcstm32f4xx_fmc.c: 0 warnings, 30 errors
添加了,都是照搬的工程文件。而且stm32f4xx_fmc.h里面也有stm32f4xx.h.其他.c里都只有一个stm32f4xx.h,就main.c里有两个,莫名其妙啊
一周热门 更多>