Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    random flash memory format

    Scheduled Pinned Locked Moved Issues & Bugs
    gpy
    6 Posts 5 Posters 416 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      serafimsaudade
      last edited by

      Hi,

      Some times my gpy's flash became corrupt or is format:

      • All my program files became with strange names. To resolve this I need to format the flash and upload again the program files.

      • All my files are remove. Is like a factory reset.

      This problems occurs randomly.
      All my gpy have the latest stable firmware.

      1 Reply Last reply Reply Quote 0
      • B Offline
        bushbavarian
        last edited by

        I don't believe that none of the 366 viewers know how to format the /flash (partition?). Big help here...

        robert-hhR 1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @bushbavarian
          last edited by robert-hh

          @bushbavarian There seems to be another inconsistency:
          while the documentation talks about uos.mkfs(path) to format the file system, the code implements uos.fsformat(path).

          Note: Actually in my experience manual formatting is rarely needed. Either it happens with the flash 'automagically' when you least expect it, e.g. because the file system was changed, or with SD card it's done on a different system, e.g. your PC.

          1 Reply Last reply Reply Quote 0
          • B Offline
            bushbavarian
            last edited by

            Thanks for all of your answers. Seems the solution is creating an empty project and uploading this via pymakr. This deletes all of the previous (unwanted) files on /flash.

            1 Reply Last reply Reply Quote 0
            • K Offline
              kjm
              last edited by

              User community opinion on FAT Vs LittleFS seems divided. Personally I haven't had much in the way of flash corruption since release='1.20.1.r1', (version='15b6d69 on 2019-11-02') with either type.

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gijs
                last edited by

                We've had some reports that using a low voltage (outside of spec, like using an empty battery) might corrupt the filesystem when using littleFS. In that scenario, fatFS is more stable (not sure of the exact workings)

                1 Reply Last reply Reply Quote 0

                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
                • 1 / 1
                • First post
                  Last post

                Pycom on Twitter

                Pycom