蓝牙 Nordic nrf51822 评估板 入门

蓝牙 Nordic nrf51822 评估板 入门

参考:
青云蓝牙光盘V4.1\7.青云开发板原理图\青云蓝牙nrf51822开发板.pdf
青云蓝牙光盘V4.1\6.青云系列教程青风出品\1:前期预备篇:如何开发nrf51822\硬件篇:QY-NRF51822硬件详解.pdf
青云蓝牙光盘V4.1\6.青云系列教程青风出品\1:前期预备篇:如何开发nrf51822\软件篇:QY-NRF51822开发环境设置.pdf
分两个步骤,将协议栈 和app烧写到板子中

1 硬件连接:

用短路帽连接 P13 的 2 连到P12的1
用短路帽连接 P13 的 1 连到P12的2

用miniusb 线连接 J1
其他的地方不用管

2 运行简单的例子:

青云蓝牙光盘V4.1\5.青云测试代码\第三部分:BLE蓝牙实验\BLE实验1:蓝牙工程样例\Board\nrf6310\s110\ble_app_template\arm\ble_app_template.uvproj

蓝牙 Nordic nrf51822 评估板 入门

若你keil工程扩展名为.uvproj,那么这个工程是MDK4版本的工程,打开这个工程的时候可能会出现
Third Party Device Support for ‘Nordic Semiconductor:nRF51822_xxAA’
Device not included in Legacy Device Database
这样的提示,点击确定,打开工程之后,点击“Project->Select Device for Target …”,然后在弹出的对话框中选择nRF51822_xxAA

然后关闭工程,keil就会提示工程需要转换为MDK5版本的,确定转换,然后在原来的工程目录下面就会有以.uvprojx为扩展名的工程文件,下次打开这个工程文件就不会报错了。

工程被转换之后,之前的一些工程设置可能会被改变,影响最大的就是地址的设置,这里必须得修改下,否则程序将会无法运行,比如再我的工程里面,IROM1的起始地址必须设置为0x14000,IRAM1的起始地址必须设置为0x20002000程序才能正常运行。

http://www.nordicsemi.com/chi/nordic/Products/nRF51822/nRF5x-MDK-Keil4/48785
http://www.nordicsemi.com/eng/nordic/Products/nRF51822/nRF5-SDK-v12-zip/54280

清风的v4.1 的例程是 用的keil v4,例子都很老了。

下面是一个别人的问题,其中有指导怎么用最新的SDK和keil5

问题:

i am using keil mdk5 and i want to use nrf51822.please tell me which software i need for this and which sdk i have to download for this.i am currently troubling with doing this.also tell what is the concept of softdevice.

回答:

Hi,

If you already have Keil MDK5 installed, you only need the SDK and the nRF5x Command line tools to get started. More details about our recommended tools can be found on this page.

The latest SDK supporting the nRF51 series is SDK v12.2.0, which can be downloaded from here. Details on how to get started with development, can be found in the Getting Started documentation of the SDK. A softdevice is a software stack that implement the specifications of Bluetooth Low Energy or ANT. If you want to run one of the BLE or ANT examples in the SDK, you need to flash the supported softdevice first.

You can find some great tutorials that will help you get started in the tutorials section here at DevZone.

Good luck!

Best regards,

Jørgen

http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.2.0%2Fgetting_started_softdevice.html&cp=4_0_1_1_3