Setting up development and programming for STM8 on Linux

STM8 Series of micro-controllers by ST Microelectronics are dirt cheap and powerful at the same time. Their processing power is nothing short as of Arduino, while at the same time their power consumption is much less. These properties makes STM8 micros a great choice for many hobby and serious projects. I this tutorial you will learn how to setup a developing and programming environment for STM8 on Linux based systems.

A while ago I stated a mini-tutorial series of programming for STM8, which are based on ST Visual Develop IDE and COSMIC C Comiler on Microsoft Windows platform. In the very first tutorial I promised to talk about setting up environment and programming on Linux. And here I am with the video tutorial on my YouTube channel.

Here are the required links (for easy copy-paste) that I used in the video:

  1. SDCC Compiler v3.5.0 or higher for Linux-x86 (works fine with x64 if you have multiarch enabled!).
  2. STM8FLASH (should be easy to compile using GCC).
  3. STM8 Example Project.

Please note that I used Ubuntu x64 14.04 LTS (which is a Debian based distro). I have not tested the procedure on other Linux architectures or distros, but I strongly beleive it should make no difference which architecture (as long is it is x86 or x64) or distro of linux you are using.

As a side note, if the SDCC complained about libstd6 or libglx, the solutions is as follow:

See the full instruction in the video:

As always, if you faced any problems just comment on the video or use the comment system below (needs registration)

Saeid Yazdani

An Electronics Engineer with passion in Embedded Systems, Wireless Sensor Networks, Assembly, Desktop and Mobile Development, Web Development and generally anything that has to do with hardware and software of any kind!

Leave a Reply

Your email address will not be published. Required fields are marked *