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.

flash erasure of a part only ?

Hi !

I'm working with CCS 424 and MSP420G2553 (LaunchPad).

I'd like to take 6 kB flash for measured data and 10 kB for program.

How can I keep the data unchanged in flash (i.e. protected) when I reload the next program version ?

Thanks & best regards, Uli

  • Uli,

    The main flash memory on G2553 is configured in 512 byte segments.  The minimum you can erase is a segment.  So, put the data in different segments than your code.  Use the linker command file to do this.

    Regards,

    David

  • My suggestion is, you modify the Linker Command file and tell the Linker to use Flash at 0xD800 to 0xFFFF (10 KB), instead of 0xC000 to 0xFFFF (16KB). You also tell the FET Debugger to “Retain unused memory” for downloading. This way you can keep the Flash at 0xC000 to 0xD7FF (6KB) for storing measured data.

  • Hi David !

    Thanks a lot for your help sofar. --- I could successfully move the code from 0xC000  to   e.g.  0xE000 startpoint.

    However, the range from 0xC000 to 0xDFFF is still erased, too.

    How can I configure the CCS 424  IDE  to not erase this first memory range ?

    Have a nice day, Uli

  • Hello OCY !

    I've found the linker command file and could modify it successfully ---Thanks !

    However, I don't have the FET Debugger .....   How to "retain unused memory"  with CCS424 ?

    Thanks & regards, Uli

  • Uli,

    CCSv4 is kind of old, and I don't have it installed on my machine anymore.  I am using CCSv5.3.0 which is the latest current release.  In CCSv5, there is a project option that configures how the flash will get erased:

    You right-click the project and select "Properties" to bring up the screen.  I would assume there was something similar in CCSv4.  If you cannot find it, post to the Code Composer Studio forum (cite the URL for this forum post in your new post as reference).  Someone on the CCS team will know the answer I'm sure.

    Regards,

    David

  • Hi David and OCY !

    This works fine now !!!

    Under the CCS424 the menues are:

      Tools -> Debugger options -> MSP430 Debugger options

        There we see the default button:  Erase main and information memory

        which I changed to button:  Retain unchanged memory

    1024 thanks for your help !

    With best regards, Uli

    ( TI-SMTS retired ;-)

**Attention** This is a public forum