CCCPaste

Linux/macOS ESP32 Multiple Flashing Script

#!/bin/bash
ports=("/dev/ttyUSB0" "/dev/ttyUSB1" "/dev/ttyUSB2")
firmware="firmware.bin"
for port in "${ports[@]}"; do
    esptool.py --chip esp32 --port $port write_flash 0x1000 $firmware &
done
wait
echo "All ESP32 boards have been flashed."