Skip to content

Commit 0ed4b83

Browse files
committed
Update stm32CubeProg upload pattern
Allow to request reset to bootloader mode Signed-off-by: Frederic Pillon <[email protected]>
1 parent bac280d commit 0ed4b83

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

boards.txt

+13-13
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Nucleo_144.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
149149

150150
Nucleo_144.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
151151
Nucleo_144.menu.upload_method.serialMethod.upload.protocol=1
152-
Nucleo_144.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
152+
Nucleo_144.menu.upload_method.serialMethod.upload.options=-s
153153
Nucleo_144.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
154154

155155
Nucleo_144.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -410,7 +410,7 @@ Nucleo_64.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
410410

411411
Nucleo_64.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
412412
Nucleo_64.menu.upload_method.serialMethod.upload.protocol=1
413-
Nucleo_64.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
413+
Nucleo_64.menu.upload_method.serialMethod.upload.options=-s
414414
Nucleo_64.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
415415

416416
Nucleo_64.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -504,7 +504,7 @@ Nucleo_32.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
504504

505505
Nucleo_32.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
506506
Nucleo_32.menu.upload_method.serialMethod.upload.protocol=1
507-
Nucleo_32.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
507+
Nucleo_32.menu.upload_method.serialMethod.upload.options=-s
508508
Nucleo_32.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
509509

510510
Nucleo_32.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -622,7 +622,7 @@ Disco.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
622622

623623
Disco.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
624624
Disco.menu.upload_method.serialMethod.upload.protocol=1
625-
Disco.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
625+
Disco.menu.upload_method.serialMethod.upload.options=-s
626626
Disco.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
627627

628628
Disco.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -710,7 +710,7 @@ GenF0.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
710710

711711
GenF0.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
712712
GenF0.menu.upload_method.serialMethod.upload.protocol=1
713-
GenF0.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
713+
GenF0.menu.upload_method.serialMethod.upload.options=-s
714714
GenF0.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
715715

716716
GenF0.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -821,7 +821,7 @@ GenF1.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
821821

822822
GenF1.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
823823
GenF1.menu.upload_method.serialMethod.upload.protocol=1
824-
GenF1.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
824+
GenF1.menu.upload_method.serialMethod.upload.options=-s
825825
GenF1.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
826826

827827
GenF1.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -885,7 +885,7 @@ GenF3.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
885885

886886
GenF3.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
887887
GenF3.menu.upload_method.serialMethod.upload.protocol=1
888-
GenF3.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
888+
GenF3.menu.upload_method.serialMethod.upload.options=-s
889889
GenF3.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
890890

891891
GenF3.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -991,7 +991,7 @@ GenF4.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
991991

992992
GenF4.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
993993
GenF4.menu.upload_method.serialMethod.upload.protocol=1
994-
GenF4.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
994+
GenF4.menu.upload_method.serialMethod.upload.options=-s
995995
GenF4.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
996996

997997
GenF4.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -1039,7 +1039,7 @@ Sparky.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
10391039

10401040
Sparky.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
10411041
Sparky.menu.upload_method.serialMethod.upload.protocol=1
1042-
Sparky.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
1042+
Sparky.menu.upload_method.serialMethod.upload.options=-s
10431043
Sparky.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
10441044

10451045
Sparky.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -1098,7 +1098,7 @@ LoRa.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
10981098

10991099
LoRa.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
11001100
LoRa.menu.upload_method.serialMethod.upload.protocol=1
1101-
LoRa.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
1101+
LoRa.menu.upload_method.serialMethod.upload.options=-s
11021102
LoRa.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
11031103

11041104
LoRa.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -1235,7 +1235,7 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
12351235

12361236
3dprinter.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
12371237
3dprinter.menu.upload_method.serialMethod.upload.protocol=1
1238-
3dprinter.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
1238+
3dprinter.menu.upload_method.serialMethod.upload.options=-s
12391239
3dprinter.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
12401240

12411241
3dprinter.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -1280,7 +1280,7 @@ Genericflight.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
12801280

12811281
Genericflight.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
12821282
Genericflight.menu.upload_method.serialMethod.upload.protocol=1
1283-
Genericflight.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
1283+
Genericflight.menu.upload_method.serialMethod.upload.options=-s
12841284
Genericflight.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
12851285

12861286
Genericflight.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)
@@ -1349,7 +1349,7 @@ Midatronics.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
13491349

13501350
Midatronics.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)
13511351
Midatronics.menu.upload_method.serialMethod.upload.protocol=1
1352-
Midatronics.menu.upload_method.serialMethod.upload.options={serial.port.file} -s
1352+
Midatronics.menu.upload_method.serialMethod.upload.options=-s
13531353
Midatronics.menu.upload_method.serialMethod.upload.tool=stm32CubeProg
13541354

13551355
Midatronics.menu.upload_method.dfuMethod=STM32CubeProgrammer (DFU)

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ tools.stm32CubeProg.path.macosx={runtime.tools.STM32Tools.path}/tools/macosx
171171
tools.stm32CubeProg.path.windows={runtime.tools.STM32Tools.path}/tools/win
172172
tools.stm32CubeProg.upload.params.verbose=
173173
tools.stm32CubeProg.upload.params.quiet=
174-
tools.stm32CubeProg.upload.pattern="{path}/{cmd}" {upload.protocol} "{build.path}/{build.project_name}.bin" {upload.options}
174+
tools.stm32CubeProg.upload.pattern="{path}/{cmd}" {upload.protocol} "{build.path}/{build.project_name}.bin" -serport={serial.port.file} {upload.options}
175175

176176
# blackmagic upload for generic STM32
177177
tools.bmp_upload.cmd=arm-none-eabi-gdb

0 commit comments

Comments
 (0)