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

    Can I downgrade from littleFS to fatFS?

    Scheduled Pinned Locked Moved Firmware
    10 Posts 2 Posters 62 Views 2 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.
    • L Offline
      lmerza
      last edited by

      We have some old modules that are still running fatFS but am in the process of seeing if it's viable to update to newer firmware that include littleFS. My issue is, if my client decides to rollback, will I be able to flash a previous firmware that will put the filesystem back to fatFS or once you update to littleFS you can't go back? Thanks!

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

        @lmerza The new firmware supports both file systems. YOu can always switch using:

        import pycom
        pycom.bootmgr(fs_type=pycom.FAT)

        or

        pycom.bootmgr(fs_type=pycom.LittleFS)

        See: https://development.pycom.io/firmwareapi/pycom/pycom/#pycom-bootmgr-boot-partition-pycom-factory-fs-type-fat-safeboot-false-reset-false

        1 Reply Last reply Reply Quote 2
        • L Offline
          lmerza
          last edited by robert-hh

          @robert-hh said in Can I downgrade from littleFS to fatFS?:

          import pycom
          pycom.bootmgr(fs_type=pycom.FAT)

          Hello! Thank you for responding. When would I call these two lines? After calling ota_finish() or in the boot.py file right at bootup? We are also testing to see if littleFS is something we want to do since we are experiencing corruption on some older devices but wanted to very I can switch back and forth easily. Thanks!

          robert-hhR 2 Replies Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @lmerza
            last edited by

            @lmerza You just call that once, when switching the file system.

            L 2 Replies Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @lmerza
              last edited by

              @lmerza LittleFS is definitely more robust in case of power fails or the like. And if Pycom eventually enables the wear leveling, is is also safe against flash wear.

              1 Reply Last reply Reply Quote 0
              • L Offline
                lmerza @robert-hh
                last edited by robert-hh

                @robert-hh sorry, maybe I am misunderstanding the filesystem formatting. I'm currently on firmware version 1.18.2.r7. If I were to use the ota_ functions to update the firmware to the latest version, this would not change the underlying filesystem until I call pycom.bootmgr(fs_type=pycom.LittleFS) as well?

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

                  @lmerza Yes. You have to update the firmware first. It may be that the switch from 1.18.2 to 1.20.2.r34 is not possible with OTA, and changing the file system all files on the target are lost.

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    lmerza @robert-hh
                    last edited by lmerza

                    @robert-hh I see if you update from 1.18.2 you have to update to 1.18.3 to resize partitions first before moving to 1.20.x. This will all need to happen OTA so I usually use the bin files from this url https://software.pycom.io/downloads/WiPy.html

                    The url doesn't seem to have the latest firmware files in it anymore. Is there a new place to get the latest bin files?

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      lmerza @robert-hh
                      last edited by

                      @robert-hh said in Can I downgrade from littleFS to fatFS?:

                      @lmerza You just call that once, when switching the file system.

                      when do i switch the file system? after update or after reboot?

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

                        @lmerza After update. If at that moment to he file system is not switched, change the setting and reboot. During reboot the new filesystem will get active. Since switching to the FS which is already set does not change anything, you can just set LittleFS and reboot. Sobthe sequence is:

                        • save files, if required
                        • update firmware
                        • reboot
                        • set FS to LittleFS
                        • reboot
                        • restore the files
                        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