野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 11568|回复: 2

STM32F429挑战者核心板STM32CubeMX引脚配置

[复制链接]
发表于 2018-10-26 11:14:44 | 显示全部楼层 |阅读模式
各位大哥:
谁有STM32F429挑战者核心板现成的STM32CubeMX引脚配置和相关的设置,发我一份,感激不尽。原因是因为我用野火自带的程序出现这个错误
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(137): error:  #20: identifier "FSMC_Bank1" is undefined
      FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030DB;   
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(142): error:  #20: identifier "FSMC_Bank1" is undefined
      FSMC_Bank1->BTCR[FSMC_Bank] = 0x000030D2;
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(144): error:  #20: identifier "FSMC_Bank1" is undefined
    FSMC_Bank1->BTCR[FSMC_Bank + 1] = 0x0FFFFFFF;
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(145): error:  #20: identifier "FSMC_Bank1E" is undefined
    FSMC_Bank1E->BWTR[FSMC_Bank] = 0x0FFFFFFF;  
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(183): error:  #20: identifier "FSMC_Bank1" is undefined
    tmpbcr = FSMC_Bank1->BTCR[FSMC_NORSRAMInitStruct->FSMC_Bank];
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(187): error:  #20: identifier "FSMC_BCR1_MBKEN" is undefined
    tmpbcr &= ((uint32_t)~(FSMC_BCR1_MBKEN    | FSMC_BCR1_MUXEN    | FSMC_BCR1_MTYP     | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(187): error:  #20: identifier "FSMC_BCR1_MUXEN" is undefined
    tmpbcr &= ((uint32_t)~(FSMC_BCR1_MBKEN    | FSMC_BCR1_MUXEN    | FSMC_BCR1_MTYP     | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(187): error:  #20: identifier "FSMC_BCR1_MTYP" is undefined
    tmpbcr &= ((uint32_t)~(FSMC_BCR1_MBKEN    | FSMC_BCR1_MUXEN    | FSMC_BCR1_MTYP     | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(188): error:  #20: identifier "FSMC_BCR1_MWID" is undefined
                           FSMC_BCR1_MWID      | FSMC_BCR1_FACCEN   | FSMC_BCR1_BURSTEN  | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(188): error:  #20: identifier "FSMC_BCR1_FACCEN" is undefined
                           FSMC_BCR1_MWID      | FSMC_BCR1_FACCEN   | FSMC_BCR1_BURSTEN  | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(188): error:  #20: identifier "FSMC_BCR1_BURSTEN" is undefined
                           FSMC_BCR1_MWID      | FSMC_BCR1_FACCEN   | FSMC_BCR1_BURSTEN  | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(189): error:  #20: identifier "FSMC_BCR1_WAITPOL" is undefined
                           FSMC_BCR1_WAITPOL   | FSMC_BCR1_WRAPMOD  | FSMC_BCR1_WAITCFG  | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(189): error:  #20: identifier "FSMC_BCR1_WRAPMOD" is undefined
                           FSMC_BCR1_WAITPOL   | FSMC_BCR1_WRAPMOD  | FSMC_BCR1_WAITCFG  | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(189): error:  #20: identifier "FSMC_BCR1_WAITCFG" is undefined
                           FSMC_BCR1_WAITPOL   | FSMC_BCR1_WRAPMOD  | FSMC_BCR1_WAITCFG  | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(190): error:  #20: identifier "FSMC_BCR1_WREN" is undefined
                           FSMC_BCR1_WREN      | FSMC_BCR1_WAITEN   | FSMC_BCR1_EXTMOD   | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(190): error:  #20: identifier "FSMC_BCR1_WAITEN" is undefined
                           FSMC_BCR1_WREN      | FSMC_BCR1_WAITEN   | FSMC_BCR1_EXTMOD   | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(190): error:  #20: identifier "FSMC_BCR1_EXTMOD" is undefined
                           FSMC_BCR1_WREN      | FSMC_BCR1_WAITEN   | FSMC_BCR1_EXTMOD   | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(191): error:  #20: identifier "FSMC_BCR1_ASYNCWAIT" is undefined
                           FSMC_BCR1_ASYNCWAIT | FSMC_BCR1_CBURSTRW));
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(191): error:  #20: identifier "FSMC_BCR1_CBURSTRW" is undefined
                           FSMC_BCR1_ASYNCWAIT | FSMC_BCR1_CBURSTRW));
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(218): error:  #20: identifier "FSMC_BTR1_ADDSET" is undefined
    tmpbtr &= ((uint32_t)~(FSMC_BTR1_ADDSET | FSMC_BTR1_ADDHLD | FSMC_BTR1_DATAST | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(218): error:  #20: identifier "FSMC_BTR1_ADDHLD" is undefined
    tmpbtr &= ((uint32_t)~(FSMC_BTR1_ADDSET | FSMC_BTR1_ADDHLD | FSMC_BTR1_DATAST | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(218): error:  #20: identifier "FSMC_BTR1_DATAST" is undefined
    tmpbtr &= ((uint32_t)~(FSMC_BTR1_ADDSET | FSMC_BTR1_ADDHLD | FSMC_BTR1_DATAST | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(219): error:  #20: identifier "FSMC_BTR1_BUSTURN" is undefined
                         FSMC_BTR1_BUSTURN | FSMC_BTR1_CLKDIV | FSMC_BTR1_DATLAT | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(219): error:  #20: identifier "FSMC_BTR1_CLKDIV" is undefined
                         FSMC_BTR1_BUSTURN | FSMC_BTR1_CLKDIV | FSMC_BTR1_DATLAT | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(219): error:  #20: identifier "FSMC_BTR1_DATLAT" is undefined
                         FSMC_BTR1_BUSTURN | FSMC_BTR1_CLKDIV | FSMC_BTR1_DATLAT | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(220): error:  #20: identifier "FSMC_BTR1_ACCMOD" is undefined
                         FSMC_BTR1_ACCMOD));
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(244): error:  #20: identifier "FSMC_Bank1E" is undefined
      tmpbwr = FSMC_Bank1E->BWTR[FSMC_NORSRAMInitStruct->FSMC_Bank];
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(247): error:  #20: identifier "FSMC_BWTR1_ADDSET" is undefined
      tmpbwr &= ((uint32_t)~(FSMC_BWTR1_ADDSET | FSMC_BWTR1_ADDHLD | FSMC_BWTR1_DATAST | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(247): error:  #20: identifier "FSMC_BWTR1_ADDHLD" is undefined
      tmpbwr &= ((uint32_t)~(FSMC_BWTR1_ADDSET | FSMC_BWTR1_ADDHLD | FSMC_BWTR1_DATAST | \
Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c(247): error:  #20: identifier "FSMC_BWTR1_DATAST" is undefined
      tmpbwr &= ((uint32_t)~(FSMC_BWTR1_ADDSET | FSMC_BWTR1_ADDHLD | FSMC_BWTR1_DATAST | \


看了一下fsmc.h头文件,错误中的变量确实没申明,而且官网下的也没有,所以我想自己用STM32CubeMX配置,生成看一下,还有没有这个错误。

回复

使用道具 举报

 楼主| 发表于 2018-10-26 11:18:19 | 显示全部楼层
错误是在编译的时候出现,错误位置stm32f4xx_fsmc.c,为什么是官网自己的封装库也会出现这种问题,还是F429自己需要用到这些变量,却没有定义
回复 支持 反对

使用道具 举报

发表于 2018-10-31 08:58:21 | 显示全部楼层
你用keil试试
回复 支持 反对

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-11-23 21:09 , Processed in 0.028377 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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