NINA-B3 series - System integration manual
UBX-17056748 - R13
Software
Page 22 of 72
C1-Public
Figure 6 Opening blinky sample for the NINA-B3 EVK
Building for NINA-B3 EVK using the Zephyr command-line environment
To build and flash the Zephyr
“
blinky
”
example for the NINA-B3 EVK, move to the zephyr folder in your
installation on the shell prompt and enter:
~/zephyrproject/zephyr$
west build -b ubx_evkninab3_nrf52840 samples/basic/blinky
~/zephyrproject/zephyr$
west flash
The example board configuration also contains several documentation files that can be included in
your local documentation. The files are in reStructuredText (RST) format. To generate HTML or PDF
output from these files, refer to the Zephyr Project documentation
2.2.3
Saving Bluetooth MAC address and other production data
Open CPU (B30x) variants of the NINA-B3 module come with a pre-programmed Bluetooth MAC
address. If needed, this address can be used by the customer application.
The MAC address is programmed into the CUSTOMER[0] and CUSTOMER[1] User Information
Configuration Register (UICR) of the nRF52840 chip. The address can be read and written from the
registers using Segger J-Link utilities or the nrfjprog utility from Nordic.
$ nrfjprog.exe --memrd 0x10001080 --n 8
The memory area can be saved and, if the flash is erased, written back later using the
savebin
and
loadbin
utilities in the Segger J-link tool suite.
The UICR memory area also holds the serial number and other information that can be saved for later
configuration purposes. Use the following commands to save the whole memory area:
$ nrfjprog.exe --readuicr uicr.hex
...
$ nrfjprog.exe --program uicr.hex