Integration Manual
ANNA-B4 series - System integration manual
UBX-21000517 - R03 Contents Page 35 of 76
C1-Public
Use the following nrfjprog command options to save the whole memory area:
$ nrfjprog.exe --readuicr uicr.hex
...
$ nrfjprog.exe --program uicr.hex
☞ If the bootloader supplied with the module is not used for open CPU development, the UICR
register cannot be saved this way. This is because the UICR registers that hold the start address
of the bootloader confuse the boot process. In these instances, the MAC address must be written
separately.
For additional information about saving and using the public Bluetooth device address, see also the
application note [16].
4.5 Flashing open CPU software
ANNA-B402 open CPU modules can be flashed using various utility programs over the SWD or UART
interface.
Flashing over the SWD interface
To flash ANNA-B402 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 ANNA-B402 modules.
☞ EVK-ANNA-B402 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.
Flashing over the UART interface
To be able to flash ANNA-B402 over the UART interface, the module is pre-loaded with the bootloader
based on DFU examples included in the Nordic Semiconductor nRF5 SDK. The bootloader is accessed
using Nordic Semiconductor flash tools like nRF util.
Table 15 shows the memory layout of the module as delivered from factory. The memory regions that
are shaded 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 15: Flash layout of the ANNA-B402 that includes the S140 SoftDevice