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

DFU not working from application

Hi, I loaded S110 v8 to nrf51. Then I loaded dfu_dual_bank_ble_s110_pca10028 bootloader.

With this setup, I'm able to download my application via the bootloader.

The problem is: When I trigger bootloader from my application, it almost immediately resets back to my application.

I examined that the bootloader is launched (main function of dfu_dual_bank_ble_s110_pca10028) with NRF_POWER->GPREGRET = 0xB1 which is correct.

bootloader_dfu_start() function in bootloader is called however, something inside the function causes reset almost immediatelly after the function is entered.

Can you please help?

Bootloader project: dual_bank_ble_s110.zip

Parents
  • As I already wrote: When I switched off any optimization of bootloader to be able to debug it, I always get err_code = 1 when err_code = sd_softdevice_vector_table_base_set(BOOTLOADER_REGION_START); APP_ERROR_CHECK(err_code); is called in ble_stack_init() function in main.c of the bootloader when the bootloader is triggered from the application. Can you please help to resolve this issue so I'm at least able to debug the bootloader further?

Reply
  • As I already wrote: When I switched off any optimization of bootloader to be able to debug it, I always get err_code = 1 when err_code = sd_softdevice_vector_table_base_set(BOOTLOADER_REGION_START); APP_ERROR_CHECK(err_code); is called in ble_stack_init() function in main.c of the bootloader when the bootloader is triggered from the application. Can you please help to resolve this issue so I'm at least able to debug the bootloader further?

Children
No Data
Related