Firmware update gone wrong



  • I tried to update to the latest firmware which failed now my device can not boot. Cant factory reset with the G28 to VIN method. Get the following repeated in the console when I connect to the serial port. Is it recoverable?

    rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    flash read err, 1000
    Falling back to built-in command interpreter.
    OK

    ets Jun 8 2016 00:22:57

    rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    flash read err, 1000
    Falling back to built-in command interpreter.
    OK

    ets Jun 8 2016 00:22:57

    rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    flash read err, 1000
    Falling back to built-in command interpreter.
    OK

    ets Jun 8 2016 00:22:57

    rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    flash read err, 1000
    Falling back to built-in command interpreter.
    OK



  • I found the entry in the topic about changing the speed in updater,py and commenting out a line and now it works. I should have read all the comments.
    https://forum.pycom.io/topic/88/how-to-solve-the-firmware-update-failures/55


  • Global Moderator

    Please run cd pyupgrade and then bin/updater.py -f firmware/lopy_0.9.2.b2_868.bin -p /dev/ttyUSB0

    Make sure to choose the correct COM port and firmware file.

    If you get any errors please post them here.



  • Got the waiting for download message OK.

    I managed to get the flash_debug.py to run OK

    The firmware update failed each time FAIL

    retried several times

    using firmware updater 0.9.2.b2a. ubuntu 16.04


  • Global Moderator

    The same thing happened to me and it shouldn't be hard to recover.

    You need to connect GND to G23 on the expansion board. When you do that you should see the following on the serial terminal (press the reset button on the module to make sure you get this message as you won't see it when you open the terminal program after plugging in the USB cable):

    rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
    waiting for download
    

    Make sure you download the latest firmware package.

    Now you can update using the command line option I posted here


Log in to reply
 

Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.