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
Im using hte LP2103 and I can see that it has 8 sectors. They are 4 kB which is more then enough.
Sector Size (kB) 0 4 0x0000 0000 - 0x0000 0FFF 1 4 0x0000 1000 - 0x0000 1FFF 2 4 0x0000 2000 - 0x0000 2FFF 3 4 0x0000 3000 - 0x0000 3FFF 4 4 0x0000 4000 - 0x0000 4FFF 5 4 0x0000 5000 - 0x0000 5FFF 6 4 0x0000 6000 - 0x0000 6FFF 7 4 0x0000 7000 - 0x0000 7FFF
So i just change the ROM range in project options from 0x0 - 0x8000 to 0x0 - 0x7000 ? This would reserve the last sector?
/Thomas
Yes, that is enough. Decreasing the ROM size in the project will make sure that the linker generates an error if your program gets too large to fit into the remaining sectors.