This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is IAP the only way of storing persistent data?

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

Parents
  • 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

Reply
  • 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

Children