This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Buttonless DFU jumps to Application not Bootloader

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

Parents
  • I am suing SDK11 with a makefile project using Eclipse and GCC. Our bootloader is based on Noric examples, though adjusted to our board. In bootloader, we check then content of gpregret to differentiate between button and button-less DFU, e.g. initiating ble stack.

    Though, when in bootloader I lightup an LED. Also, during normal startup I see theis LED blinking when going through bootloader. this is not the case, when initiating button-less DFU. Only the application is restarted, which is why I assume something with addresses maybe wrong. I just can find the cause....

Reply
  • I am suing SDK11 with a makefile project using Eclipse and GCC. Our bootloader is based on Noric examples, though adjusted to our board. In bootloader, we check then content of gpregret to differentiate between button and button-less DFU, e.g. initiating ble stack.

    Though, when in bootloader I lightup an LED. Also, during normal startup I see theis LED blinking when going through bootloader. this is not the case, when initiating button-less DFU. Only the application is restarted, which is why I assume something with addresses maybe wrong. I just can find the cause....

Children
No Data
Related