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
  • Please set a break point inside the bootloader and check. Note that in SDK v11 we expect the application to branch to the softdevice, not to do a reset.

    If you do a reset you need to comment out the line if (init_softdevice) inside ble_stack_init() in main.c

    If you plan to branch instead of softreset, please have a look at the example ble_app_hrm with dfu.

Reply
  • Please set a break point inside the bootloader and check. Note that in SDK v11 we expect the application to branch to the softdevice, not to do a reset.

    If you do a reset you need to comment out the line if (init_softdevice) inside ble_stack_init() in main.c

    If you plan to branch instead of softreset, please have a look at the example ble_app_hrm with dfu.

Children
No Data
Related