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.

MSPM0G3507: Do not erase specific Flash areas.

Part Number: MSPM0G3507
Other Parts Discussed in Thread: UNIFLASH

Hi Expert

in flash memory i build a 2K area(0x7800~0x7FFF) as eeprom(P1), but i found 

this area always be erased while download code, i also set flash erase option 

in CCS(P2), it sill no work, is there any way to retain 31~32K data during download?

thanks

 

P1.png

P2.png

 

  • Hi Stanly,

    There are some directions for your to test:

    • You could try to generate a .txt or .hex output file, to see whether  the EEPROM region((0x7800~0x7FFF) has included a content in the output file.
    • Could you check your .map file under Debug folder to see, whether the EEPROM region((0x7800~0x7FFF) has been used as any of the code.
    • Write some data to EEPROM before download program, double check whether the EEPROM region is erase by CCS loading program.

  • Hi 

    thanks for your reply

    (1) i offer my .map file to you, and i think the ide doesn't put any code in 0x7800~0x7FFF

    (2)  1. i write data to 0x7800~0x7FFF and use uniflash to check data, all 2K data correct

          2. download code again and use uniflash to check data, all 2K data display 0xFFFF(be erased)

    Digital_Controller_1_map.txt

  • Hi Stanly,

    I think your configuration looks fine. As you are configuring Flash setting in CCS, do you also download your program in step (2) by CCS?

    And could you try to debug with CCS in step (2), and DO NOT start application program. And checking flash content in 0x7800 in View-Memory? Please share the image you get before and after downloading program if possible. I'm afraid the EEPROM data is erase by application program. 

  • Hi 

    you are right, 0x7800~0x7FFF was erased somewhere in the application, now i can keep the data while program download,

    thanks for your great help