2022-05-04 01:51 AM
Hi everyone,
For some reasons, i need to store 3 uint16 in flash (once) when my application is running. Of course the goal is that those values will remain after a power down / reset. Does someone knows how to do this properly ?
Do i need to define a new area in the linker (located in flash area) ?
Thanks for your answer,
Best Regards,
Thomas
2022-05-04 02:04 AM
Or better a zone in the memory area that would be retain after a reflash of the MCU ?
2022-05-04 06:38 AM
2022-05-04 06:39 AM
You can store memory to flash, which is retained through power resets. There is an EEPROM emulation library you can search for. People often use the last (or last two) pages in flash to do this.
2022-05-04 07:50 AM
Oh thanks guys,
Will check about that feature right now.
Best Regards,
Thomas