In my DFU bootloader I am protecting areas of Flash memory used to store user data.
After an update, when my application starts and tries to write to this memory it is causing a fault because memory is still protected.
I understand that the flash memory protection is only cleared on a reset, and the DFU doesn't automatically force a reset of the device. How can I clear the flash memory protection?