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

    Flash was erased without the reason

    Scheduled Pinned Locked Moved Issues & Bugs
    wipy2.0flasherased
    8 Posts 4 Posters 2.6k 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.
    • L Offline
      livius
      last edited by

      What can cause flash to be erased?
      I am working with Wipy2.0 with firmware 1.6.12.b1
      And after normal work i see now that all files from flash was erased.
      It looks like running

      os.mkfs('/flash')
      

      but with one exception
      boot.py looks like:

      # boot.py -- run on boot-up
      

      without UART dupterm

      think about people first, then computers

      L 2 Replies Last reply Reply Quote 0
      • L Offline
        livius @livius
        last edited by livius

        @livius
        Once againg flash was cleared without the reason.
        Anyone have something like this?

        Another question - how many writes are possible to flash? What is the limit?

        think about people first, then computers

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

          @livius My experience is, that the file system can get corrupt very easily with bugs in my own software. Especially if interrupt service routines are used and you stop that code and then doing file operation, w/o de-registering the ISR first. But that happened only during the test phase. later, the file system was pretty stable.

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

            @robert-hh said in Flash was erased without the reason:

            file system can get corrupt

            By corrupt - do you mean some files corrupted?
            For me flash was ereased totally - with new clear main.py and boot.py only

            think about people first, then computers

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

              @livius Any state. File corrupt or re-initialized, which may happen, if the initial check at boot time states, that there is an invalid file system. I guess the latter is happening, because with a bad flash memory device otherwise the code itself would be affected too.

              1 Reply Last reply Reply Quote 1
              • J Offline
                jmarcelino @livius
                last edited by jmarcelino

                @livius
                The Winbond flash chip is rated at 100,000 erase/program cycles. But as Robert was saying that's not likely the reason why the "file system" gets corrupted.

                1 Reply Last reply Reply Quote 1
                • L Offline
                  livius @livius
                  last edited by

                  Now it looks more logically than magically.
                  Finding the reason of corrupt action to prevent will be good but it is very rare to find a cause.
                  At this point i leave it.
                  Thank you both

                  think about people first, then computers

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    ssmith
                    last edited by

                    I was seeing this developing a BT app for no apparent reason using 1.6 Updating to 1.7.3 solved it. Haven't seen it since.

                    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