OpenEdv-开源电子网

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

mdk5安装后,无法如视频中打开程序源码,找不到程序

[复制链接]

3

主题

8

帖子

0

精华

新手上路

积分
21
金钱
21
注册时间
2021-7-11
在线时间
5 小时
发表于 2021-9-29 23:30:08 | 显示全部楼层 |阅读模式
4金钱
在安装了mdk5后,照正点原子视频步骤打开第一个实验,跑马灯实验,并不能显示程序源码。并且在左方目录中显示三角形加感叹号。

运行程序显示
*** Using Compiler 'V5.05 update 1 (build 106)', folder: 'D:\mdk5\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling stm32f10x_it.c...
"no source": Error:  #5: cannot open source input file "stm32f10x_it.c": No such file or directory
stm32f10x_it.c: 0 warnings, 1 error
compiling main.c...
"no source": Error:  #5: cannot open source input file "main.c": No such file or directory
main.c: 0 warnings, 1 error
compiling system_stm32f10x.c...
"no source": Error:  #5: cannot open source input file "system_stm32f10x.c": No such file or directory
system_stm32f10x.c: 0 warnings, 1 error
compiling delay.c...
"no source": Error:  #5: cannot open source input file "..\SYSTEM\delay\delay.c": No such file or directory
..\SYSTEM\delay\delay.c: 0 warnings, 1 error
compiling usart.c...
"no source": Error:  #5: cannot open source input file "..\SYSTEM\usart\usart.c": No such file or directory
..\SYSTEM\usart\usart.c: 0 warnings, 1 error
compiling led.c...
"no source": Error:  #5: cannot open source input file "..\HARDWARE\LED\led.c": No such file or directory
..\HARDWARE\LED\led.c: 0 warnings, 1 error
compiling sys.c...
"no source": Error:  #5: cannot open source input file "..\SYSTEM\sys\sys.c": No such file or directory
..\SYSTEM\sys\sys.c: 0 warnings, 1 error
compiling core_cm3.c...
"no source": Error:  #5: cannot open source input file "..\CORE\core_cm3.c": No such file or directory
..\CORE\core_cm3.c: 0 warnings, 1 error
assembling startup_stm32f10x_hd.s...
startup_stm32f10x_hd.s: error: A1023E: File "..\CORE\startup_stm32f10x_hd.s" could not be opened: No such file or directory
compiling stm32f10x_gpio.c...
"no source": Error:  #5: cannot open source input file "..\STM32F10x_FWLib\src\stm32f10x_gpio.c": No such file or directory
..\STM32F10x_FWLib\src\stm32f10x_gpio.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
"no source": Error:  #5: cannot open source input file "..\STM32F10x_FWLib\src\stm32f10x_rcc.c": No such file or directory
..\STM32F10x_FWLib\src\stm32f10x_rcc.c: 0 warnings, 1 error
compiling stm32f10x_usart.c...
"no source": Error:  #5: cannot open source input file "..\STM32F10x_FWLib\src\stm32f10x_usart.c": No such file or directory
..\STM32F10x_FWLib\src\stm32f10x_usart.c: 0 warnings, 1 error
compiling misc.c...
"no source": Error:  #5: cannot open source input file "..\STM32F10x_FWLib\src\misc.c": No such file or directory
..\STM32F10x_FWLib\src\misc.c: 0 warnings, 1 error
"..\OBJ\LED.axf" - 13 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

3

主题

8

帖子

0

精华

新手上路

积分
21
金钱
21
注册时间
2021-7-11
在线时间
5 小时
 楼主| 发表于 2021-9-29 23:44:12 | 显示全部楼层
file:///C:/Users/86147/Desktop/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210929231356.png


file:///C:/Users/86147/Desktop/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210929231601.png
回复

使用道具 举报

6

主题

890

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1481
金钱
1481
注册时间
2020-8-19
在线时间
336 小时
发表于 2021-9-30 09:52:45 | 显示全部楼层
1、解压代码到桌面
2、去掉只读属性
回复

使用道具 举报

3

主题

8

帖子

0

精华

新手上路

积分
21
金钱
21
注册时间
2021-7-11
在线时间
5 小时
 楼主| 发表于 2021-9-30 12:35:55 | 显示全部楼层
bin133 发表于 2021-9-30 09:52
1、解压代码到桌面
2、去掉只读属性

好像还是不太行。。。
file:///C:/Users/86147/Desktop/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210930123409.png
file:///C:/Users/86147/Desktop/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210930123330.png
file:///C:/Users/86147/Desktop/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20210930122910.png


回复

使用道具 举报

0

主题

45

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
343
金钱
343
注册时间
2019-4-6
在线时间
97 小时
发表于 2021-9-30 14:11:47 | 显示全部楼层
可能是因为你保存的工程文件路径太深了,把那个工程移到桌面试试
回复

使用道具 举报

32

主题

187

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1123
金钱
1123
注册时间
2021-3-21
在线时间
172 小时
发表于 2021-9-30 14:21:03 | 显示全部楼层
有图片吗
回复

使用道具 举报

7

主题

480

帖子

0

精华

高级会员

Rank: 4

积分
783
金钱
783
注册时间
2021-4-15
在线时间
305 小时
发表于 2021-10-2 17:35:23 | 显示全部楼层
是不是忘记切编译器 换成5的了 看看
日常敲键--头秃一片
回复

使用道具 举报

0

主题

668

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1926
金钱
1926
注册时间
2021-8-13
在线时间
262 小时
发表于 2021-10-6 15:06:41 | 显示全部楼层
楼主解决了吗
回复

使用道具 举报

13

主题

643

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
2432
金钱
2432
注册时间
2019-12-28
在线时间
527 小时
发表于 2021-10-8 12:18:24 | 显示全部楼层
在魔术棒里面看下编译器的版本,原子的是用5的编译器写的,可能编译器版本不对
回复

使用道具 举报

3

主题

177

帖子

0

精华

高级会员

Rank: 4

积分
774
金钱
774
注册时间
2019-11-27
在线时间
87 小时
发表于 2021-10-8 13:46:26 | 显示全部楼层
pack安装了吗
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-6-24 01:39

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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