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 you are going to store the data in the flash, then you basically have two options:
- have the factory fill the board with app + config when producing the board. - use IAP to write the configuration at a later time.
Check what sector sizes the processor has. If the last sector is of a reasonable size, then just open the project options and specify a smaller RAM to hide one or more sectors at the end.
If the end sectors are too large and you have smaller sectors at the beginning or in the middle then you can use the scatter file to reserve a gap in the middle.