Discuz! Board

标题: 新手--請問關於開發環境設定-The Project references devices, flies or libraries. [打印本页]

作者: kaochin    时间: 2016-1-17 11:19
标题: 新手--請問關於開發環境設定-The Project references devices, flies or libraries.
本帖最后由 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 燒錄 完全沒有問題


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



作者: admin    时间: 2016-1-17 17:17
第一,你需要安装SDK,第二,你应该用我们提供的MDK4.7的开发环境,我们给的工程是MDK4的。第三,外设程序你需要删掉协议栈,使用nrfgo删除。外设程序是不带协议栈的
作者: admin    时间: 2016-1-17 17:18
其实视频里都有这些说明
作者: kaochin    时间: 2016-1-18 00:13
感謝!!
我再試一試




欢迎光临 Discuz! Board (http://www.qfv8.com/) Powered by Discuz! X3