We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
Im using the LPC2103 MCU and I need to store some calibration data in the flash, so the calibration doesnt get lost when the system is powered off.
I know I can use IAP to do this, but is there other mehods? Not that I dont like the IAP solution, but just to know.! :-)
I guess I have to reserve some of the flash for this purpose. How is that done in KEIL?
/thomas
If i just re-write the secor again, without a sector erase, then data isnt stored right ??
Normally the way flash works is like this: When you write to it, you can flip bits from 1 to 0, but not the other way around (remember, after erase you start with all 1's). Such behaviour is often used in EEPROM emulation algorithms which fill the sector gradually and only erase it when it's full.