ESP32 Firmware: Consider Port and De-Duplicate Flashing Script

This commit is contained in:
Frank Hessel
2021-04-29 09:05:31 +02:00
committed by Alexander Heinrich
parent b5a577ec4e
commit 9f41994380
2 changed files with 2 additions and 141 deletions
+2 -2
View File
@@ -135,9 +135,9 @@ set -e
trap cleanup INT TERM EXIT
# Clear NVM
esptool.py --after no_reset \
esptool.py --after no_reset --port "$PORT" \
erase_region 0x9000 0x5000
esptool.py --before no_reset --baud $BAUDRATE \
esptool.py --before no_reset --baud $BAUDRATE --port "$PORT" \
write_flash 0x1000 "$SCRIPT_DIR/build/bootloader/bootloader.bin" \
0x8000 "$SCRIPT_DIR/build/partition_table/partition-table.bin" \
0xe000 "$KEYFILE" \