From 1aea88d2fd3956e161e8df118ed1f2ca70bd518c Mon Sep 17 00:00:00 2001 From: Nathan Seidle Date: Mon, 4 Jan 2021 13:15:56 -0700 Subject: [PATCH] Create batch_program.bat --- Binaries/batch_program.bat | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Binaries/batch_program.bat diff --git a/Binaries/batch_program.bat b/Binaries/batch_program.bat new file mode 100644 index 000000000..bc74e7780 --- /dev/null +++ b/Binaries/batch_program.bat @@ -0,0 +1,21 @@ +@echo off + +if [%1]==[] goto usage + +@echo Programming for SparkFun RTK Surveyor +@pause +:loop + +@echo - +@echo Programming binary: %1 on %2 + +rem @esptool.exe --chip esp32 --port COM6 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0 RTK_Surveyor_Firmware_v11_combined.bin +@esptool.exe --chip esp32 --port %2 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0 %1 + +@echo Done programming! Ready for next board. +@pause + +goto loop + +:usage +@echo Missing the binary file and com port arguments. Ex: batch_program.bat RTK_Surveyor_Firmware_v11_combined.bin COM6 \ No newline at end of file