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