# flashing esptool.py --port /dev/ttyUSB0 erase_flash esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 image.bin # creating an image esptool.py --port /dev/ttyUSB0 --baud 115200 read_flash 0x1000 4000000 image.bin