Hi everybody,
we have implemented DFU with button and it works like a charm. Now we want to improve that and implemented the buttonless version too. Though, instead of starting the bootloader the application is restarted. There may be something wrong with addresses causing this behavior.
Here is the code called when triggering DFU from application:
static void boot_start(void) {
ble_conn_params_stop();
sd_power_gpregret_clr(POWER_GPREGRET_GPREGRET_Msk);
sd_power_gpregret_set(BOOTLOADER_DFU_START);
sd_softdevice_disable();
interrupts_disable();
sd_softdevice_vector_table_base_set(CODE_REGION_1_START);
bootloader_util_app_start(CODE_REGION_1_START);
}
Looking forward to your reply.
Best Philipp