SLAAEB4 april 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3106 , MSPM0G3107 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0L1105 , MSPM0L1106 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346
Data corruption is possible in case of a power loss during EEPROM_TypeB_write or EEPROM_TypeB_eraseGroup.
To detect the corruption and recover from it, EEPROM_TypeB_init is implemented. It should be called immediately after power-up. EEPROM_TypeB_init checks all groups’ header to confirm whether data storage of EEPROM emulation is correct.
In the structure of EEPROM emulation, headers show the status of corresponding groups. There are four states in total. The changes between the four states are described in detail in the previous section.