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
  • I'm trying to upload my firmware via Master Control Panel on Win10 and nrf51 dongle. I started with softdevice 8.0.0 and dual bank bootloader loaded in my nrf51822. I'm able to discover DfuTarg and then load my firmware to it. Then I can see my device with dfu support is advertising. Then I tried to upload firmware again (in this scenario, the bootloader is launched from the application, of course). The firmware was loaded as indicated by Master Control Panel. However my device is stuck and it doesn't advertise. I have to power reset it and then it starts to advertise again as DfuTarg. So instead of updating my application, I ended with DfuTarg with no application loaded. After that, I can load m application via DfuTarg and then again, next firmware upload will fail.

Reply
  • I'm trying to upload my firmware via Master Control Panel on Win10 and nrf51 dongle. I started with softdevice 8.0.0 and dual bank bootloader loaded in my nrf51822. I'm able to discover DfuTarg and then load my firmware to it. Then I can see my device with dfu support is advertising. Then I tried to upload firmware again (in this scenario, the bootloader is launched from the application, of course). The firmware was loaded as indicated by Master Control Panel. However my device is stuck and it doesn't advertise. I have to power reset it and then it starts to advertise again as DfuTarg. So instead of updating my application, I ended with DfuTarg with no application loaded. After that, I can load m application via DfuTarg and then again, next firmware upload will fail.

Children
No Data
Related