ST STM8

Registry:

https://registry.platformio.org/platforms/platformio/ststm8

Configuration:

platform = ststm8

The STM8 is an 8-bit microcontroller family by STMicroelectronics an extended variant of the ST7 microcontroller architecture. STM8 microcontrollers are particularly low cost for a full-featured 8-bit microcontroller.

For more detailed information please visit vendor site.

Examples

Examples are listed from ST STM8 development platform repository:

Debugging

Debugging - “1-click” solution for debugging with a zero configuration.

Tools & Debug Probes

Supported debugging tools are listed in “Debug” column. For more detailed information, please scroll table by horizontal. You can switch between debugging Tools & Debug Probes using debug_tool option in “platformio.ini” (Project Configuration File).

Warning

You will need to install debug tool drivers depending on your system. Please click on compatible debug tool below for the further instructions.

On-Board Debug Tools

Boards listed below have on-board debug probe and ARE READY for debugging! You do not need to use/buy external debug probe.

Name

MCU

Frequency

Flash

RAM

NUCLEO-8S207K8

STM8S207K8T6

16MHz

64KB

6KB

NUCLEO-8S208RB

STM8S208RBT6

16MHz

128KB

6KB

ST STM8S-DISCOVERY

STM8S105C6T6

16MHz

32KB

2KB

External Debug Tools

Boards listed below are compatible with Debugging but DEPEND ON external debug probe. They ARE NOT READY for debugging. Please click on board name for the further details.

Name

MCU

Frequency

Flash

RAM

ST STM8S003F3 chip

STM8S003F3P6

16MHz

8KB

1KB

ST STM8S103F3 Breakout Board

STM8S103F3P6

16MHz

8KB

1KB

ST STM8S105K4T6 Breakout Board

STM8S105K4T6

16MHz

16KB

2KB

sduino MB (STM8S208MBT6B)

STM8S208MBT6

16MHz

128KB

6KB

sduino UNO (STM8S105K6)

STM8S105K6T6

16MHz

32KB

2KB

Stable and upstream versions

You can switch between stable releases of ST STM8 development platform and the latest upstream version using platform option in “platformio.ini” (Project Configuration File) as described below.

Stable

; Latest stable version, NOT recommended
; Pin the version as shown below
[env:latest_stable]
platform = ststm8
board = ...

; Specific version
[env:custom_stable]
platform = ststm8@x.y.z
board = ...

Upstream

[env:upstream_develop]
platform = https://github.com/platformio/platform-ststm8.git
board = ...

Packages

Name

Description

framework-arduinoststm8

An Arduino-like programming API for the STM8 microcontrollers

framework-ststm8spl

Standard peripheral library for ST STM8S/A microcontrollers

tool-openocd

Open On-Chip Debugger. Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing

tool-stm8binutils

STM8 toolchain with GDB debugger

tool-stm8flash

stm8flash is an application for programing stm8 devices with SWIM/stlinkv(1,2).

tool-stm8gal

stm8gal is an application for programming or reading out STM8 memory using the built-in ROM bootloader (BSL) via UART or SPI interface

toolchain-sdcc

Small Device C compiler suite

Warning

Linux Users:

Windows Users:

Please check that you have a correctly installed USB driver from board manufacturer

Frameworks

Name

Description

Arduino

Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences.

Standard Peripheral Library

Standard Peripheral Library for ST STM32 microcontrollers

Boards

Note

  • You can list pre-configured boards by pio boards command

  • For more detailed board information please scroll the tables below by horizontally.

ST

Name

Debug

MCU

Frequency

Flash

RAM

ST STM8S-DISCOVERY

On-board

STM8S105C6T6

16MHz

32KB

2KB

ST STM8S003F3 chip

External

STM8S003F3P6

16MHz

8KB

1KB

ST STM8S103F3 Breakout Board

External

STM8S103F3P6

16MHz

8KB

1KB

ST STM8S105K4T6 Breakout Board

External

STM8S105K4T6

16MHz

16KB

2KB

STMicroelectronics

Name

Debug

MCU

Frequency

Flash

RAM

NUCLEO-8S207K8

On-board

STM8S207K8T6

16MHz

64KB

6KB

NUCLEO-8S208RB

On-board

STM8S208RBT6

16MHz

128KB

6KB

sduino

Name

Debug

MCU

Frequency

Flash

RAM

sduino MB (STM8S208MBT6B)

External

STM8S208MBT6

16MHz

128KB

6KB

sduino UNO (STM8S105K6)

External

STM8S105K6T6

16MHz

32KB

2KB