ST STM8
- Registry:
- Configuration:
platform =
platformio/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 |
---|---|---|---|---|
STM8S207K8T6 |
16MHz |
64KB |
6KB |
|
STM8S208RBT6 |
16MHz |
128KB |
6KB |
|
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 |
---|---|---|---|---|
STM8S003F3P6 |
16MHz |
8KB |
1KB |
|
STM8S103F3P6 |
16MHz |
8KB |
1KB |
|
STM8S105K4T6 |
16MHz |
16KB |
2KB |
|
STM8S208MBT6 |
16MHz |
128KB |
6KB |
|
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 |
---|---|
An Arduino-like programming API for the STM8 microcontrollers |
|
Standard peripheral library for ST STM8S/A microcontrollers |
|
Open On-Chip Debugger. Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing |
|
STM8 toolchain with GDB debugger |
|
stm8flash is an application for programing stm8 devices with SWIM/stlinkv(1,2). |
|
stm8gal is an application for programming or reading out STM8 memory using the built-in ROM bootloader (BSL) via UART or SPI interface |
|
Small Device C compiler suite |
Warning
Linux Users:
Install “udev” rules 99-platformio-udev.rules
Raspberry Pi users, please read this article Enable serial port on Raspberry Pi.
Windows Users:
Please check that you have a correctly installed USB driver from board manufacturer
Frameworks
Name |
Description |
---|---|
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 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 |
---|---|---|---|---|---|
On-board |
STM8S105C6T6 |
16MHz |
32KB |
2KB |
|
External |
STM8S003F3P6 |
16MHz |
8KB |
1KB |
|
External |
STM8S103F3P6 |
16MHz |
8KB |
1KB |
|
External |
STM8S105K4T6 |
16MHz |
16KB |
2KB |
STMicroelectronics
Name |
Debug |
MCU |
Frequency |
Flash |
RAM |
---|---|---|---|---|---|
On-board |
STM8S207K8T6 |
16MHz |
64KB |
6KB |
|
On-board |
STM8S208RBT6 |
16MHz |
128KB |
6KB |
sduino
Name |
Debug |
MCU |
Frequency |
Flash |
RAM |
---|---|---|---|---|---|
External |
STM8S208MBT6 |
16MHz |
128KB |
6KB |
|
External |
STM8S105K6T6 |
16MHz |
32KB |
2KB |