OTA DFU NRF5340

Hi,

The below is our requirement for NRF5340

1. we have a DFU application with bootloader as an hex file

2. we have another app say blinky as an hex file

3. merge these two hex files and create a new hex file - using 

nrfutil pkg generate --hw-version 53 --application-version 1 --application ble_app_blinky_pca10056_s140.hex --sd-req 0xA9 --key-file private.key app_dfu_package.zip

4. using NRF connect in mobile load this merged hex file and flash it 

We are getting conflict in step 3

Please help us resolve this issue

  • Hi Simon,

    Let me explain this item 1

    i understand that bootloader is updated into boot slot

    I am not sure about SMP server - where it is getting loaded

    i want to upgrade my app alone say Blinky1, Blinky2, Blinky3, Blinky4

    what i need to include extra code/ config  here? for boot and smp server to work, so that i can upgrade any number of times

    Item 2. - idea is to automatically upgrade and get feedback whether the upgrade is successful

    the system architecture is as below video ref

    https://www.youtube.com/watch?v=bluz8uC7WEs

    regards

    Kumanan

  • Hi

    Sorry about the late reply, but I've been out of office the past few days, and I'm currently working through my backlog. 

    Once the bootloader is on the nRF5340, it shouldn't be necessary to program the bootloader part multiple times, as long as you don't overwrite the flash where the bootloader is stored you should be able to do multiple DFUs as far as I can tell. As you're saying, if the DFU from the guide I linked to worked, that should work multiple times.

    Best regards,

    Simon

Related