OpenEdv-开源电子网

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

新人求助!!基于固件库建立工程问题

[复制链接]

1

主题

2

帖子

0

精华

新手入门

积分
5
金钱
5
注册时间
2019-3-10
在线时间
0 小时
发表于 2019-3-10 01:06:43 | 显示全部楼层 |阅读模式
1金钱
Rebuild target 'template'
compiling main.c...
compiling stm32f10x_it.c...
compiling system_stm32f10x.c...
assembling startup_stm32f10x_hd.s...
compiling core_cm3.c...
compiling misc.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_bkp.c...
compiling stm32f10x_can.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_crc.c...
compiling stm32f10x_dac.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_dma.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_flash.c...
..\stm32103rc\src\stm32f10x_flash.c(323): error:  #20: identifier "FLASH_KEY1" is undefined
    FLASH->KEYR = FLASH_KEY1;
..\stm32103rc\src\stm32f10x_flash.c(324): error:  #20: identifier "FLASH_KEY2" is undefined
    FLASH->KEYR = FLASH_KEY2;
..\stm32103rc\src\stm32f10x_flash.c(344): error:  #20: identifier "FLASH_KEY1" is undefined
    FLASH->KEYR = FLASH_KEY1;
..\stm32103rc\src\stm32f10x_flash.c(345): error:  #20: identifier "FLASH_KEY2" is undefined
    FLASH->KEYR = FLASH_KEY2;
..\stm32103rc\src\stm32f10x_flash.c(619): error:  #20: identifier "RDP_Key" is undefined
    uint16_t rdptmp = RDP_Key;
..\stm32103rc\src\stm32f10x_flash.c(634): error:  #20: identifier "FLASH_KEY1" is undefined
      FLASH->OPTKEYR = FLASH_KEY1;
..\stm32103rc\src\stm32f10x_flash.c(635): error:  #20: identifier "FLASH_KEY2" is undefined
      FLASH->OPTKEYR = FLASH_KEY2;
..\stm32103rc\src\stm32f10x_flash.c(940): error:  #20: identifier "FLASH_KEY1" is undefined
      FLASH->OPTKEYR = FLASH_KEY1;
..\stm32103rc\src\stm32f10x_flash.c(941): error:  #20: identifier "FLASH_KEY2" is undefined
      FLASH->OPTKEYR = FLASH_KEY2;
..\stm32103rc\src\stm32f10x_flash.c(997): error:  #20: identifier "FLASH_KEY1" is undefined
      FLASH->OPTKEYR = FLASH_KEY1;
..\stm32103rc\src\stm32f10x_flash.c(998): error:  #20: identifier "FLASH_KEY2" is undefined
      FLASH->OPTKEYR = FLASH_KEY2;
..\stm32103rc\src\stm32f10x_flash.c(1059): error:  #20: identifier "FLASH_KEY1" is undefined
      FLASH->OPTKEYR = FLASH_KEY1;
..\stm32103rc\src\stm32f10x_flash.c(1060): error:  #20: identifier "FLASH_KEY2" is undefined
      FLASH->OPTKEYR = FLASH_KEY2;
..\stm32103rc\src\stm32f10x_flash.c(1077): error:  #20: identifier "RDP_Key" is undefined
          OB->RDP = RDP_Key;  
..\stm32103rc\src\stm32f10x_flash.c(1129): error:  #20: identifier "FLASH_KEY1" is undefined
    FLASH->OPTKEYR = FLASH_KEY1;
..\stm32103rc\src\stm32f10x_flash.c(1130): error:  #20: identifier "FLASH_KEY2" is undefined
    FLASH->OPTKEYR = FLASH_KEY2;
..\stm32103rc\src\stm32f10x_flash.c: 0 warnings, 16 errors
compiling stm32f10x_fsmc.c...
compiling stm32f10x_gpio.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_sdio.c...
compiling stm32f10x_spi.c...
compiling stm32f10x_tim.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_wwdg.c...
"..\obj\template.axf" - 16 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:12

最佳答案

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

已解决,这个flash.c文件是在腾讯课堂那里下载的是mini版的文件,按理来说应该是和战舰版一样的,我把战舰版的也下载了,然后用战舰版文件里的flash.c把mini的reload。然后就ok了’
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

1

主题

2

帖子

0

精华

新手入门

积分
5
金钱
5
注册时间
2019-3-10
在线时间
0 小时
 楼主| 发表于 2019-3-10 01:06:44 | 显示全部楼层
已解决,这个flash.c文件是在腾讯课堂那里下载的是mini版的文件,按理来说应该是和战舰版一样的,我把战舰版的也下载了,然后用战舰版文件里的flash.c把mini的reload。然后就ok了’
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-6-9 22:24

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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