This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G1106: Flash erase operation

Part Number: MSPM0G1106


Tool/software:

After flash erase, will a read from any address of this sector return all '1's? If not, what can I expect? Is it just random data? We implement EEPROM Emulation and the foundation for our driver is that we expect that we read 0xFFFFFFFF on an erased location and deem this to be the next virutal address to write new data.

  • Hi Sam,

    In order to respond to your question I would like to point you to our TRM: https://www.ti.com/lit/ug/slau846b/slau846b.pdf

    We have several Flash operations that can be executed:

     

    Command Description

    NOOP                     No operation (default setting).

    PROGRAM            Selects a program operation on the flash memory.

    ERASE                    Selects an erase operation on the flash memory.

    READVERIFY         Selects a standalone read verify operation.

    BLANKVERIFY       Selects a standalone blank verify operation.

     

    Considering the description of the Erase Command: 

    I would not recommend to rely on all registers swapping to 0xFFFF.

    This might be the case as usually the flash values go to 1 (at least in my trials) but this is not guaranteed.

     

    Instead of looking for 0xFFFF FFFF I would recommend:

    Use the BLANKVERIFY-command instead or additionally, on the Flashword you are trying to verify.

    Afterwards you can poll the STATCMD register for CMDDONE.

    And use the CMDPASS bit to see if the command has been executed correctly.

     

    Alternatively: If you want to stick with your approach:

    At the end of each BLANKVERIFY-the data registers are set to 1.

    Therefore it might be possible to use 

    ERASE

    and afterwards do 
    BLANKVERIFY


    READ and check if the content is:

    0xFFFFFFFF

    I  could not test this.

    Therefor I would still recommend to wait for our experts approval.

    Regards,

    Alex