STM8

Compiler Comparison
RTOS Availability

Tutorials

STM8L-DISCOVERY

LED Timer
Serial

STM8S-DISCOVERY

LED Timer
Serial

STM8A-DISCOVERY

STM8AF LED Timer
STM8AF Serial
STM8AF Dhry. Whet.
STM8AL LED Timer
STM8AL Serial

EX-STM8-Q64a-207

LED Timer
Serial
Dhrystone Whetstone

Open8S208Q80

LED Timer
Serial
Dhrystone Whetstone

EX-STM8-Q48a-105

LED Timer
Serial

STM8/128-EVAL

LED Timer
Serial
Dhrystone Whetstone

STM8L101-EVAL

Serial

colecovision.eu

ColecoVision

STM8

MCS-51

LLVM+SDCC

Contact

Tutorials for STM8 development using free software

This is a collection of tutorials that show how to get started with STM8 development using free tools and various evaluation boards. The tutorials include an LED TIMER, which shows a binary counter that increments exactly once per second using the board LEDs and the STM8 timers, RS232 output using the STM8 UART, and standard benchmarks for embedded systems (both Whetstone and Dhrystone; Coremark is not included due to its license, but can easily be ported using the Whetstone and Dhrystone tutorials as examples).

The author used a Debian GNU/Linux system, but the tutorials should work for other Linux distributions, *BSD or other Unices.

All tutorials use:

Minimal boards

These are very simple and cheap boards that have an STM8 µC, but very little else included. They are typically made by unnamed manufacturers. The ones featured here are a bit atypical since most come with pin headers already mounted. Many very cheap boards do not come with pin headers at all.
Some STM8S103 board³HCDVBD0019³HCDVBD0017³STM8 Min. Sys. Dev.³STM8S-DIP-LQFP48 mod³STM8S105K4T6 Mod.³
Some cheap boardHCDVBD0019 boardHCDVBD0017 boardSTM8 Minimum System Development BoardSTM8S-DIP-LQFP48 moduleSTM8S105K4T6 Development Board Module
Controller
STM8S103F3STM8S103K3STM8S103F3STM8S003F3STM8S105C6STM8S105K4
Tutorials
No LEDLED TimerLED TimerLED TimerNo LEDTODO
SerialSerialSerialSerialSerialTODO
Not enough RAMNot enough RAMNot enough RAMNot enough RAMNot enough RAMNot enough RAM

Discovery boards

The STM8-Discovery are cheap boards made by ST that tend have only very few peripherals included. They have an integrated ST-Link or ST-Link/v2 though, which makes them ideal for getting started with little effort and cost.
STM8L-DISCOVERY¹STM8S-DISCOVERY¹STM8A-DISCOVERYSTM8A-DISCOVERYSTM8SVLDISCOVERYSTM8-SO8-DISCO
STM8L-DISCOVERY boardSTM8S-DISCOVERY boardMB1036B boardMB1037B boardSTM8SVLDISCOVERY boardSTM8-SO8-DISCO board
Controller
STM8L152C6STM8S105C6STM8AF5288STM8AL3L68STM8S003K3
Tutorials
LED TimerLED TimerLED TimerLED TimerLED TimerTODO
SerialSerialSerialSerialSerialTODO
Not enough RAMNot enough RAMBenchmarksNot enough RAMNot enough RAMNot enough RAM

Nucleo boards

The STM8 Nucleo-64 boards are made by ST and have Arduino Uno V3 connectivity support and ST morpho headers. These allow easy expansion of the Nucleo open development platform functionality with a wide choice of specialized shields. They have an integrated ST-Link/v2-1.
NUCLEO-8L152R8NUCLEO-8S208RB
NUCLEO-8L152R8 boardNUCLEO-8S208RB board
Controller
STM8L152R8STM8S208RB
Tutorials
LED TimerLED Timer
SerialTODO
TODOTODO

Third-party mid-range boards

These boards are made by third-party manufacturers, and tend to have a reasonable range of included peripherals.
EX-STM8-Q64a-207²Open8S208Q80²EX-STM8-Q48a-105²AS06-STM8³
EX-STM8-Q64a boardOpen8S20xQ80 boardEX-STM8-Q48a boardSTM8S-DIP-LQFP48 module
Controller
STM8S207R8STM8S208MBSTM8S105C6STM8L101F3
Tutorials
LED TimerLED TimerLED TimerTODO
SerialSerialSerialTODO
BenchmarksBenchmarksNot enough RAMNot enough RAM

High-end boards

These boards are made by ST and come with lots of peripherals.
STM8/128-EVAL²STM8L101-EVALSTEVAL-MKI029V1
STM8/128-EVAL boardSTM8L101-EVAL boardSTEVAL-MKI029V1
Controller
STM8S208MBSTM8L101K3STM8S207R6
Tutorials
LED TimerTODOTODO
SerialSerialTODO
BenchmarksNot enough RAMTODO

Power conversion controller boards

These boards are made by ST and feature STM8-based power conversion controllers.
STEVAL-ISA164V1STEVAL-ILL075V1
STEVAL-ISA164V1 boardSTEVAL-ILL075V1 board
Controller
STNRG388ASTLUX385A
Tutorials
LED TimerLED Timer
SerialSerial
BenchmarksNot enough RAM

Other boards

Various boards that feature STM8 controllers.
STM8S001 ref. designESP-14³Core Board STM8L151CX³STEVAL-IAS003V1
STM8S001J3 Reference design with Extension boardESP-14 moduleCore Board STM8L151CXSTEVAL-IAS003V1
Controller
STM8S001J3STM8S003F3STM8L151C8STM8L101K3
Tutorials
LED TimerNo LEDNo LEDTODO
SerialTODOTODOTODO
Not enough RAMNot enough RAMTODOTODO

Footnotes

¹Donated by an SDCC user.
²Bought using Goethe-Universität Frankfurt funding, used in Compiler research.
³Bought using my own money.
Donated by ST.
Bought using Albert-Ludwigs-Universität Freiburg funding, used in Compiler research.

If you would like to see an additional board featured here and are willing to provide the board, please contact me.