MSPM0L2228: mcu internal memory storage issue

Part Number: MSPM0L2228

Tool/software:

Hi Team ,

          I am using the internal Flash memory of the MSPM0L2228 to store the data. 

Initially i am able to store the data in the internal Flash memory of the controller. but after some time the data that i stored not able to get it back, memory get erased.

there are two cases on which internal memory get erased, 

1. when the controller get heated.

2. when multiple times device on off .

Is there is any provision that i have to follow,

Or any other protection to store the data in Flash memory, which i  can get my data back after stored.

Thank you,

Ankush 

  • Is the program OK?

  • Hi Ankush,

    How much are you heating the controller?

    Similar to Keith I am also wondering what your program does exactly, could you post it here or elaborate on its flow? We have examples on how to write data to your flash memory, please see the examples in the SDK/examples/nortos/LP_MSPM0L2228/driverlib/ with the prefix flashctl.

  • Hello, 

             I am using  the controller eeprom_emulation_type_b, to store the data ,

             Should i use this or not.

  • I tried using flash_ctl example code not working 

  • Which flashctl example code? 

    If you correctly write to the flash memory, and nothing in your program erases it later, the value should be persistent in memory.

    In the EEPROM emulation library, the contents of memory will be deleted if improperly formatted. Additionally, the original unedited example continually writes to memory and erases old memory. So you can use this to write to the memory but be aware that once the code starts running, it will start to edit memory and continually edit the memory.

    You could optionally paste your code in a formatted block. 

  • HI,

          MSPM0L2228 contains the 256k memory so i am using the memory from 190k. my memory gets stored properly, after on to off i am able to get the stored data, but the data get erased when multiple times dives turn on to off. EEPROM emulation type b itself using the flash_ctl terminology.

         I tried flashctl_multiple_size_read_verify_LP_MSPM0L2228_nortos_ticlang  reading the data form address is not mentioned in example codes. 

  • The 

    DL_FlashCTL_readVerifyxxx() APIs do read the flash memory. Please review the function description and parameters in dl_flashctl.h to learn more about what this function does. the flashctl_multiple_size_read_verify example does write to and read from the flash memory in a more simple manner than the EEPROM emulation examples and are a better place to start when you are not familiar with our flash controller.
    I would highly encourage you to take a look at the MSPM0 Academy Flash Controller lesson to learn more about the flash in MSPM0.