设为首页收藏本站

Discuz! Board

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 7194|回复: 3
打印 上一主题 下一主题

新手--請問關於開發環境設定-The Project references devices, flies or libraries.

[复制链接]

2

主题

5

帖子

33

积分

新手上路

Rank: 1

积分
33
跳转到指定楼层
楼主
kaochin 发表于 2016-1-17 11:19:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 kaochin 于 2016-1-17 13:02 编辑

大家好
我已經裝好 Keil(5.15,在 D:\),NRF51 SDK,nRFgostudio
但是出現一些問題
1.
在打開例程 "點亮LED" 出現

The Project references devices, flies or libraries that are not installed.
Download and Install :
Third Party Device Support for 'Nordic : nRF51822_xxAA'
(Device not included in Legacy Device Database)


接下來

Error: Device not found
Device: 'nRF51822_xxAA'
Vendor: 'Nordic'

Please update your device selection

(直覺是 SDK 出了問題,或者是設定有問題)

2.在 main.c 中出現
fatal error in include chain (nrf51.h): 'core_cm0.h' fule not found
以下是 compile 出現的錯誤
----------------------------------------------------------------------------------------------------------------
*** Using Compiler 'V5.05 update 2 (build 169)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling system_nrf51.c...
..\Include\nrf51.h(101): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
  #include <core_cm0.h>                               /*!< Cortex-M0 processor and core peripherals                              */
..\Source\templates\system_nrf51.c: 0 warnings, 1 error
compiling main.c...
..\Include\nrf51.h(101): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
  #include <core_cm0.h>                               /*!< Cortex-M0 processor and core peripherals                              */
main.c: 0 warnings, 1 error
compiling nrf_delay.c...
..\Include\nrf51.h(101): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
  #include <core_cm0.h>                               /*!< Cortex-M0 processor and core peripherals                              */
..\Source\nrf_delay\nrf_delay.c: 0 warnings, 1 error
compiling led.c...
..\Include\nrf51.h(101): error:  #5: cannot open source input file "core_cm0.h": No such file or directory
  #include <core_cm0.h>                               /*!< Cortex-M0 processor and core peripherals                              */
..\drive\led.c: 0 warnings, 1 error
".\led.axf" - 4 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01
-------------------------------------------------------------------------------------------------------------------------------------------

3.在flash download 時出現錯誤
*** error 56: cannot open file
Error: Flash Download failed  -  Could not load file 'F:\NRF52\Example_qfv8\exam1_light_LED\user\led.axf'

謝謝大家的協助,感謝!

另,我試過 Nordic 原廠的 code
雖然我不知道這個code是要做甚麼,
但 compile 與  flash 燒錄 完全沒有問題


第一次來論壇
找不到如何上傳圖片,可否請哪位大大教教我
感謝感謝 !!


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

243

主题

1706

帖子

6151

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6151
沙发
admin 发表于 2016-1-17 17:17:52 | 只看该作者
第一,你需要安装SDK,第二,你应该用我们提供的MDK4.7的开发环境,我们给的工程是MDK4的。第三,外设程序你需要删掉协议栈,使用nrfgo删除。外设程序是不带协议栈的
回复 支持 反对

使用道具 举报

243

主题

1706

帖子

6151

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6151
板凳
admin 发表于 2016-1-17 17:18:07 | 只看该作者
其实视频里都有这些说明
回复 支持 反对

使用道具 举报

2

主题

5

帖子

33

积分

新手上路

Rank: 1

积分
33
地板
 楼主| kaochin 发表于 2016-1-18 00:13:45 | 只看该作者
感謝!!
我再試一試
回复 支持 反对

使用道具 举报

Archiver|手机版|小黑屋|Comsenz Inc.   

GMT+8, 2024-5-1 22:09 , Processed in 0.186323 second(s), 28 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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