在建模板的时候stm32f4xx_fsmc.c编译报错

2019-07-20 06:08发布

只要stm32f4xx_fsmc.c这个在 就有以下错误,删除就没有了,想问问什么原因啊,这个fsmc有什么作用啊?
..FWLIBsrcstm32f4xx_fsmc.c(137): error:  #20: identifier "FSMC_Bank1" is undefined
      FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030DB;    
..FWLIBsrcstm32f4xx_fsmc.c(142): error:  #20: identifier "FSMC_Bank1" is undefined
      FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030D2; 
..FWLIBsrcstm32f4xx_fsmc.c(144): error:  #20: identifier "FSMC_Bank1" is undefined
    FSMC_Bank1->BTCR[FSMC_Bank + 1] = 0x0FFFFFFF;
..FWLIBsrcstm32f4xx_fsmc.c(145): error:  #20: identifier "FSMC_Bank1E" is undefined
    FSMC_Bank1E->BWTR[FSMC_Bank] = 0x0FFFFFFF;  
..FWLIBsrcstm32f4xx_fsmc.c(181): error:  #20: identifier "FSMC_Bank1" is undefined
    FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank] = 
..FWLIBsrcstm32f4xx_fsmc.c(218): error:  #20: identifier "FSMC_Bank1E" is undefined
      FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = 
..FWLIBsrcstm32f4xx_fsmc.c(228): error:  #20: identifier "FSMC_Bank1E" is undefined
      FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = 0x0FFFFFFF;
..FWLIBsrcstm32f4xx_fsmc.c(277): error:  #20: identifier "FSMC_Bank1" is undefined
      FSMC_Bank1->BTCR[FSMC_Bank] |= BCR_MBKEN_SET;
..FWLIBsrcstm32f4xx_fsmc.c(282): error:  #20: identifier "FSMC_Bank1" is undefined
      FSMC_Bank1->BTCR[FSMC_Bank] &= BCR_MBKEN_RESET;
..FWLIBsrcstm32f4xx_fsmc.c(350): error:  #20: identifier "FSMC_Bank2" is undefined
      FSMC_Bank2->CR2 = 0x00000018;
..FWLIBsrcstm32f4xx_fsmc.c(359): error:  #20: identifier "FSMC_Bank3" is undefined
      FSMC_Bank3->CR3 = 0x00000018;
..FWLIBsrcstm32f4xx_fsmc.c(418): error:  #20: identifier "FSMC_Bank2" is undefined
      FSMC_Bank2->CR2 = tmppcr;
..FWLIBsrcstm32f4xx_fsmc.c(425): error:  #20: identifier "FSMC_Bank3" is undefined
      FSMC_Bank3->CR3 = tmppcr;
..FWLIBsrcstm32f4xx_fsmc.c(477): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->CR2 |= PCR_PBKEN_SET;
..FWLIBsrcstm32f4xx_fsmc.c(481): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->CR3 |= PCR_PBKEN_SET;
..FWLIBsrcstm32f4xx_fsmc.c(489): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->CR2 &= PCR_PBKEN_RESET;
..FWLIBsrcstm32f4xx_fsmc.c(493): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->CR3 &= PCR_PBKEN_RESET;
..FWLIBsrcstm32f4xx_fsmc.c(517): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->CR2 |= PCR_ECCEN_SET;
..FWLIBsrcstm32f4xx_fsmc.c(521): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->CR3 |= PCR_ECCEN_SET;
..FWLIBsrcstm32f4xx_fsmc.c(529): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->PCR2 &= PCR_ECCEN_RESET;
..FWLIBsrcstm32f4xx_fsmc.c(533): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->PCR3 &= PCR_ECCEN_RESET;
..FWLIBsrcstm32f4xx_fsmc.c(553): error:  #20: identifier "FSMC_Bank2" is undefined
      eccval = FSMC_Bank2->ECCR2;
..FWLIBsrcstm32f4xx_fsmc.c(558): error:  #20: identifier "FSMC_Bank3" is undefined
      eccval = FSMC_Bank3->ECCR3;
..FWLIBsrcstm32f4xx_fsmc.c(613): error:  #20: identifier "FSMC_Bank4" is undefined
    FSMC_Bank4->PCR4 = 0x00000018; 
..FWLIBsrcstm32f4xx_fsmc.c(649): error:  #20: identifier "FSMC_Bank4" is undefined
    FSMC_Bank4->PCR4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_Waitfeature |
..FWLIBsrcstm32f4xx_fsmc.c(712): error:  #20: identifier "FSMC_Bank4" is undefined
      FSMC_Bank4->PCR4 |= PCR_PBKEN_SET;
..FWLIBsrcstm32f4xx_fsmc.c(717): error:  #20: identifier "FSMC_Bank4" is undefined
      FSMC_Bank4->PCR4 &= PCR_PBKEN_RESET;
..FWLIBsrcstm32f4xx_fsmc.c(763): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->SR2 |= FSMC_IT;
..FWLIBsrcstm32f4xx_fsmc.c(768): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->SR3 |= FSMC_IT;
..FWLIBsrcstm32f4xx_fsmc.c(773): error:  #20: identifier "FSMC_Bank4" is undefined
        FSMC_Bank4->SR4 |= FSMC_IT;    
..FWLIBsrcstm32f4xx_fsmc.c: 0 warnings, 30 errors
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
16条回答
腹黑兔儿
1楼-- · 2019-07-20 08:48
正点原子
2楼-- · 2019-07-20 08:56
 精彩回答 2  元偷偷看……
腹黑兔儿
3楼-- · 2019-07-20 10:05
那原子哥  为啥删了就没事了
正点原子
4楼-- · 2019-07-20 13:26
回复【4楼】腹黑兔儿:
---------------------------------
删什么?
godsend
5楼-- · 2019-07-20 15:11
 精彩回答 2  元偷偷看……
腹黑兔儿
6楼-- · 2019-07-20 20:19
回复【5楼】正点原子:
---------------------------------
删了fsmc就正确了

一周热门 更多>