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?
-
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.
-
I woud say file is simple and easy, or adding FRAM or Flash.
-
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/ -
@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?
-
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login