SLAAEO5 September 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0L1105
As the MSPM0 device family expands with newer SOCs, the best practice when adding support for flash evolves as well. With all variants of the MSPM0, it is best practice to clear the STATCMD register before any flash operation is performed. The register is cleared by writing the clear status command (0x00000005h) to the CMDTYPE register and then executing it. Upon execution of the command, any previous content in the STATCMD register will be cleared. It is important to note that clearing the STATCMD register will also reset the CMDWEPROTx registers previously discussed.
An example of clearing the STATCMD register when attempting to perform a sector erase can be seen in the following steps: