Skip to content

Commit

Permalink
Create batch_program.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
nseidle committed Jan 4, 2021
1 parent e0d9a81 commit 1aea88d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Binaries/batch_program.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1aea88d

Please sign in to comment.