F407,按照书上写的步骤一点点创建出来的工程,报错.

2019-07-20 06:40发布

本帖最后由 Asien 于 2018-8-13 17:08 编辑

*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:Keil_v5ARMARMCCBin'
Rebuild target 'Asiens'
assembling startup_stm32f40_41xxx.s...
compiling main.c...
USERmain.c(1): error:  #77-D: this declaration has no storage class or type specifier
  手册中讲解到步骤15的时候的main.c源码如下:
USERmain.c(1): error:  #65: expected a ";"
  手册中讲解到步骤15的时候的main.c源码如下:
USERmain.c(1): error:  #7: unrecognized token
  手册中讲解到步骤15的时候的main.c源码如下:
USERstm32f4xx.h(464): warning:  #12-D: parsing restarts here after previous syntax error
  } IRQn_Type;
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
USERmain.c: 1 warning, 4 errors
compiling stm32f4xx_it.c...
compiling system_stm32f4xx.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
USERsystem_stm32f4xx.c: 0 warnings, 1 error
compiling stm32f4xx_adc.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_adc.c: 0 warnings, 1 error
compiling misc.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcmisc.c: 0 warnings, 1 error
compiling stm32f4xx_crc.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_crc.c: 0 warnings, 1 error
compiling stm32f4xx_can.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_can.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_aes.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_cryp_aes.c: 0 warnings, 1 error
compiling stm32f4xx_cryp.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_cryp.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_des.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_cryp_des.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_tdes.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_cryp_tdes.c: 0 warnings, 1 error
compiling stm32f4xx_dbgmcu.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_dbgmcu.c: 0 warnings, 1 error
compiling stm32f4xx_dac.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_dac.c: 0 warnings, 1 error
compiling stm32f4xx_dcmi.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_dcmi.c: 0 warnings, 1 error
compiling stm32f4xx_dma.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_dma.c: 0 warnings, 1 error
compiling stm32f4xx_exti.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_exti.c: 0 warnings, 1 error
compiling stm32f4xx_dma2d.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_dma2d.c: 0 warnings, 1 error
compiling stm32f4xx_flash.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_flash.c: 0 warnings, 1 error
compiling stm32f4xx_flash_ramfunc.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_flash_ramfunc.c: 0 warnings, 1 error
compiling stm32f4xx_gpio.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hash.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_hash.c: 0 warnings, 1 error
compiling stm32f4xx_hash_md5.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_hash_md5.c: 0 warnings, 1 error
compiling stm32f4xx_hash_sha1.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_hash_sha1.c: 0 warnings, 1 error
compiling stm32f4xx_i2c.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_i2c.c: 0 warnings, 1 error
compiling stm32f4xx_iwdg.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_iwdg.c: 0 warnings, 1 error
compiling stm32f4xx_ltdc.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_ltdc.c: 0 warnings, 1 error
compiling stm32f4xx_pwr.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_pwr.c: 0 warnings, 1 error
compiling stm32f4xx_rcc.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_rcc.c: 0 warnings, 1 error
compiling stm32f4xx_rtc.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_rtc.c: 0 warnings, 1 error
compiling stm32f4xx_rng.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_rng.c: 0 warnings, 1 error
compiling stm32f4xx_sdio.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_sdio.c: 0 warnings, 1 error
compiling stm32f4xx_sai.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_sai.c: 0 warnings, 1 error
compiling stm32f4xx_syscfg.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_syscfg.c: 0 warnings, 1 error
compiling stm32f4xx_spi.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_spi.c: 0 warnings, 1 error
compiling stm32f4xx_tim.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_tim.c: 0 warnings, 1 error
compiling stm32f4xx_usart.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_usart.c: 0 warnings, 1 error
compiling stm32f4xx_fsmc.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_fsmc.c: 0 warnings, 1 error
compiling stm32f4xx_wwdg.c...
.COREcore_cm4.h(169): error:  #5: cannot open source input file "core_cmInstr.h": No such file or directory
  #include <core_cmInstr.h>                /* Core Instruction Access                         */
FWLIBsrcstm32f4xx_wwdg.c: 0 warnings, 1 error
assembling stm32f4xx_fsmc.s...
.objectsstm32f4xx_fsmc.s(1): warning: A1313W: Missing END directive at end of file
".ObjectsAsiens.axf" - 40 Error(s), 2 Warning(s).
Target not created.
Build Time Elapsed:  00:00:09

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。