Need help to store data even when power is off on AT91SAM7X

I stored IP address as a variable on my AT91SAM7X. I change it sometimes. After changing it, next time when my board is powered up, the new IP should be used. How can I store a variable after power is off? Can I write it to flash, and how?

Any help is greatly appreciated,

Kelly

You can use a flash page for parameter storage. Then you must have a RAM located flash programming routine, a bit tricky but doable, search the lists.

Or you can attach an I2C (TWA) EEPROM, the cost is $2 and they are easy to use.

Or perhaps your board has a sd/mmc connector, then you usually need a lot of filesystem/FAT code.

I think I would go for the EEPROM

mul, thank you so much. Easy to implement is very important to me, I will use EEPROM as you suggested. It is so nice that you listed all the options available and described the issues associated with each, greatly appreciated.

Thanks again,

Kelly