硬汉嵌入式论坛

 找回密码
 立即注册
查看: 10558|回复: 2
收起左侧

[有问必答] 求教关于开发板调试的一个问题

[复制链接]

2

主题

1

回帖

2

积分

新手上路

积分
2
发表于 2012-6-5 20:49:03 | 显示全部楼层 |阅读模式
最近刚收到开发板,开始测试的时候发现例程里面的点亮LED工程编译的时候会出现如下错误: 请问这个原因是什么,library文件应该已经在硬盘了,不应该是路径问题吧?谢谢回答.
编译结果如下:
Build target 'Flash'
compiling main.c...
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h:   #include "stdint.h"                           /* Include standard types */
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h:                                                                             ^
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h: ..\..\User\main.c: 0 warnings, 1 error
assembling startup_stm32f10x_hd.s...
compiling stm32f10x_gpio.c...
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h:   #include "stdint.h"                           /* Include standard types */
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h:                                                                             ^
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h: ..\..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 1 error
compiling core_cm3.c...
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c(24): error:  #5: cannot open source input file "stdint.h": No such file or directory
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c:   #include <stdint.h>
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c:                      ^
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c: ..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c: 0 warnings, 1 error
compiling system_stm32f10x.c...
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h:   #include "stdint.h"                           /* Include standard types */
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h:                                                                             ^
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h: ..\..\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h(90): error:  #5: cannot open source input file "stdint.h": No such file or directory..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h:   #include "stdint.h"                           /* Include standard types */
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h:                                                                             ^
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h: ..\..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 1 error
Target not created
   
回复

使用道具 举报

747

主题

1049

回帖

3295

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3295
发表于 2012-6-6 09:04:00 | 显示全部楼层
你说的是不是“Ex000-点亮LED入门例程(V2.0_2011-10-16).rar"

我编译很正常啊。

#5: cannot open source input file "stdint.h": No such file or directory

这是文件是编译器自带的文件,不在用户源代码和ST库中。
你检查下你安装的开发环境。
回复

使用道具 举报

0

主题

1

回帖

0

积分

新手上路

积分
0
发表于 2012-10-27 21:39:47 | 显示全部楼层
请问楼主您的问题解决了吗?我调试程序遇到跟您一样的问题,如果您已经解决,麻烦您跟我讲解一下~
回复

使用道具 举报

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

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-24 04:22 , Processed in 0.244894 second(s), 30 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

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