Cannot upgrade Fipy firmware over FTP
-
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-hh yup i did that but when i reboot the fipy the wifi hotspot doesn't come up
-
@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)
-
@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.
-
@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
-
@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.
-
@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.
-
@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
-
@sumanth89 You have also to connect P2 to GND and then push reset, to set the Fipy into update mode.
-
@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
-
@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.