本帖最后由 damiaa 于 2021-5-24 09:43 编辑
开始EKV-NINA-B400编程
这标题有点大,搞得有点不好意思。不过加了开始二字,也就将就吧。高手看过就罢,不要当真。
玩开发板,编程是少不了的. EKV-NINA-B4XX手册比较多。挑选看吧。
首先我们要看一下EVK-NINA-B4 Evaluation kit for NINA-B4 modules User guide 对板子有个整体的了解.
然后看看上手册中关于编程的提示:告诉我们这个板要用SDK。 不是B41板,B41板可以用其他单片机通过at命令控制。
3.2.2.1 Nordic Semiconductor SDK
To use the EVK-NINA-B40x together with Nordic Semiconductor SDK it is necessary to:
• Create your own board file
• Adapt the examples in the Nordic Semiconductor SDK to use this board file
For more information about performing these tasks, see the Software section of the NINA-B4
system integration manual [4]. See also the u-blox short range open CPU github repository [8].
下面告诉我们可以看手册的地方. 就是下面的4
Related documents
[1] Arduino – https://www.arduino.cc
[2] Raspberry Pi - https://www.raspberrypi.org/
[3] NINA-B4 data sheet, UBX-19049405
[4] NINA-B4 series system integration manual, UBX-19052230
[5] u-blox Short range AT commands manual, UBX-14044127
[6] SEGGER J-Link software - https://www.segger.com/jlink-software.html
[7] u-connectXpress user guide, UBX-16024251
[8] https://github.com/u-blox/u-blox-sho-OpenCPU
我们读一下NINA-B4 series system integration manual UBX-19052230吧. 手册的连接地址有点问题(新点的电脑在升级,旧的有些问题。这个是电脑问题).好在eeowlrd的网站上有了.
手册告诉我们,板子支持蓝牙5.1 thread zigbee.这次手上的板子支持open cpu (B40) 不是u-connectXpress (B41. 后面咱们就只关注open cpu.
open cpu软件体系结构图如下: 说起open cpu 以本人理解那就是个SDK,咋们调用。还以为是什么新玩意呢。
NINA-B4 series system integration manual UBX-19052230 告诉我们如何下载安装必要的软件
Open CPU 软件
接下来就只要关注ordic nRF SDK的下载,安装.开发环境的安装.
The SDK 支持 for the SEGGER Embedded Studio,
Keil microcontroller development kit,
IAR embedded workbench IDE
GCC compiler that supports many platforms and languages.
NINA-B4 series system integration manual 3.11.中告诉了我们SDK下载地址。软件工具地址等。
下载安装nRF Conncet v3.61
如是准备:
1,keil5.3X 新点的。
2,下载安装nRF Conncet v3.61 :nrfconnectsetup361ia32 这里会安装jink驱动。 会自动配置到keil。
3,也可以安装nRF-Command-Line-Tools_10_12_1_Installer_64 不过我这里没成功安装 估计要自己安装VS2017 暂时放下。这里也会安装jink驱动。 会自动配置到keil。
4,下载解压nRF5SDK nRF5SDK1702d674dde。
5,打开nRF5SDK 一个文件,发现要安装nrf的pack。还自动安装失败。网速问题?。但迅雷可以。
如是拷贝那个提示的网址到迅雷下下来手动安装。
但不知怎么搞的,开始提示8.38.后来又不行,提示8.35。 只好又下个8.35就好了
后面就打开一个nRF5SDK点灯程序。正好PC10100的LED1点灯和这个板的RGB红灯一样
不尽人意,见谅。 周末快乐。