OpenEdv-开源电子网

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

请各位大神帮我看看,建立工程模板,编译时报错该怎么解决

[复制链接]

1

主题

4

帖子

0

精华

新手上路

积分
42
金钱
42
注册时间
2020-10-18
在线时间
12 小时
发表于 2020-10-18 12:26:06 | 显示全部楼层 |阅读模式
这是具体的错误:
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Template'
compiling system_stm32f4xx.c...
..\CORE\core_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                         */
system_stm32f4xx.c: 0 warnings, 1 error
compiling main.c...
..\CORE\core_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                         */
main.c: 0 warnings, 1 error
compiling misc.c...
..\CORE\core_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                         */
..\FWLIB\src\misc.c: 0 warnings, 1 error
compiling stm32f4xx_adc.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_adc.c: 0 warnings, 1 error
compiling stm32f4xx_cryp.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_cryp.c: 0 warnings, 1 error
compiling stm32f4xx_crc.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_crc.c: 0 warnings, 1 error
compiling stm32f4xx_can.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_can.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_aes.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_cryp_aes.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_des.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_cryp_des.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_tdes.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_cryp_tdes.c: 0 warnings, 1 error
compiling stm32f4xx_dac.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_dac.c: 0 warnings, 1 error
compiling stm32f4xx_dcmi.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_dcmi.c: 0 warnings, 1 error
compiling stm32f4xx_dbgmcu.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_dbgmcu.c: 0 warnings, 1 error
compiling stm32f4xx_dma.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_dma.c: 0 warnings, 1 error
compiling stm32f4xx_dma2d.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_dma2d.c: 0 warnings, 1 error
compiling stm32f4xx_exti.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_exti.c: 0 warnings, 1 error
compiling stm32f4xx_flash.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_flash.c: 0 warnings, 1 error
compiling stm32f4xx_flash_ramfunc.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_flash_ramfunc.c: 0 warnings, 1 error
compiling stm32f4xx_fsmc.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_fsmc.c: 0 warnings, 1 error
compiling stm32f4xx_hash.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_hash.c: 0 warnings, 1 error
compiling stm32f4xx_gpio.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hash_md5.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_hash_md5.c: 0 warnings, 1 error
compiling stm32f4xx_hash_sha1.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_hash_sha1.c: 0 warnings, 1 error
compiling stm32f4xx_i2c.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_i2c.c: 0 warnings, 1 error
compiling stm32f4xx_iwdg.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_iwdg.c: 0 warnings, 1 error
compiling stm32f4xx_ltdc.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_ltdc.c: 0 warnings, 1 error
compiling stm32f4xx_pwr.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_pwr.c: 0 warnings, 1 error
compiling stm32f4xx_rcc.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_rcc.c: 0 warnings, 1 error
compiling stm32f4xx_rng.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_rng.c: 0 warnings, 1 error
compiling stm32f4xx_rtc.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_rtc.c: 0 warnings, 1 error
compiling stm32f4xx_sai.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_sai.c: 0 warnings, 1 error
compiling stm32f4xx_spi.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_spi.c: 0 warnings, 1 error
compiling stm32f4xx_sdio.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_sdio.c: 0 warnings, 1 error
compiling stm32f4xx_syscfg.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_syscfg.c: 0 warnings, 1 error
compiling stm32f4xx_tim.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_tim.c: 0 warnings, 1 error
compiling stm32f4xx_usart.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_usart.c: 0 warnings, 1 error
compiling stm32f4xx_wwdg.c...
..\CORE\core_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                         */
..\FWLIB\src\stm32f4xx_wwdg.c: 0 warnings, 1 error
"..\OBJ\Template.axf" - 37 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02

屏幕截图 .png
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

1

主题

4

帖子

0

精华

新手上路

积分
42
金钱
42
注册时间
2020-10-18
在线时间
12 小时
 楼主| 发表于 2020-10-18 12:27:00 | 显示全部楼层
回复 支持 反对

使用道具 举报

1

主题

4

帖子

0

精华

新手上路

积分
42
金钱
42
注册时间
2020-10-18
在线时间
12 小时
 楼主| 发表于 2020-10-18 12:27:36 | 显示全部楼层
希望大神救救我。。。
回复 支持 反对

使用道具 举报

4

主题

18

帖子

0

精华

新手上路

积分
46
金钱
46
注册时间
2017-9-4
在线时间
31 小时
发表于 2020-10-19 10:10:41 | 显示全部楼层
zs007 发表于 2020-10-18 12:27
希望大神救救我。。。

提示里说明了呀,没有这个core_cmInstr.h这个头文件
回复 支持 反对

使用道具 举报

22

主题

2251

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
4477
金钱
4477
注册时间
2013-4-22
在线时间
336 小时
发表于 2020-10-19 19:14:30 | 显示全部楼层
文件包含不正确
回复 支持 反对

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-4-29 22:14

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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