SDK 15.3.0
I want to save some user data in UICR , this data will change when application runing. How to re-write the data into UICR.
I assume that the UICR will not be erased by DFU, am I right ?
SDK 15.3.0
I want to save some user data in UICR , this data will change when application runing. How to re-write the data into UICR.
I assume that the UICR will not be erased by DFU, am I right ?
I took a look at the FDS, seems it is beyond my understanding, but I found a example to write flash.
my concern is " how to make sure the data won't be erased by DFU?"
The bootloader will just not erase the last two pages (by default). This is defined in sdk_config.h, you would have to take a look at the code to understand how this happens, as I don't know the mechanisms by heart.