![u-blox NINA-B4 Series Скачать руководство пользователя страница 31](http://html.mh-extra.com/html/u-blox/nina-b4-series/nina-b4-series_system-integration-manual_829529031.webp)
NINA-B4 series - System integration manual
UBX-19052230 - R06
Open CPU software
Page 31 of 45
C1-Public
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 boot loader 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 boot
loader 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 reference [18].
3.1.3
Definition of Low Frequency clock source
NINA-B4x modules are delivered without an external low frequency crystal oscillator (LFXO). To
configure the software correctly for your configuration, follow the steps in the RC oscillator
configuration application note [21].
EVK NINA-B40x is delivered with an external low frequency crystal oscillator mounted.
3.2
Flashing open CPU software
Modules with open CPU configuration can be flashed using various utility programs over the SWD or
UART interface.
3.2.1
Flashing over the SWD interface
To flash NINA-B4 modules over the Serial Wire Debug (SWD) interface an external debugger must be
connected to the SWD interface of the module. Third-party tools like J-Link Commander, J-Flash, nRF
Command Line Utilities or nRF Connect Programmer, are used to flash the module.
☞
SEGGER J-Link BASE external debugger works with NINA-B40 modules.
☞
EVK-NINA-B40 incorporates an onboard debugger, which means that it can be flashed without an
external debugger.
⚠
Always make a note of your Bluetooth device address before starting the flashing procedure.
As flashing the software can erase the original u-blox Bluetooth device address, this address
might need to be reinstated. The Bluetooth device address can be re-written manually or with the
use of a script. See section 3.1.2 for more information.