网上找了很久,并没有什么好的解答方法,于是我就在重新看了一遍光盘自带的教程,就发现了问题所在
*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'E:\KEIL5\install files\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling stm32f4xx_flash_ramfunc.c...
..\FWLIB\src\stm32f4xx_flash_ramfunc.c(110): error: #20: identifier "PWR_CR_FISSR" is undefined
LEAR_BIT(PWR->CR, PWR_CR_FISSR);
..\FWLIB\src\stm32f4xx_flash_ramfunc.c(115): error: #20: identifier "PWR_CR_FISSR" is undefined
ET_BIT(PWR->CR, PWR_CR_FISSR);
..\FWLIB\src\stm32f4xx_flash_ramfunc.c(133): error: #20: identifier "PWR_CR_FMSSR" is undefined
ET_BIT(PWR->CR, PWR_CR_FMSSR);
..\FWLIB\src\stm32f4xx_flash_ramfunc.c(138): error: #20: identifier "PWR_CR_FMSSR" is undefined
LEAR_BIT(PWR->CR, PWR_CR_FMSSR);
..\FWLIB\src\stm32f4xx_flash_ramfunc.c: 0 warnings, 4 errors
compiling usart.c...
..\SYSTEM\usart\usart.c(47): error: #260-D: explicit type is missing ("int" assumed)
_sys_exit(int x)
..\SYSTEM\usart\usart.c: 0 warnings, 1 error
compiling stm32f4xx_rcc.c...
..\FWLIB\src\stm32f4xx_rcc.c(2106): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined
ET_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
..\FWLIB\src\stm32f4xx_rcc.c(2110): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined
LEAR_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
..\FWLIB\src\stm32f4xx_rcc.c: 0 warnings, 2 errors
".\Objects\mo.axf" - 7 Error(s), 0 Warning(s).
在复制头文件时漏掉了两个文件,就是下面这两个
在重新将两个文件复制进来,就没问题了 |