新手入门
- 积分
- 5
- 金钱
- 5
- 注册时间
- 2019-3-10
- 在线时间
- 0 小时
|
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了’
|