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

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

Children
No data