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

Update application from UART (DFU)

Hi,

I am using nRF51822 on my custom board with SDK 12.2.0. I use DFU bootloader, and can update application in BLE from DFU mode with bootloader (dual bank mode is used). It works fine.

Now, I want to update my application from my current application in UART mode (not with the bootloader). From the application, download new application in BANK1. After downloaded new application and verify its integrity, reset the nRF51 in the bootloader (DFU) and let the bootloader to copy the new application from BANK1 to BANK0. And then jump to new application.

Is there any examples to do that ?

Thanks in advance.

Regards,

Xavier

Parents Reply
  • After writing new firmware in bank1 region, how is it possible to inform the bootloader to write new firmware in bank0 region ?

Children
  • I think it should work if you update the bootloader settings page (nrf_dfu_settings_t) after the image is successfully stored to bank 1, then call nvic_systemreset to reboot the device and let the bootloader activate the new app.