OpenEdv-开源电子网

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

打开一个写好的keil程序,出现以下问题,并且运行后出错了。

[复制链接]

2

主题

9

帖子

0

精华

新手上路

积分
42
金钱
42
注册时间
2017-4-30
在线时间
9 小时
发表于 2017-11-1 21:22:53 | 显示全部楼层 |阅读模式
3金钱

刚开始的时候

刚开始的时候

Rebuild target 'Target 1'
assembling STM32F10x.s...
compiling test.c...
test.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
test.c: 0 warnings, 1 error
compiling delay.c...
..\SYSTEM\delay\delay.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..\SYSTEM\delay\delay.c: 0 warnings, 1 error
compiling sys.c...
..\SYSTEM\sys\sys.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>            
..\SYSTEM\sys\sys.c: 0 warnings, 1 error
compiling usart.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..\SYSTEM\usart\usart.c: 0 warnings, 1 error
compiling led.c...
..\HARDWARE\LED\led.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>      
..\HARDWARE\LED\led.c: 0 warnings, 1 error
compiling key.c...
..\HARDWARE\KEY\key.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..\HARDWARE\KEY\key.c: 0 warnings, 1 error
compiling exti.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..\HARDWARE\EXTI\exti.c: 0 warnings, 1 error
compiling wdg.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..\HARDWARE\WDG\wdg.c: 0 warnings, 1 error
compiling timer.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include <stm32f10x_lib.h>
..\HARDWARE\TIMER\timer.c: 0 warnings, 1 error
".\TEST.axf" - 9 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:03

这几个错误全是 cannot open source input file "stm32f10x_lib.h": No such file or directory

点完“取消后”

点完“取消后”
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165536
金钱
165536
注册时间
2010-12-1
在线时间
2117 小时
发表于 2017-11-2 01:05:44 | 显示全部楼层
你这是老版本的工程了。直接migrate 试试,如果还出问题,就慢慢修改了。
回复

使用道具 举报

64

主题

249

帖子

1

精华

金牌会员

Rank: 6Rank: 6

积分
1073
金钱
1073
注册时间
2017-6-10
在线时间
279 小时
发表于 2017-11-2 09:18:26 | 显示全部楼层
按照那个提示框操作,就是点击第2个按钮,按提示下载一个软件,安装就可以了。就是下载时很慢,要有耐心。
回复

使用道具 举报

1

主题

430

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1461
金钱
1461
注册时间
2011-12-1
在线时间
110 小时
发表于 2017-11-2 09:34:37 | 显示全部楼层
你这个是keil5版本的打开老版本的,需要在你的第一个对话框中点第一个,就会创建KEIL5的工程,然后重新编译,一般是没有问题的,前提是你的pack安装好。
专业从事软硬件设计,毕业设计,C51/AVR/MSP430/STM32等单片机软硬件制作与定制。有需求的可以联系我。QQ:3436737049淘宝店铺:龙隽电子科技
回复

使用道具 举报

2

主题

9

帖子

0

精华

新手上路

积分
42
金钱
42
注册时间
2017-4-30
在线时间
9 小时
 楼主| 发表于 2017-11-2 11:00:57 | 显示全部楼层
正点原子 发表于 2017-11-2 01:05
你这是老版本的工程了。直接migrate 试试,如果还出问题,就慢慢修改了。

好的,谢谢
回复

使用道具 举报

2

主题

9

帖子

0

精华

新手上路

积分
42
金钱
42
注册时间
2017-4-30
在线时间
9 小时
 楼主| 发表于 2017-11-2 11:01:37 | 显示全部楼层
rjx007 发表于 2017-11-2 09:18
按照那个提示框操作,就是点击第2个按钮,按提示下载一个软件,安装就可以了。就是下载时很慢,要有耐心。

好的,我试试
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-6-8 21:29

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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