How to save data permanently ?
-
In order to have access to certain values even after my LoPy crashes, I want to save them permanently... What is the way you guys prefer for saving data in the persistent storage?
-
@livius
FW of the SD card should prevent corruption of file system of the card if power fail happens during writing. How this is achieved I don't know.
-
@danielm said in How to save data permanently ?:
Company called Swissbit offers SD cards with power fail protection. Unfortunately I do not have any experience with them yet.
I cannot even imgine what it prevent in power fail?
-
I suggest NOT to use internal file-system because in my opinion it could get corrupted if power outage would happen during execution of write command. I experienced this behavior on MicroPython for TI CC3200.
Company called Swissbit offers SD cards with power fail protection. Unfortunately I do not have any experience with them yet.
https://www.swissbit.com/products/nand-flash-products/cards/micro-sd-memory-cards/
-
I woud say file is simple and easy, or adding FRAM or Flash.
-
You can save any data to a file on the Lopy. There is also a SD class for interfacing with SD cards. As for as I know there is no way to store anything in the EEPROM I believe.