Skip to content

Commit c4ad8ab

Browse files
committed
Update batch_program.bat
1 parent 81f72a3 commit c4ad8ab

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Binaries/batch_program.bat

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@ rem if [%1]==[] goto usage
66

77
@echo Programming binary: %1 on %2
88

9-
@echo Flashing bootloader and firmware...
10-
@bossac.exe -i -d --port=%2 -U true -i -e -w -v %1 -R
9+
mode COM36 BAUD=1200 PARITY=n DATA=8 dtr=on
10+
set /p x="REALLY BIG TEST TO KEEP the port open for a smidgeREALLY BIG TEST TO KEEP the port open for a smidgeREALLY BIG TEST TO KEEP the port open for a smidgeREALLY BIG TEST TO KEEP the port open for a smidgeREALLY BIG TEST TO KEEP the port open for a smidgeREALLY BIG TEST TO KEEP the port open for a smidge" <nul >\\.\COM36
11+
rem echo 1>\\.\COM36
12+
13+
bossac.exe -i -d --port=%2 -U true -i -e -w -v %1 -R
14+
15+
@echo Flashing bootloader and firmware...
16+
rem @bossac.exe -a -i -d --port=%2 -U true -i -e -w -v %1 -R
17+
rem bossac.exe -a -i -d --port=COM36 -U true -e -w -v LoRaSerial_Firmware_v01.bin -R
18+
rem powershell works: $port= new-Object System.IO.Ports.SerialPort COM36,1200,None,8,one
19+
1120

1221
@echo Done programming! Ready for next board.
1322
rem @pause
1423

24+
1525
rem goto loop
1626

1727
rem :usage

0 commit comments

Comments
 (0)