野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 33|回复: 2

新建工程固件库版本报错27找不到stdint.h文件

[复制链接]
发表于 5 天前 | 显示全部楼层 |阅读模式
官网下的Arm Compiler 5.06__ARM编译版本

编译后报错27处都是找不到stdint.h这个头文件,keil5里面找了下这个头文件的位置,在自己下载的v5.06版编辑器目录下,这个地方怎么处理,大佬们支个招。
具体报错如下:
Build started: Project: gjk_text
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\Keil_v5\ARM\Legacy Arm Compiler 5, 4.1, and RVCT (ACOMP5)\Bin'
Build target 'Target 1'
compiling stm32f10x_cec.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c: 0 warnings, 1 error
compiling stm32f10x_adc.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c: 0 warnings, 1 error
compiling stm32f10x_can.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c: 0 warnings, 1 error
compiling stm32f10x_flash.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c: 0 warnings, 1 error
compiling stm32f10x_dma.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c: 0 warnings, 1 error
compiling stm32f10x_dbgmcu.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c: 0 warnings, 1 error
compiling misc.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\misc.c: 0 warnings, 1 error
compiling stm32f10x_dac.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c: 0 warnings, 1 error
compiling stm32f10x_crc.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c: 0 warnings, 1 error
compiling stm32f10x_bkp.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c: 0 warnings, 1 error
compiling core_cm3.c...
..\Libraries\CMSIS\core_cm3.c(24): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>
..\Libraries\CMSIS\core_cm3.c: 0 warnings, 1 error
compiling system_stm32f10x.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\CMSIS\system_stm32f10x.c: 0 warnings, 1 error
compiling stm32f10x_exti.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c: 0 warnings, 1 error
compiling stm32f10x_fsmc.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 1 error
compiling stm32f10x_i2c.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c: 0 warnings, 1 error
compiling stm32f10x_iwdg.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c: 0 warnings, 1 error
compiling stm32f10x_pwr.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 1 error
compiling stm32f10x_rtc.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c: 0 warnings, 1 error
compiling stm32f10x_sdio.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c: 0 warnings, 1 error
compiling stm32f10x_spi.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_spi.c: 0 warnings, 1 error
compiling stm32f10x_tim.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c: 0 warnings, 1 error
compiling stm32f10x_usart.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c: 0 warnings, 1 error
compiling stm32f10x_wwdg.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c: 0 warnings, 1 error
compiling main.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\User\main.c: 0 warnings, 1 error
compiling stm32f10x_it.c...
..\Libraries\CMSIS\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
  #include <stdint.h>                           /* Include standard types */
..\User\stm32f10x_it.c: 0 warnings, 1 error
".\Objects\gjk_text.axf" - 27 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

回复

使用道具 举报

 楼主| 发表于 5 天前 | 显示全部楼层
按着入门篇新建工程固件库版本视频操作的,用例程也是一样的报错
回复 支持 反对

使用道具 举报

 楼主| 发表于 5 天前 | 显示全部楼层
已解决,重新下了个5.36版本的keil
回复 支持 反对

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2025-1-22 08:04 , Processed in 0.116023 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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