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

Bootloader: DFU Start by Flash content instead of Key operation

Controller: nRF52832-QFAA

Reference project: nRF5_SDK_11.0.0_89a8197/examples/dfu/bootloader/pca10040/dual_bank_ble_s132

Question: The idea is, to store a init_DFU_by_flag into the data flash by the application to initiate the DFU service after RESET. The bootloader has to clear this flag after its recognizing by the erasing of the regarding data page. I guess, the NORDIC-bootloader could use the pstorage raw functions. Exists there a possibility to erase one special data page inside of more than one data page by help of the functions the bootloader uses for the upload of firmware?.

Parents
  • Hi Uwe,

    In your application , I would suggest you to use pstorage instead of pstorage raw. If you use pstorage raw, make sure you implement this deadlock fix.

    The bootloader on SDK v12 is quite different from SDK v11. If you don't have the need of having Secure DFU, where the integrity and genuine of the firmware is verified by a signature, then you can continue to use the bootloader on SDK v11.

    I mentioned SDK v12 just as an example you can have a look. I don't see a problem using flash to set the flag. Just less clean than using the GPREGRET.

Reply
  • Hi Uwe,

    In your application , I would suggest you to use pstorage instead of pstorage raw. If you use pstorage raw, make sure you implement this deadlock fix.

    The bootloader on SDK v12 is quite different from SDK v11. If you don't have the need of having Secure DFU, where the integrity and genuine of the firmware is verified by a signature, then you can continue to use the bootloader on SDK v11.

    I mentioned SDK v12 just as an example you can have a look. I don't see a problem using flash to set the flag. Just less clean than using the GPREGRET.

Children
No Data
Related