Skip to content

Commit 9d81c4b

Browse files
committed
update the command line syntax for the new stm8gal v1.3.0
1 parent ee26e3f commit 9d81c4b

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

sduino/stm8/boards.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ stm8sdisco.menu.upload_method.stm8flashMethod.upload.protocol=stlinkv2
4040
stm8sdisco.menu.upload_method.stm8galMethod=Serial (using stm8gal with builtin bootloader)
4141
stm8sdisco.menu.upload_method.stm8galMethod.upload.tool=stm8gal
4242
stm8sdisco.menu.upload_method.stm8galMethod.upload.protocol=serial
43+
stm8sdisco.menu.upload_method.stm8galMethod.params.reset=-R 1
4344

4445
# a global definition of upload speed is required to keep the makefile happy
45-
stm8sdisco.upload.speed=230400
46+
stm8sdisco.upload.speed=115200
4647
stm8sdisco.upload.mcu=stm8s105?6
4748
stm8sdisco.upload.maximum_size=32768
4849
stm8sdisco.upload.maximum_data_size=2048
@@ -64,14 +65,15 @@ stm8sblack.name=STM8S105K4T6 Breakout Board
6465
stm8sblack.menu.upload_method.stm8galMethod=Serial (using stm8gal with builtin bootloader)
6566
stm8sblack.menu.upload_method.stm8galMethod.upload.tool=stm8gal
6667
stm8sblack.menu.upload_method.stm8galMethod.upload.protocol=serial
68+
stm8sblack.menu.upload_method.stm8galMethod.params.reset=-R 1
6769

6870
stm8sblack.menu.upload_method.stm8flashMethod=ST-Link/V2 (using stm8flash)
6971
stm8sblack.menu.upload_method.stm8flashMethod.upload.tool=stm8flash
7072
stm8sblack.menu.upload_method.stm8flashMethod.upload.protocol=stlinkv2
7173
stm8sblack.menu.upload_method.stm8flashMethod.upload.mcu=stm8s105?4
7274

7375
# a global definition of upload speed is required to keep the makefile happy
74-
stm8sblack.upload.speed=230400
76+
stm8sblack.upload.speed=115200
7577
stm8sblack.upload.maximum_size=16384
7678
stm8sblack.upload.maximum_data_size=2048
7779

@@ -92,6 +94,7 @@ s8uno.name=sduino UNO (STM8S105K6)
9294
s8uno.menu.upload_method.stm8galMethod=Serial (using stm8gal with builtin bootloader)
9395
s8uno.menu.upload_method.stm8galMethod.upload.tool=stm8gal
9496
s8uno.menu.upload_method.stm8galMethod.upload.protocol=serial
97+
s8uno.menu.upload_method.stm8galMethod.params.reset=-R 2
9598

9699
s8uno.menu.upload_method.stm8flashMethod=ST-Link/V2 (using stm8flash)
97100
s8uno.menu.upload_method.stm8flashMethod.upload.tool=stm8flash
@@ -100,7 +103,7 @@ s8uno.menu.upload_method.stm8flashMethod.upload.mcu=stm8s105?6
100103

101104

102105
# a global definition of upload speed is required to keep the makefile happy
103-
s8uno.upload.speed=230400
106+
s8uno.upload.speed=115200
104107
s8uno.upload.maximum_size=32768
105108
s8uno.upload.maximum_data_size=2048
106109

@@ -121,6 +124,7 @@ mb208.name=sduino MB (STM8S208MBT6B)
121124
mb208.menu.upload_method.stm8galMethod=Serial (using stm8gal with builtin bootloader)
122125
mb208.menu.upload_method.stm8galMethod.upload.tool=stm8gal
123126
mb208.menu.upload_method.stm8galMethod.upload.protocol=serial
127+
mb208.menu.upload_method.stm8galMethod.params.reset=-R 1
124128

125129
mb208.menu.upload_method.stm8flashMethod=ST-Link/V2 (using stm8flash)
126130
mb208.menu.upload_method.stm8flashMethod.upload.tool=stm8flash
@@ -129,7 +133,7 @@ mb208.menu.upload_method.stm8flashMethod.upload.mcu=stm8s208?b
129133

130134

131135
# a global definition of upload speed is required to keep the makefile happy
132-
mb208.upload.speed=230400
136+
mb208.upload.speed=115200
133137
mb208.upload.maximum_size=131072
134138
mb208.upload.maximum_data_size=6144
135139

sduino/stm8/platform.txt

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -167,28 +167,25 @@ tools.stm8gal.path.windows={runtime.tools.STM8Tools.path}/win
167167
tools.stm8gal.path.macosx={runtime.tools.STM8Tools.path}/macosx
168168

169169
tools.stm8gal.params.port=-p "{serial.port}"
170-
tools.stm8gal.params.baudrate=-b 230400
171-
tools.stm8gal.params.reset=-R 1
172-
tools.stm8gal.params.method=-u 2
173170
tools.stm8gal.params.background=-B
174171

175172
tools.stm8gal.upload.command=-w "{build.path}/{build.project_name}.hex"
176-
tools.stm8gal.upload.params.quiet=-V 0
177-
tools.stm8gal.upload.params.verbose=-V 2
173+
tools.stm8gal.upload.params.quiet=-v 0
174+
tools.stm8gal.upload.params.verbose=-v 2
178175
tools.stm8gal.upload.verify=
179-
tools.stm8gal.upload.params.noverify=-v
180-
tools.stm8gal.upload.pattern="{path}/{cmd}" {params.port} {params.baudrate} {params.reset} {params.method} {params.background} {upload.verbose} {upload.verify} {upload.command}
176+
tools.stm8gal.upload.params.noverify=-V
177+
tools.stm8gal.upload.pattern="{path}/{cmd}" {params.port} {params.reset} {params.background} {upload.verbose} {upload.verify} {upload.command}
181178

182179
# The program pattern is used for Sketch->upload using a Programmer
183180
# Same as the upload pattern.
184181
tools.stm8gal.program.command=-w "{build.path}/{build.project_name}.hex"
185-
tools.stm8gal.program.params.quiet=-V 0
186-
tools.stm8gal.program.params.verbose=-V 2
182+
tools.stm8gal.program.params.quiet=-v 0
183+
tools.stm8gal.program.params.verbose=-v 2
187184
tools.stm8gal.program.verify=
188-
tools.stm8gal.program.params.noverify=-v
189-
tools.stm8gal.program.pattern="{path}/{cmd}" {params.port} {params.baudrate} {params.reset} {params.method} {params.background} {program.verbose} {program.verify} {program.command}
185+
tools.stm8gal.program.params.noverify=-V
186+
tools.stm8gal.program.pattern="{path}/{cmd}" {params.port} {params.reset} {params.background} {program.verbose} {program.verify} {program.command}
190187

191188
tools.stm8gal.erase.command=-e
192-
tools.stm8gal.erase.params.quiet=-V 0
193-
tools.stm8gal.erase.params.verbose=-V 2
194-
tools.stm8gal.erase.pattern="{path}/{cmd}" {params.port} {params.baudrate} {params.reset} {params.method} {params.background} {erase.verbose} {erase.command}
189+
tools.stm8gal.erase.params.quiet=-v 0
190+
tools.stm8gal.erase.params.verbose=-v 2
191+
tools.stm8gal.erase.pattern="{path}/{cmd}" {params.port} {params.reset} {params.background} {erase.verbose} {erase.command}

0 commit comments

Comments
 (0)