Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions sduino/stm8/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,27 @@ mb208.build.f_cpu=16000000L
mb208.build.board=STM8S_MB
mb208.build.core=sduino
mb208.build.variant=mb208

##############################################################

stm8svldisco.name=STM8S003 ValueLine Discovery Board MB1008a (STM8S003K3T6)

# First upload method is the default method
stm8svldisco.menu.upload_method.stm8flash_onboardMethod=Onboard ST-Link/V1 programmer
stm8svldisco.menu.upload_method.stm8flash_onboardMethod.upload.tool=stvp
stm8svldisco.menu.upload_method.stm8flash_onboardMethod.upload.protocol=SWIM

# a global definition of upload speed is required to keep the makefile happy
stm8svldisco.upload.speed=115200
stm8svldisco.upload.mcu=STM8S003K3
stm8svldisco.upload.maximum_size=16384
stm8svldisco.upload.maximum_data_size=1024

stm8svldisco.bootloader.tool=stm8flash

stm8svldisco.build.mcu=STM8S003
stm8svldisco.build.f_cpu=16000000L
stm8svldisco.build.board=STM8S_VL_DISCOVERY
stm8svldisco.build.core=sduino
stm8svldisco.build.variant=stm8svldisco

29 changes: 23 additions & 6 deletions sduino/stm8/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ recipe.preproc.macros="{compiler.wrapper.path}/{compiler.cpp.cmd}.sh" "{compiler
tools.stm8flash.cmd=stm8flash
# these lines are for manual install. For board manager installs they get converted to use
# {runtime.tools.STM8Tools.path} instead of {runtime.hardware.path}/tools
tools.stm8flash.path={runtime.hardware.path}/tools/linux
tools.stm8flash.path.windows={runtime.hardware.path}/tools/win
tools.stm8flash.path.macosx={runtime.hardware.path}/tools/macosx
tools.stm8flash.path={runtime.tools.STM8Tools.path}/linux
tools.stm8flash.path.windows={runtime.tools.STM8Tools.path}/win
tools.stm8flash.path.macosx={runtime.tools.STM8Tools.path}/macosx

#tools.stm8flash.upload.params.verify=
tools.stm8flash.upload.params.verbose=
Expand All @@ -156,6 +156,23 @@ tools.stm8flash.bootloader.params.quiet=
tools.stm8flash.bootloader.pattern=echo "no bootloader available"


# stm8flash for ST Visual Programmer
# -------------------------------------

tools.stvp.cmd=stvp
# these lines are for manual install. For board manager installs they get converted to use
# {runtime.tools.STM8Tools.path} instead of {runtime.hardware.path}/tools
tools.stvp.path={runtime.tools.STM8Tools.path}/linux
tools.stvp.path.windows={runtime.tools.STM8Tools.path}/win
tools.stvp.path.macosx={runtime.tools.STM8Tools.path}/macosx

#tools.stvp.upload.params.verify=
tools.stvp.upload.params.verbose=
tools.stvp.upload.params.quiet=
#tools.stvp.upload.pattern="C:\Program Files (x86)\STMicroelectronics\st_toolset\stvp\STVP_CmdLine.exe" -BoardName=ST-LINK -Port=USB -ProgMode={upload.protocol} -Device={upload.mcu} -FileProg="{build.path}/{build.project_name}.hex"
tools.stvp.upload.pattern="{path}/FlashSTVP.bat" "{build.path}/{build.project_name}.hex"


# Serial upload using the builtin bootloader
# ------------------------------------------

Expand All @@ -166,9 +183,9 @@ tools.stm8flash.bootloader.pattern=echo "no bootloader available"
tools.stm8gal.cmd=stm8gal
# these lines are for manual install. For board manager installs they get converted to use
# {runtime.tools.STM8Tools.path} instead of {runtime.hardware.path}/tools
tools.stm8gal.path={runtime.hardware.path}/tools/linux
tools.stm8gal.path.windows={runtime.hardware.path}/tools/win
tools.stm8gal.path.macosx={runtime.hardware.path}/tools/macosx
tools.stm8gal.path={runtime.tools.STM8Tools.path}/linux
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.background=-B
Expand Down
7 changes: 7 additions & 0 deletions sduino/stm8/programmers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ serialboot.communication=serial
serialboot.protocol=stlinkv1
serialboot.program.tool=stm8gal
serialboot.program.extra_params=

### for the ST Visual Programmer
stvp.name=ST-VisualProgrammer
stvp.communication=usb
stvp.protocol=SWIM
stvp.program.tool="C:\Program Files (x86)\STMicroelectronics\st_toolset\stvp\STVP_CmdLine.exe"
stvp.program.extra_params=
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

Pins_VL-DiscoveryBoard MB1008

CN1 Pin Pin Pin Type Main function / Alternate function
pin (chip) Arduino name
1 1 NRST I/O Reset
2 2 0 OSCIN/PA1 I/O Port A1
3 3 1 OSCOUT/PA2 I/O Port A2
4 4 GND S Digital ground
5 4 GND S Digital ground
6 5 VCAP S 1.8 V regulator capacitor
NC 6 VDD S Digital power supply
7 7 2 PA3 I/O Port A3 Timer 2 - channel 3 / SPI master slave
8 8 3 PF4 I/O Port F4


CN2 Pin Pin Pin Type Main function / Alternate function
pin (chip) Arduino name
1 17 12 PE5 I/O Port E5 SPI master slave
2 18 13 PC1 I/O Port C1 Timer 1 - channel 1 / UART2 synchronous clock
3 19 14 PC2 I/O Port C2 Timer 1 - channel 2
4 20 15 PC3 I/O Port C3 Timer 1 - channel 3
5 21 16 PC4 I/O Port C4 Timer 1 - channel 4
6 22 17 PC5 I/O Port C5 SPI clock
7 23 18 PC6 I/O Port C6 SPI master out / slave in
8 24 19 PC7 I/O Port C7 SPI master in / slave out


CN3 Pin Pin Pin Type Main function / Alternate function
pin (chip) Arduino name
1 9 4 PB7/B1 IO Port B7 BUTTON
2 10 5 PB6 IO Port B6
3 11 6 PB5 I/O Port B5 I2C data
4 12 7 PB4 I/O Port B4 I2C clock
5 13 8 PB3 I/O Port B3 Analog input 3 / Timer 1 external trigger
6 14 9 PB2 I/O Port B2 Analog input 2 / Timer 1 inverted channel 3
7 15 10 PB1 I/O Port B1 Analog input 1 / Timer 1 inverted channel 2
8 16 11 PB0 I/O Port B0 Analog input 0 / Timer 1 inverted channel 1


CN4 Pin Pin Pin Type Main function / Alternate function
pin (chip) Arduino name
1 25 20 PD0/LD1 I/O Port D0 Timer 1 - break input / conf. clock output LED_BUILTIN
2 26 21 PD1/SWIM I/O Port D1 SWIM data interface
3 27 22 PD2 I/O Port D2 Timer 2 - channel 3
4 28 23 PD3 I/O Port D3 Timer 2 - channel 2 / ADC external trigger
5 29 24 PD4 I/O Port D4 Timer 2 - channel 1 / BEEP output
6 30 25 PD5 I/O Port D5 UART1 data transmit
7 31 26 PD6 I/O Port D6 UART1 data receive
8 32 27 PD7 I/O Port D7 Top level interrupt / Timer 1 - channel 4
Binary file not shown.
Binary file not shown.
Loading