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

    Update failing on Exception: "Failed to write compressed data to flash after seq 0"

    Scheduled Pinned Locked Moved MicroPython
    3 Posts 1 Posters 2.0k Views 1 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.
    • A Offline
      arthurlutz
      last edited by

      On WiPy 2.0

      Can't find a issue tracker for the update tool so here goes :

      ./update
      [dialog]
      Namespace(file=None, port='/dev/ttyUSB0', speed=115200, tar='/tmp/tmp.hdB96Irqeb/update.tar.gz')
      Connecting...
      Uploading stub...
      Running stub...
      Stub running...
      Changing baud rate to 115200
      Changed.
      Erasing flash...
      Compressed 5328 bytes to 3698...
      Wrote 5328 bytes (3698 compressed) at 0x00001000 in 0.3 seconds (effective 129.4 kbit/s)...
      Hash of data verified.
      
      Leaving...
      Verifying just-written flash...
      Verifying 0x14d0 (5328) bytes @ 0x00001000 in flash against binary...
      -- verify OK (digest matched)
      Erasing flash...
      Compressed 3072 bytes to 146...
      Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 1378.7 kbit/s)...
      Hash of data verified.
      
      Leaving...
      Verifying just-written flash...
      Verifying 0xc00 (3072) bytes @ 0x00008000 in flash against binary...
      -- verify OK (digest matched)
      Erasing flash...
      Compressed 1170896 bytes to 687907...
      Writing at 0x00010000... (2 %) Exception: Failed to write compressed data to flash after seq 0 (result was 0xc1, 0x0), on line 132
      

      This doesn't seem to "brick" the wipy 2.0, but I'm stuck on

      >>> os.uname()
      (sysname='ESP32', nodename='ESP32', release='0.9.0b', version='1f7bdfd on 2016-10-09', machine='WiPy with ESP32')
      
      A 1 Reply Last reply Reply Quote 0
      • A Offline
        arthurlutz @arthurlutz
        last edited by

        oh, and by the way I did run the https://forum.pycom.io/topic/88/how-to-solve-the-firmware-update-failures :

        $ python flash_debug.py /dev/ttyUSB0 write 0x0 2
        Connecting...
        value: 0x0
        length: 2
        write 0x60002008 0x00000000 0x00400000
        write 0x60002010 0x00000000 0x00000000
        write 0x60002000 0x08000000 0xffffffff
        write 0x60002008 0x00000000 0x00400000
        write 0x60002010 0x00000000 0x00000000
        write 0x60002000 0x08000000 0xffffffff
        write 0x60002008 0x00000000 0x00400000
        write 0x60002010 0x00000000 0x00000000
        write 0x60002000 0x08000000 0xffffffff
        write 0x60002008 0x00400000 0x00400000
        write 0x60002010 0x00000000 0x0000ffff
        write 0x60002000 0x04000000 0xffffffff
        write 0x60002008 0x00000000 0x00400000
        write 0x60002010 0x00000000 0x00000000
        write 0x60002000 0x08000000 0xffffffff
        get status: 0x0
        ESP DEV DISCONNECT...
        
        
        1 Reply Last reply Reply Quote 0
        • A Offline
          arthurlutz
          last edited by

          Sorry for the noise. Running the procedure again, got it to work (maybe I was missing a power down cycle).

          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