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

nRF52 DFU of softdevice and bootloader combined

Hi,

I am using nRF52832 with S132_V2.0.0 and SDK_11.0.0.

I am able to doing dfu of softdevice and bootloader individually but when i try dfu for combined (SD + BL) then my device doesn't advertise anything. it should advertise "DFUTarg" but don't found any advertisement.

I am using following command line to create zip file for DFU

nrf dfu genpkg --softdevice "s132_nrf52_2.0.0_softdevice.hex" --bootloader "DFU_SmartBeacon_nrf52832AA_V1R1_B3_V0_0_4.hex" --application-version 0xffffffff --dev-type 0xffff --dev-revision 0xffff --sd-req 0xfffe "combo.zip"

Is anything missing from my side.

Thanks Bipin Patel

Parents
  • Hi Hung,

    "DFU_SmartBeacon_nrf52832AA_V1R1_B3_V0_0_4.hex" is a bootloader hex file. I have given name to it.

    Actually my issue is resolve. Issue was with following line in bootloader_settings.c.

    uint8_t m_boot_settings[CODE_PAGE_SIZE] attribute((at(BOOTLOADER_SETTINGS_ADDRESS))) attribute((used)) = {BANK_VALID_APP};

    I have change it to

    uint8_t m_boot_settings[CODE_PAGE_SIZE] attribute((at(BOOTLOADER_SETTINGS_ADDRESS))) attribute((used));

    First line used only for merge file not for upgrade of bootloader.

    Thanks Bipin Patel

  • Hi Bipin,

    I'm glad it worked now. Yes, the modification you made to add {BANK_VALID_APP}; in should only be used if you want to flash the application manually without using the bootloader. When you update bootloader and softdevice the application will be erased, you should not use that modification.

Reply Children
No Data
Related