在建模板的时候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 20:55
 精彩回答 2  元偷偷看……
Illidan
2楼-- · 2019-07-21 00:54
 精彩回答 2  元偷偷看……
正点原子
3楼-- · 2019-07-21 05:25
Illidan 发表于 2016-7-17 10:03
是fmc。。。。

说明名字变了吧。
DCL
4楼-- · 2019-07-21 10:59
正点原子 发表于 2015-11-26 23:29
回复【4楼】腹黑兔儿:
---------------------------------
删什么?

原子哥,能提供一个STM32F427的工程吗?卖完一套探索者开发板玩的差不多,想学学STM32F427,结果问题一堆,求指点,谢谢
奮闘ing
5楼-- · 2019-07-21 16:33
 精彩回答 2  元偷偷看……
正点原子
6楼-- · 2019-07-21 21:58
 精彩回答 2  元偷偷看……

一周热门 更多>