|
本帖最后由 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 燒錄 完全沒有問題
第一次來論壇
找不到如何上傳圖片,可否請哪位大大教教我
感謝感謝 !!
|
|