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



  • 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')
    


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



  • 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...
    
    

Log in to reply
 

Pycom on Twitter