File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ @ echo off
2+
3+ if [%1 ]== [] goto usage
4+
5+ @ echo Programming for SparkFun RTK Surveyor
6+ @ pause
7+ :loop
8+
9+ @ echo -
10+ @ echo Programming binary: %1 on %2
11+
12+ 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
13+ @ 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
14+
15+ @ echo Done programming! Ready for next board.
16+ @ pause
17+
18+ goto loop
19+
20+ :usage
21+ @ echo Missing the binary file and com port arguments. Ex: batch_program.bat RTK_Surveyor_Firmware_v11_combined.bin COM6
You can’t perform that action at this time.
0 commit comments