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

BANK_INVALID_APP set after application has been deleted in single bank DFU?

As far as I can tell, the application is set to invalid (settings.bank_0 = BANK_INVALID_APP) after the application has been successfully deleted ( devzone.nordicsemi.com/.../ )?

Would it not be safer to mark the application as invalid before starting the deletion (for single bank DFU)?

We have seen some cases where the application is deleted, but the bank is still valid (making the device "bricked" from a customer's point of view). In my mind, the worst case should be that the application is deleted, but the bootloader enters DFU at startup. Or am I missing something obvious here?

Note that I am using a modified version of the SDK 8.1.0 bootloader (similar to github.com/.../), but the functionality in question seems to be the same for SDK 8.1.0/9.0.0, which are the first recommended single bank DFU versions.

Related