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:
- SDCC Compiler v3.5.0 or higher for Linux-x86 (works fine with x64 if you have multiarch enabled!).
- STM8FLASH (should be easy to compile using GCC).
- 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:
#if faced problem with libglx
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
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)