Skip to content

Setting up development environment on Linux

Robert edited this page Jul 28, 2019 · 24 revisions
  1. First install tools via apt-get:
apt-get install screen
apt-get install git
apt-get install sdcc
apt-get install doxygen
apt-get install uncrustify
apt-get install libusb-1.0-0-dev
apt-get install python3-pip

Libusb is needed by stm8flash.

  1. Clone, build and install stm8flash:
git clone https://github.com/vdudouyt/stm8flash.git
cd stm8flash/
make
make install
  1. Install python libraries.
pip3 install pyserial
  1. Stm8flash enumerates as USB device, add access to this device for non-root users (so that its possible to flash the chip without being root):
chmod o+w /dev/bus/usb/001/004

In above example, /dev/bus/usb/001/004 is where the stm8flash enumerates, you will get id of your stm8flash from error message when trying to flash the board.