Flash Pycom firmware to ESP32 using esptool

Update Pycom WiPy Firmware From Commandline

@hedleyd Not sure if this helps, but the WiPy 2.0 is a tarball which contains bootloader.bin, partition.bin and the firmware itself wipy.bin. Bootloader goes to 0x1000, partition table to 0x8000 and firmware to 0x10000. Ie to flash everything one could:

$ esptool.py --port /dev/cu.usbserial* --baud 115200 --after no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 bootloader.bin
$ esptool.py --port /dev/cu.usbserial* --baud 115200 --after no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x8000 partitions.bin
$ esptool.py --port /dev/cu.usbserial* --baud 115200 --after no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 wipy.bin

More thorough instructions in this blog post.

Telnet to esp32 · Issue #191 · micropython/micropython-esp32 · GitHub

1 Like

If you even don’t care about any partition layout as designated from Pycom, the process might require even less effort.

At least the magic is open source these days, see pycom-micropython-sigfox/esp32/tools/fw_updater at Dev · pycom/pycom-micropython-sigfox · GitHub.

Pycom-SSO - LogIn

5 posts were merged into an existing topic: Running the Terkin-Datalogger on a Heltec WiFi LoRa 32