OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 9813|回复: 2

stm32f407的mpu6050程序移植到429i-discovery上报错的问题

[复制链接]

2

主题

3

帖子

0

精华

新手入门

积分
31
金钱
31
注册时间
2015-4-7
在线时间
0 小时
发表于 2015-4-18 18:02:05 | 显示全部楼层 |阅读模式
5金钱
有添加头文件路径,且go to definition能找到定义,stm32f4xx_conf.h中也没有屏蔽fsmc.c,却报错是为什么
错误如下:
Build target 'MPU6050'
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] = 
..\FWLIB\src\stm32f4xx_fsmc.c(228): error:  #20: identifier "FSMC_Bank1E" is undefined
      FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank] = 0x0FFFFFFF;
..\FWLIB\src\stm32f4xx_fsmc.c(277): error:  #20: identifier "FSMC_Bank1" is undefined
      FSMC_Bank1->BTCR[FSMC_Bank] |= BCR_MBKEN_SET;
..\FWLIB\src\stm32f4xx_fsmc.c(282): error:  #20: identifier "FSMC_Bank1" is undefined
      FSMC_Bank1->BTCR[FSMC_Bank] &= BCR_MBKEN_RESET;
..\FWLIB\src\stm32f4xx_fsmc.c(350): error:  #20: identifier "FSMC_Bank2" is undefined
      FSMC_Bank2->CR2 = 0x00000018;
..\FWLIB\src\stm32f4xx_fsmc.c(359): error:  #20: identifier "FSMC_Bank3" is undefined
      FSMC_Bank3->CR3 = 0x00000018;
..\FWLIB\src\stm32f4xx_fsmc.c(418): error:  #20: identifier "FSMC_Bank2" is undefined
      FSMC_Bank2->CR2 = tmppcr;
..\FWLIB\src\stm32f4xx_fsmc.c(425): error:  #20: identifier "FSMC_Bank3" is undefined
      FSMC_Bank3->CR3 = tmppcr;
..\FWLIB\src\stm32f4xx_fsmc.c(477): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->CR2 |= PCR_PBKEN_SET;
..\FWLIB\src\stm32f4xx_fsmc.c(481): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->CR3 |= PCR_PBKEN_SET;
..\FWLIB\src\stm32f4xx_fsmc.c(489): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->CR2 &= PCR_PBKEN_RESET;
..\FWLIB\src\stm32f4xx_fsmc.c(493): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->CR3 &= PCR_PBKEN_RESET;
..\FWLIB\src\stm32f4xx_fsmc.c(517): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->CR2 |= PCR_ECCEN_SET;
..\FWLIB\src\stm32f4xx_fsmc.c(521): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->CR3 |= PCR_ECCEN_SET;
..\FWLIB\src\stm32f4xx_fsmc.c(529): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->PCR2 &= PCR_ECCEN_RESET;
..\FWLIB\src\stm32f4xx_fsmc.c(533): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->PCR3 &= PCR_ECCEN_RESET;
..\FWLIB\src\stm32f4xx_fsmc.c(553): error:  #20: identifier "FSMC_Bank2" is undefined
      eccval = FSMC_Bank2->ECCR2;
..\FWLIB\src\stm32f4xx_fsmc.c(558): error:  #20: identifier "FSMC_Bank3" is undefined
      eccval = FSMC_Bank3->ECCR3;
..\FWLIB\src\stm32f4xx_fsmc.c(613): error:  #20: identifier "FSMC_Bank4" is undefined
    FSMC_Bank4->PCR4 = 0x00000018; 
..\FWLIB\src\stm32f4xx_fsmc.c(649): error:  #20: identifier "FSMC_Bank4" is undefined
    FSMC_Bank4->PCR4 = (uint32_t)FSMC_PCCARDInitStruct->FSMC_Waitfeature |
..\FWLIB\src\stm32f4xx_fsmc.c(712): error:  #20: identifier "FSMC_Bank4" is undefined
      FSMC_Bank4->PCR4 |= PCR_PBKEN_SET;
..\FWLIB\src\stm32f4xx_fsmc.c(717): error:  #20: identifier "FSMC_Bank4" is undefined
      FSMC_Bank4->PCR4 &= PCR_PBKEN_RESET;
..\FWLIB\src\stm32f4xx_fsmc.c(763): error:  #20: identifier "FSMC_Bank2" is undefined
        FSMC_Bank2->SR2 |= FSMC_IT;
..\FWLIB\src\stm32f4xx_fsmc.c(768): error:  #20: identifier "FSMC_Bank3" is undefined
        FSMC_Bank3->SR3 |= FSMC_IT;
..\FWLIB\src\stm32f4xx_fsmc.c(773): error:  #20: identifier "FSMC_Bank4" is undefined
        FSMC_Bank4->SR4 |= FSMC_IT;    
..\FWLIB\src\stm32f4xx_fsmc.c: 0 warnings, 30 errors
"..\OBJ\MPU6050.axf" - 30 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

最佳答案

查看完整内容[请看2#楼]

429应该不是这么脚fsmc了吧?FMC貌似叫
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165371
金钱
165371
注册时间
2010-12-1
在线时间
2110 小时
发表于 2015-4-18 18:02:06 | 显示全部楼层
429应该不是这么脚fsmc了吧?FMC貌似叫
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复

使用道具 举报

2

主题

3

帖子

0

精华

新手入门

积分
31
金钱
31
注册时间
2015-4-7
在线时间
0 小时
 楼主| 发表于 2015-4-21 19:31:09 | 显示全部楼层
回复【2楼】正点原子:
---------------------------------
果然如此
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-2-24 12:32

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表