esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 boot_app0_0xe000.bin 0x1000 bootloader_0x1000.bin 0x10000 firmware_0x10000.bin 0x8000 partitions_0x8000.bin