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

    Cannot upgrade Fipy firmware over FTP

    Scheduled Pinned Locked Moved Firmware
    11 Posts 2 Posters 377 Views 2 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.
    • S Offline
      sumanth89
      last edited by

      I have downlaoded the latest firmware FiPy-1.20.0.rc13 for my Fipy. I connect via the ftp server using filezilla. I have connected to the wifi hotspot of the fipy. I have renamed the fipy.bin to appimg.bin and placed it in the /flash/sys/ folder. However when i reset / reboot the fipy i can still see the firmware version as '1.10.0.b1' in atom. Can you please help on how to upgrade the firmware?

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

        @sumanth89 Please update the firmware via USB with the pycom updater tool. Since the partition map has changed since then, that process will also have to rebuild the file system.

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

          @robert-hh i dont have the expansion board , i only have the fipy board. Is there any other way i can upgrade the firmware ? I do have a USB to UART converter cable with which i tried to upgrade the firmware using the pycom updater tool. However the tool doesnt detect the board. I have the USB plugged into my laptop and the tx,rx,5v and ground connected to the fipy

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

            @sumanth89 You have also to connect P2 to GND and then push reset, to set the Fipy into update mode.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sumanth89 @robert-hh
              last edited by

              @robert-hh i tried that i still keep getting the same error "Failed to connect to ESP32:Invalid head of packet (\x00)".
              Also when i connect the P2 pin to GND the fipy doesnt seem to turn on (the blue light doesnt flicker ). It does however create a /dev/tty device . Any other suggestions ? I really want to get this working without having to buy the expansion board

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

                @sumanth89 The method works. I do that myself. You may have to reduce the baud rate. Some of the USB/UART adapters do not work at high speed. And please check, if TX and RX are properly assigned When using a terminal emulation, you should at 115200 baud either get a REPL prompt (P2 high) or see the bootloader prompt (P2 low) after reset.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sumanth89 @robert-hh
                  last edited by

                  @robert-hh it worked, looks like i had my tx and rx pins messed up. i made the connections looking at https://docs.pycom.io/gettingstarted/connection/fipy/

                  I guess i was setting them up wrong from the pin out diagram.

                  With the latest firmware though i cant seem to see the wifi hotspot setup by the fipy.

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

                    @sumanth89 Another side effect of the changed partition map is, that WiFi settings may get corrupted. The best is that you do a full erase of the flash first and then load the firmware again. You can either use the full erase option in the firmware updater, using the advanced options, or you use esptool.py with the call:

                    esptool.py --port <com_port> erase_flash

                    Esptool.py requires the same enabling procedure: Pull P2 to GND and push reset. Actually, esptool.py or the relevant sections of it is also used by the pycom updater. But using it directly ensures that erasing is really done. You can find esptool.py at https://github.com/espressif/esptool

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sumanth89 @robert-hh
                      last edited by

                      @robert-hh i flashed it using the esptool and reinstalled the firmware this still doesn't seem to resolve the issue and i cant seem to see the wifi hotspot. However i am able to log in via UART and i can seeycom.wifi_on_boot() returning True.

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

                        @sumanth89 said in Cannot upgrade Fipy firmware over FTP:

                        i flashed it using the esptool

                        You mean: erased it using esptool. Did you re-install teh script that actually enables WiFi?

                        Like:
                        from network import WLAN
                        wlan = WLAN(mode=WLAN.AP, ssid="you ssid")
                        print(wlan.ifconfig)

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sumanth89 @robert-hh
                          last edited by

                          @robert-hh yup i did that but when i reboot the fipy the wifi hotspot doesn't come up

                          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