I want to store 3 integer values in the flash memory of the microcontroller so that these values are not lost if the device has a power outage.
I am trying to understand which type of memory to use for this purpose and how exactly how can I write to and read from this memory block.
I am doing a hobby project to use a HMI to input data to a PLC which will then drive several motors to control the movement of toy quadcopter.
I am using the Keil uvision IDE.
Some additional notes:
- The values will be changed once every 2-3 months.
- There can be power outage during the value update process.
- Its not critical if process is interrupted and we lose the latest value entered.