Advertisement
pleasedontcode

Linux/macOS ESP32 Multiple Flashing Script

Aug 7th, 2024
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | Source Code | 0 0
  1. #!/bin/bash
  2. ports=("/dev/ttyUSB0" "/dev/ttyUSB1" "/dev/ttyUSB2")
  3. firmware="firmware.bin"
  4. for port in "${ports[@]}"; do
  5.     esptool.py --chip esp32 --port $port write_flash 0x1000 $firmware &
  6. done
  7. wait
  8. echo "All ESP32 boards have been flashed."
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement