From 2589918c53ef477bb940bf0cf7489a421942b0bd Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Tue, 27 May 2025 21:44:45 +0200 Subject: [PATCH] add firmware installation script for ESP32 --- deploy/install_firmware.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 deploy/install_firmware.sh diff --git a/deploy/install_firmware.sh b/deploy/install_firmware.sh new file mode 100755 index 0000000..af36969 --- /dev/null +++ b/deploy/install_firmware.sh @@ -0,0 +1,11 @@ +#pip install esptool +FIRMWARE_FILE=ESP32_GENERIC-20250415-v1.25.0.bin + +if [ -z "$ESP_PORT" ]; then + echo "ESP_PORT is not set. Please set it to the correct port for your ESP32 device." + exit 1 +fi + + +esptool.py --port "$ESP_PORT" erase_flash +esptool.py --chip esp32 --port "$ESP_PORT" --baud 460800 write_flash -z 0x1000 deploy/firmware/"$FIRMWARE_FILE"