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

    Keep getting error when calling pycom.bootmgr to update to littleFS

    Scheduled Pinned Locked Moved Firmware
    6 Posts 2 Posters 44 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

      I have this line inside my boot.py file as the first thing the pycom should do:

      pycom.bootmgr(boot_partition=pycom.FACTORY, fs_type=pycom.LittleFS, safeboot=False, reset=False)
      

      when I call it though I get an error saying safeboot must be True or False. When do I need to call this function and why would I get this error? Thanks!

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

        @lmerza you have to call bootmgr only once in a while to change settings, not on every boot.
        Generally, the bootmgr option get active on the next boot, not the actual one.

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

          @robert-hh It's not called on every boot, I'm trying to call it once to reformat but I cant get it work even once because of this error.

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

            @lmerza you do not need the safeboot option.

            Edit: Looking into the code, the message is just wrong. It is issued if either the value is not True or False, but also if it is the same as already set.

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

              @robert-hh I also tried pycom.bootmgr(boot_partition=pycom.FACTORY, fs_type=pycom.LittleFS) and it did not work. I tried pycom.bootmgr(fs_type=pycom.LittleFS) and it did not work either. The error doesnt make sense but its what I'm getting no matter what.

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

                @lmerza What do you expect as the result? If you just call

                pycom.bootmgr(), the actual boot setting are reported.

                1 Reply Last reply Reply Quote 1

                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