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.

MSP432 How to store data in flash and protect it so reprogramming/debugging wont erase it

Other Parts Discussed in Thread: MSP430G2553

Hi!


As the title suggests i want to store a large array of approx. 22kb in flash memory. It is a firmware for a touch controller and needs to be loaded into the touch controller at every boot of the cpu. As far as I know the TI compiler will allow me to program 32kb into flash but I need this data to stay in flash even after reprogramming the device so I am not too limited in code size . Is that possible to achieve somehow or do i have to use external memory?

  • Hi,

    thanks for the reply. I have never used the cloud IDE but I use CCS with MSPWare locally. Maybe i don't see the obvious, I have checked the tutorials of the MSPWare in this matter and writing/reading to/from flash is no issue.
    I did write to flash on a MSP430G2553 before to store information for when the device was switched off or resetted. However, reprogramming erases all flash data. Right now i want to use a program to write the 22kb into the flash, reprogram the device with my original code and access the written information on every boot.
    I read about the information memory which is user accessible, but unfortunately is only 16kb in size (minus some space taken by TIV), about IP Protection which serves as a read protection from unauthorized sources and about the Block protection. As far as i understood the Block protection protects the flash from being written at runtime, but what i need is some sort of option to choose which blocks of the flash get erased when reprogramming the device so the stored information is available after the mass erase of the debug process.

    My question is if this is possible to do, otherwise i will use a SPI memory IC which I have available. It has 16Mb of space and will be quite some work to get it running, only for storing 22kb. Storing the data in flash would be convinient and quick and because the MSP432P401R has 256 kb of flash memory there is enough space left. Is there this kind of "option" where i can define the erased parts or any other quick and easy solution? Is this common knowledge and i miss it somehow? Is it possible to set this up in the cloud IDE?

    Jonathan

  • Jonathan,
    With the cloud you can include the image and the application code in the same project and not worry about a size limitation.

    Chris
  • Hi,

    this is a convenient solution, thank you for that.

**Attention** This is a public forum