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.