捷波
获得 494 次赞
帮助过489人
编译信息如下,该如何修改才能编译通过。*** Using Compiler 'V5.06 update 6 (build 750)' folder: 'C:\Keil\V5\ARM\ARMCC\Bin'Build target 'STM32F401 Flash'compiling Retarget.c...compiling Serial.c...compiling blinky.c...compiling Buttons_NUCLEO_F401RE.c...compiling LED_NUCLEO_F401RE.c...assembling startup_stm32f401xe.s...compiling system_stm32f4xx.c...RTE\Device\STM32F401RETx\system_stm32f4xx.c(141): error: #147: declaration is incompatible with "const uint8_t AHBPrescTable[16]" (declared at line 76 of "C:\Keil\V5\ARM\PACK\Keil\STM32F4xx_DFP\2.13.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h") __IO const uint8_t AHBPrescTable[16] = {0 0 0 0 0 0 0 0 1 2 3 4 6 7 8 9};RTE\Device\STM32F401RETx\system_stm32f4xx.c: 0 warnings 1 error".\Flash\blinky.axf" - 1 Error(s) 0 Warning(s).Target not created.Build Time Elapsed: 00:00:44相应代码如下:system_stm32f4xx.c141 __IO const uint8_t AHBPrescTable[16] = {0 0 0 0 0 0 0 0 1 2 3 4 6 7 8 9};system_stm32f4xx.h76 extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */77 extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */