Skip to content

Commit

Permalink
update the command line syntax for the new stm8gal v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tenbaht committed Feb 5, 2019
1 parent ee26e3f commit 9d81c4b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
12 changes: 8 additions & 4 deletions sduino/stm8/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ stm8sdisco.menu.upload_method.stm8flashMethod.upload.protocol=stlinkv2
stm8sdisco.menu.upload_method.stm8galMethod=Serial (using stm8gal with builtin bootloader)
stm8sdisco.menu.upload_method.stm8galMethod.upload.tool=stm8gal
stm8sdisco.menu.upload_method.stm8galMethod.upload.protocol=serial
stm8sdisco.menu.upload_method.stm8galMethod.params.reset=-R 1

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

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

# a global definition of upload speed is required to keep the makefile happy
stm8sblack.upload.speed=230400
stm8sblack.upload.speed=115200
stm8sblack.upload.maximum_size=16384
stm8sblack.upload.maximum_data_size=2048

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

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


# a global definition of upload speed is required to keep the makefile happy
s8uno.upload.speed=230400
s8uno.upload.speed=115200
s8uno.upload.maximum_size=32768
s8uno.upload.maximum_data_size=2048

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

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


# a global definition of upload speed is required to keep the makefile happy
mb208.upload.speed=230400
mb208.upload.speed=115200
mb208.upload.maximum_size=131072
mb208.upload.maximum_data_size=6144

Expand Down
25 changes: 11 additions & 14 deletions sduino/stm8/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,28 +167,25 @@ tools.stm8gal.path.windows={runtime.tools.STM8Tools.path}/win
tools.stm8gal.path.macosx={runtime.tools.STM8Tools.path}/macosx

tools.stm8gal.params.port=-p "{serial.port}"
tools.stm8gal.params.baudrate=-b 230400
tools.stm8gal.params.reset=-R 1
tools.stm8gal.params.method=-u 2
tools.stm8gal.params.background=-B

tools.stm8gal.upload.command=-w "{build.path}/{build.project_name}.hex"
tools.stm8gal.upload.params.quiet=-V 0
tools.stm8gal.upload.params.verbose=-V 2
tools.stm8gal.upload.params.quiet=-v 0
tools.stm8gal.upload.params.verbose=-v 2
tools.stm8gal.upload.verify=
tools.stm8gal.upload.params.noverify=-v
tools.stm8gal.upload.pattern="{path}/{cmd}" {params.port} {params.baudrate} {params.reset} {params.method} {params.background} {upload.verbose} {upload.verify} {upload.command}
tools.stm8gal.upload.params.noverify=-V
tools.stm8gal.upload.pattern="{path}/{cmd}" {params.port} {params.reset} {params.background} {upload.verbose} {upload.verify} {upload.command}

# The program pattern is used for Sketch->upload using a Programmer
# Same as the upload pattern.
tools.stm8gal.program.command=-w "{build.path}/{build.project_name}.hex"
tools.stm8gal.program.params.quiet=-V 0
tools.stm8gal.program.params.verbose=-V 2
tools.stm8gal.program.params.quiet=-v 0
tools.stm8gal.program.params.verbose=-v 2
tools.stm8gal.program.verify=
tools.stm8gal.program.params.noverify=-v
tools.stm8gal.program.pattern="{path}/{cmd}" {params.port} {params.baudrate} {params.reset} {params.method} {params.background} {program.verbose} {program.verify} {program.command}
tools.stm8gal.program.params.noverify=-V
tools.stm8gal.program.pattern="{path}/{cmd}" {params.port} {params.reset} {params.background} {program.verbose} {program.verify} {program.command}

tools.stm8gal.erase.command=-e
tools.stm8gal.erase.params.quiet=-V 0
tools.stm8gal.erase.params.verbose=-V 2
tools.stm8gal.erase.pattern="{path}/{cmd}" {params.port} {params.baudrate} {params.reset} {params.method} {params.background} {erase.verbose} {erase.command}
tools.stm8gal.erase.params.quiet=-v 0
tools.stm8gal.erase.params.verbose=-v 2
tools.stm8gal.erase.pattern="{path}/{cmd}" {params.port} {params.reset} {params.background} {erase.verbose} {erase.command}

0 comments on commit 9d81c4b

Please sign in to comment.