The SoftDevice can be enabled by the bootloader.
The bootloader can enable the SoftDevice by using the following procedure:
sd_mbr_command()
with SD_MBR_COMMAND_INIT_SD.sd_softdevice_vector_table_base_set(uint32_t address)
with BOOTLOADERADDR
as parameter.sd_softdevice_enable()
.The bootloader can transfer the execution from itself to the application by using the following procedure:
sd_mbr_command()
with SD_MBR_COMMAND_INIT_SD, if interrupts are not
forwarded to the SoftDevice.sd_softdevice_disable()
, to ensure that the SoftDevice is disabled.sd_softdevice_vector_table_base_set(uint32_t address)
with
APP_CODE_BASE
as a parameter.