This repository has been archived as no further evolutions are planned.
As an alternative, consider using STM32C0xx series supported by the Arduino_Core_STM32.
This repo adds the support of STM8 architecture in Arduino IDE.
This porting is based on several external components :
- STMicroelectronics Standard Peripheral Libraries (SPL)
- Cosmic compiler, allowing to compile c++ source code on stm8 family (http://www.cosmic-software.com/)
Solution is running on Windows only.
This repo is available as a package usable with Arduino Boards Manager.
Use this link in the "Additional Boards Managers URLs" field:
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
Warning:
- Default branch has changed to main.
- Since core release 1.0.0 this link has changed.
For full instructions on using the "Boards Manager", see the Getting Started page.
For advanced user, you can use the repository: see the Using git repository page.
-
STM8L
-
STM8S
Please note that this is a new core using a new compiler. You may face some issues with libraries compatibility.
We have several known issues :
- Windows 10: Board binary may be corrupted when plugged on a Windows 10 machine. To ensure compatibility with Windows 10, please upgrade STLink with revision 2.32.22 or higher (estimated availability October 1st).
- Endianness: STM8 microcontrollers are natively Big Endian whereas Arduino boards and STM32 microcontrollers are Little Endian. By default, some libraries don't handle endianess, therefore these won't be directly compatible with STM8 (this is the case of SD library for example).
If you have a question about compiler, you can also send a mail to Cosmic support : send a mail to Cosmic support