ESP32 and ESP8266 with Micropython

Flash and install firmware

ESP32

esptool.py --chip esp32 --port /dev/tty.usbserial-1410 --baud 460800 write_flash -z 0x1000 ./ESP32_GENERIC-20231005-v1.21.0.bin

ESP8266

Preliminary actions

Install esptool

download the firmware

https://micropython.org/download/ESP8266_GENERIC/

flash ESP8266

esptool.py --port /dev/tty.usbserial-0001 erase_flash

Install firmware

esptool.py --port /dev/tty.usbserial-0001 --baud 460800 write_flash --flash_size=detect 0 ./ESP8266_GENERIC-20231005-v1.21.0.bin