-
Notifications
You must be signed in to change notification settings - Fork 4
Setting up development environment on Linux
Robert edited this page Aug 4, 2019
·
24 revisions
- 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.
- Clone, build and install stm8flash:
git clone https://github.com/vdudouyt/stm8flash.git
cd stm8flash/
make
make install
- Install python libraries.
pip3 install pyserial
- Install R libraries, run R in command line:
pi@raspberrypi:~/IonizationChamber/software/DataAcquisitionFromDevice $ R
R version 3.5.2 (2018-12-20) -- "Eggshell Igloo"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: arm-unknown-linux-gnueabihf (32-bit)
Type (write yes on next prompts):
install.packages('latticeExtra')
install.packages('gridExtra')
- 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.