Hello,
I am using MC56F8367 DSC. I need to protect the data sector of the internal flash memory. And keep a check if the data sector of the flash does not become 'All Ones'.
In the code, I have mostly covered most of the protection related points mentioned in the user manual - such as loading the " RDARY1 " command, setting the FMPROT to 1 and checking for the " BLANK " and the "SECSTAT" bit. To test this implementation, I erase the data sector of the flash and then using the debugger, I see that the "SECSTAT" and "BLANK" bits still remain 0.
Is there any application note or example code dedicated to check on flash corruption that I can refer to ?
Thank You !