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.

Can MSP430 information memory sections use like EEPROM?

Other Parts Discussed in Thread: MSP430G2231


I develop temp sensor with MSP430G2231.

I need EEPROM just 3bytes for calibration data.

I know MSP430 doesn't have EEPROM. But I heard information memory sections can use like EEPROM.

If it is true, can you support how can I use it?


Thanks & best regards


  • Hyun Woo Lee said:
    But I heard information memory sections can use like EEPROM

    Yes and no. There's a fundamental differenc ebetween the two. EEPROMs can be overwritten (actually erased and written byte by byte) while flash can only be written byte by byte, but once written, it has to be erased in a block (segment).

    So you cannot just write the same 3 bytes over and over again. You need to backup the whole flash segment (128 bytes, for the info segments), erase the segment, write your new data and all of the backed-up old data. Writing and especially reading flash is MUCH faster than EEPROM, but the need to erase the whole segment first slows it significantly down when using flash as cyclic data memory.

    About writing flash, there are several threads here, and there's also an appnote available with demo  code.

**Attention** This is a public forum