
NINA-B4 series - System integration manual
UBX-19052230 - R09
Open CPU software
Page 37 of 61
C1-Public
3.5
Flashing open CPU software
Modules with an open CPU configuration can be flashed using various utility programs over the SWD
or UART interface.
3.5.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 also
Bluetooth device (MAC) address and other production data
3.5.2
Flashing over the UART interface
To flash NINA-B40 modules over the UART interface, the module must be pre-loaded with a
bootloader based on DFU bootloader examples included in the Nordic Semiconductor nRF5 SDK. The
bootloader is accessed using Nordic Semiconductor flash tools like
The memory layout of the module as delivered from factory is described in
. The shaded parts
settings are flashed in the factory.
Usage
S140 SoftDevice version 7.0.x
Bootloader settings
0x0007F000 -0x80000
MBR parameter storage
0x7E000-0x7F000
Bootloader
0x72000-0x7E000
Application
0x27000
–
0x72000
Softdevice
0x1000
–
0x27000
MBR
0x0
–
0x1000
Table 17 NINA-B40x flash layout that includes S140 SoftDevice
☞
Note that memory sizes can vary dependent on the SoftDevice radio stack software running on
the module.