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