项目场景:

开发环境:keil5.14 开发环境:keil5.14 板子:LPC1850

问题描述:

第一次导入工程,报错,找不到core_cm3.h文件:
报错信息

src\target\LPC18xx.h(165): error:  #5: cannot open source input file "core_cm3.h": No such file or directory
  #include <core_cm3.h>                       /*!< Cortex-M3 processor and core peripherals */
src\target\lpc18xx_gpio.c: 0 warnings, 1 error
compiling lpc18xx_scu.c...
src\target\LPC18xx.h(165): error:  #5: cannot open source input file "core_cm3.h": No such file or directory
  #include <core_cm3.h>                       /*!< Cortex-M3 processor and core peripherals */
src\target\lpc18xx_scu.c: 0 warnings, 1 error
compiling led.c...
.\src\target\LPC18xx.h(165): error:  #5: cannot open source input file "core_cm3.h": No such file or directory

解决方案:

按照以下步骤,添加你的keil中的include路径就行了
在这里插入图片描述
在这里插入图片描述

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐