-
Notifications
You must be signed in to change notification settings - Fork 12
1d. Installing the Toolchain on Linux
On most Linux systems make is installed by default. However, if it is not already on your machine, here are instructions for installing on Debian/Ubuntu.
In a terminal application paste the following into your command prompt:
sudo apt-get install build-essential
Download the GNU Embedded Toolchain for Arm.
You can ignore the "This page is deprecated" message at the top of the website. Please scroll down and we recommend that you click on "Downloads: 10-2020-q4-major December 11 2020" and unzip "gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2".
If you a version of the arm toolchain that is 10.3 and newer, the libraries will not compile.
You can check the version with:
arm-none-eabi-gcc --version
and can downloaded the proper version from the link above
Once downloaded, extract the folder from the .tar file, and move it to a destination of your choice for example, ~/Developer/
Once the file is moved, open up your bashrc file (located at ~/.bashrc
), and add the following lines:
GCC_PATH=~/Developer/gcc-arm-none-eabi-10-2020-q4-major/bin
export PATH=$GCC_PATH:$PATH
restart your terminal, or run source ~/.bashrc
before trying to compile the libraries or the examples.
dfu-util
is used to program binary files to the Daisy via USB.
on distros with apt package manager (ubuntu, etc.) you can:
apt-get install dfu-util
on distros with pacman pacakge manager (arch, etc.) you can:
pacman -S dfu-util
openocd
is used to program the Daisy and debug via a JTAG Debug Probe.
on distros with apt package manager (ubuntu, etc.) you can run:
sudo apt install openocd
If you experience any issues during installation, see our dedicated Troubleshooting Wiki Page.