Unabel to upgrade FW



  • Hi
    I am unable to upgrade to the latest FW version. I ran the command line tool (output below).

    I got a GPy:

    (sysname='GPy', nodename='GPy', release='1.16.0.b1', version='v1.8.6-849-055728a on 2018-02-13', machine='GPy with ESP32')
    

    Any tips to get the FW upgraded?

    C:\Program Files (x86)\Pycom\Pycom Firmware Update>pycom-fwtool-cli.exe -v -p COM8 flash -t GPy-1.17.0.b1.tar.gz
    Running in PIC mode
    Product ID: 18 HW Version: 3 FW Version: 0.0.8
    Connecting....
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 921600
    Changed.
    Erasing 262144 bytes at address 1000
    Erasing 262144 bytes at address 41000
    Erasing 262144 bytes at address 81000
    Erasing 262144 bytes at address c1000
    Erasing 262144 bytes at address 101000
    Erasing 262144 bytes at address 141000
    Erasing 262144 bytes at address 181000
    Erasing 262144 bytes at address 1c1000
    Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
    Flash params set to 0x022f
    Compressed 15264 bytes to 10433...
    Wrote 15264 bytes (10433 compressed) at 0x00001000 in 0.2 seconds (effective 798.1 kbit/s)...
    File  md5: 70ddb2c50d140719ff90cab25660a213
    Flash md5: 1f8f683f611cd05bab6dafcc56e5baff
    MD5 of 0xFF is b129ed70396ad9d48d091d718d87cb05
    Exception: MD5 of file does not match data in flash!, on line 404
    


  • Hi

    I use the REPL as normal without any obvious problems as far as I have detected. Using Ctrl-E and pasting works as well. I usually upload scripts through FTP.


  • administrators

    Hmm, the Pysense could be faulty then.
    Does REPL works with Pysense, do you see strange chars, or missing?
    Does uploading scripts work?

    Regarding docs, we're keeping here https://docs.pycom.io all the chapters, what was missing?
    This scenario is an exception, due to strange issue; troubleshooting has to be added indeed.



  • SUCESS!!

    Thanks a lot for following up on this one.

    A comment on documentation this could be organized better with one place where you find documentation, software and firmware file in addition to troubleshooting section.


  • administrators

    0_1521014761638_IMG_0433.JPEG

    I have connected an Expansion Board, as an example, but any FTDI/Prolific USB-to-serial should be fine.

    As the GPY pinout is here: https://docs.pycom.io/chapter/datasheets/downloads/gpy-pinout.pdf
    The pins to be connected are:

    • RX/TX (P0 and P1) (wires white and orange)
    • power Vin (3.5-5.5V) should be ok from USB (wire yellow)
    • GND (wire brown)
    • short between P2 and GND (to force GPY go into programming mode) (wire green)
      <later edit>: added wires colour.


  • Hi again

    I tried to do upgrade first thing this morning (after been shut down since yestreday) and it is still not working. It even failed a bit earlier in the beginning (during Erase process).

    I retried a few times and after a while it failed with md5 checksum as before.

    I only have a pysense boad. If you give me instructions I will se what I can do regarding upgrade over FTDI if that is possible to do with the pysense board.



  • Hi

    I put it in the fridge so it should be cool. Still no success it even stops before :

    C:\Program Files (x86)\Pycom\Pycom Firmware Update>pycom-fwtool-cli.exe -v -p COM8 -s 57600  flash -t GPy-1.17.0.b1.tar.gz
    Running in PIC mode
    Product ID: 18 HW Version: 3 FW Version: 0.0.8
    Connecting....
    Uploading stub...
    Running stub...
    Stub running...
    Erasing 262144 bytes at address 1000
    Erasing 262144 bytes at address 41000
    Erasing 262144 bytes at address 81000
    Erasing 262144 bytes at address c1000
    Erasing 262144 bytes at address 101000
    Erasing 262144 bytes at address 141000
    Erasing 262144 bytes at address 181000
    Erasing 262144 bytes at address 1c1000
    Exception: Timed out waiting for packet content, on line 404
    

    I will continue trying this out tomorrow. If you could send me the instructions in the meantime that would be fine.

    Best regards


  • administrators

    hi @Jardar,

    Do you have an Expansion Board2, to give it another try?
    The GPY gets hot, sometimes, and this may affect the USB-serial clock, and therefore error will appear, in this fast Firmware Update process. Is your GPY warm, could you leave it a few minutes to cool down, being not mounted in the Pysense/Pytrack?

    <later edit> Another idea is to try it with an FTDI adapter (USB-to-serial standard convertor) and a breadboard, could you try this scenario? I can show the connections.



  • Hi again

    I ran the command with response: "Board erased successfully"

    Then I tried to run the upgrade command again. But still no success. (default buadrate, 57600 and 115200). Still no success.

    The response I get is sometimes:
    Exception: MD5 of file does not match data in flash!, on line 404
    and sometimes:
    Exception: Timed out waiting for packet header, on line 404

    Best regards


  • administrators

    @jardar Can you please try a complete erase using the erase_all option?

    C:\Program Files (x86)\Pycom\Pycom Firmware Update>pycom-fwtool-cli.exe -v -p COM8 erase_all

    and then try to flash the firmware again?

    P.S. In case anyone else is reading this.... this should only be done on a WiPy2/3 or GPy! Other devices first need to backup the config block using the cb option.



  • Hi.

    I got 64 bit windows 10.


  • administrators

    @jardar I see you have a 64-bit version of Windows. Is it Windows 7, Windows 10 or something in between?



  • My fw upgrader is located in :
    C:\Program Files (x86)\Pycom\Pycom Firmware Update
    Not sure where I get hold of the 64bit version.

    I have tried with different USB cable and with different baudrates (115200, 57600 and 9600) without success. I also tried with a different USB port on my PC. I also tried the software with GUI.

    I also tried to download the FW file again.


  • administrators

    @jardar Have you tried different USB cables? It might also be worth lowering the speed adding -s 115200 or -s 57600 after -p COM8:

    C:\Program Files (x86)\Pycom\Pycom Firmware Update>pycom-fwtool-cli.exe -v -p COM8 -s 57600 flash -t GPy-1.17.0.b1.tar.gz

    Edit: If that doesn't help can you please specify which version and type (32bit/64bit) you are using?



  • Hi again

    After several trials I have had no success. I would be greatfull if somebody could help me out with this problem.

    Best regards


 

Pycom on Twitter