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

How to create zip file for OTA NRF52810/NRF52811 on SDK15.1 and SDK15.3

Hi all,

I using SDK 15.1 and 15.3 for test.

I am working with DFU for NRF52810.

I tried success for NRF52840.

But I can't update success for NRF52810.

Below is scrip of me :

 On SDK 15.1

nrfutil pkg generate --hw-version 52810 --application-version 1 --application app.hex --sd-req 0xB0 --key-file private.key app_dfu_package.zip

nrfutil settings generate --family NRF52810 --application app.hex --application-version 0 --bootloader-version 0 --bl-settings-version 1 bootloader_setting.hex

mergehex --merge bootloader_setting.hex bootloader.hex --output output.hex
mergehex --merge output.hex s112_nrf52_6.1.1_softdevice.hex --output output1.hex
mergehex --merge output1.hex app.hex --output output2.hex
nrfjprog.exe --family NRF52 --program output2.hex –-verify
nrfjprog.exe --family NRF52 --reset

On SDK15.3

nrfutil pkg generate --hw-version 52810 --application-version 1 --application app.hex --sd-req 0xB8 --key-file private.key app_dfu_package.zip

nrfutil settings generate --family NRF52810 --application app.hex --application-version 0 --bootloader-version 0 --bl-settings-version 1 bootloader_setting.hex

mergehex --merge bootloader_setting.hex bootloader.hex --output output.hex
mergehex --merge output.hex s112_nrf52_6.1.1_softdevice.hex --output output1.hex
mergehex --merge output1.hex app.hex --output output2.hex
nrfjprog.exe --family NRF52 --program output2.hex –-verify
nrfjprog.exe --family NRF52 --reset

I tried with DFU and Button_less but are not successful. 

Please check for me. Thank !!!

Parents
  • Hi,

    You should use --bl-settings-version 2 when using the bootloader from SDK 15.3.0. But everything looks correct apart from that.

    Some follow up questions:

    1. Are you testing this on a custom board or a DK? 

    2. BLE or serial bootloader?

    3. Does the board advertise as "Dfutarg" after you program Softdevice + Bootloader

    4. Does the application advertise after you program app+bl settings?

  • I finished my question, Now I can update firmware from my app but not bond.

    If in app I enable bond for button_less, and in bootloader I don't enable bond. I can't update firmware.

    If in app I don't enable bond for button_less, and in bootloader I don't enable bond. I can update firmware.

     If in app I enable bond for button_less, and in bootloader I enable bond. I can't update firmware. Why? I need bond in app .

    Please give me advise, thank!

  • The NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS config option should only be enabled if you require bonds in your bootloader which I wouldn't recommend unless you have certain security requirements. The application can still support bonding even if NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS is disabled.

Reply Children
Related