Persistent storage management on the M5Stick-C
-
Hi,
I would like to know if it is possible, and if yes how, could I write from micropython a file with telemetry data.
Just as a precision if it matters, I am using VS code with the M5 plugin to run the python code on the M5Stick-C.I've tried the following as a test with no success.
f = open("log.txt", "w+") f.write("Writing content from MicroPython") f.close()The file is created (but disappear after soft reboot) and stay empty.
My understanding is that the "flash/" folder is mounted on a FAT filesystem.
So I would assume that it is possible to write on the micro-controller memory in this space.Thank you by advance for your support.
Regards,
Antowan
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