Integration Manual

NINA-B4 series - System integration manual
UBX-19052230 - R09 Open CPU software Page 36 of 60
C1-Public
6. Modify the “BOARD_” definition to define the BOARD_CUSTOM.
Figure 14: Modifying the board definition in SEGGER Embedded Studio
3.1.2 Bluetooth device (MAC) address and other production data
The open CPU (B40x) variants of the NINA-B4 modules are provided with a unique, public Bluetooth
device (MAC) address programmed. If required, this address can be used by the customer application.
The MAC address is programmed in the CUSTOMER[0] and CUSTOMER[1]registers in the UICR of the
nRF52833 chip. The address can be read and written for example, 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 serial number and other information that can be valuable to save. If
you want to save the whole memory area you can use
$ nrfjprog.exe --readuicr uicr.hex
...
$ nrfjprog.exe --program uicr.hex
If the bootloader supplied by u-blox is not used for the open CPU development the UICR register
cannot be saved way that is described here. This is because the UICR registers that hold the
bootloader start address confuse the boot process. In these instances, the MAC address has to
be written separately.
For additional information and instructions on saving and using the public Bluetooth device address,
see also reference [18].