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

    Lopy4 resets and loses code.

    Scheduled Pinned Locked Moved LoPy
    4 Posts 4 Posters 291 Views 4 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.
    • erick_braunE Offline
      erick_braun
      last edited by

      I am working with the lopy4 module next to the expansion board makr using python and micropython in iot projects and I realized that after a while of use it resets itself, does not reboot and loses the code. Has anyone had this problem and could help me?

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @erick_braun
        last edited by

        @erick_braun There have been quite a few reports of similar issues on the forum. In most cases, it seems to be related to filesystem corruption, especially if you mix writing to the filesystem and deep sleep.

        Switching to the newer LittleFS file system available in recent versions of the firmware seems to help people.

        1 Reply Last reply Reply Quote 1
        • kodarnK Offline
          kodarn
          last edited by kodarn

          Yes, once in a while, the file system gets corrupted during normal development (i.e. the cycle of writing code, pushing the upload-button in Pymakr, followed by the automatic reset to have it start). I usually resolve it by:

          #1 pycom-fwtool-cli -p /dev/ttyACM0 erase_all
          #2 pycom-fwtool
          #3 Upload my stuff again using Pymakr Upload button
          
          1 Reply Last reply Reply Quote 0
          • A Offline
            andreas
            last edited by andreas

            @erick_braun said in Lopy4 resets and loses code.:

            Has anyone had this problem and could help me?

            @jcaron said in Lopy4 resets and loses code.:

            Switching to the newer LittleFS file system available in recent versions of the firmware seems to help people.

            We want to second that as we also have been bitten by this behavior badly the other day [1].

            Since switching to LittleFS, I have not seen any cases of file system corruption.

            [1] https://community.hiveeyes.org/t/fipy-verliert-programm-nach-power-off-durch-leeren-lipo-file-system-corruption-through-brownout-conditions/2057

            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