# Persistent memory on msp430 without FRAM

For persistence in FRAM-enabled msp430 there are convenient "noinit" and "persistent" variables...

For flash-based MSP430G you need to use flash memory. There is a demo for it.

How to make it simpler? Is there more easy to use persistence example which provides abstraction of flash erase, lock, some "calibration constants" etc., hopefully also providing portability between different msp430g2*. (Also how to tell the compiler to put a variable to some specific flash segment?) I.e. to simulate "noinit, persistent" on FRAM-less controllers.

• Which compiler? Are you using TI CCStudio? The answer might depend on the compiler. Jun 15 '13 at 17:50
• msp430-gcc + Makefile for msp430 + mspdebug on linux, without IDEs.
– Vi0
Jun 15 '13 at 17:59