Upon system reset, the execution branches to the MBR Reset Handler as specified in the System Vector Table.
The sequence is MBR -> bootloader -> application.
The MBR is provided by the softdevice.
The MBR uses a configuration page, the address of which is MBRPARAMADDR
which is MBR_PARAM_ADDR
(defined in nrf_mbr.h
), or if this is 0xFFFFFFFF
, UICR.NRFFW[1]
Bootloader address is BOOTLOADERADDR
which is MBR_BOOTLOADER_ADDR
(defined in nrf_mbr.h
). If this is 0xFFFFFFFF
, UICR.NRFFW[0]
is used instead.
APP_CODE_BASE
hardcoded in softdevice