This setup is only for experienced users. For general firmware development, use our Vagrant box instead.
These commands are required to set up the build system on Linux (tested on Ubuntu 16.04 LTS). This installs the necessary packages and clones a copy of the firmware to ~/projects/firmware
.
Install Commands
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa -y sudo add-apt-repository ppa:xorg-edgers/ppa -y # This is used for clang-format-5.0 - we may just want to move to 17.10 sudo apt -y update sudo apt -y install build-essential gcc-arm-embedded openocd git tmux ruby python3-pip clang-format-5.0 mkdir ~/projects cd ~/projects git clone https://github.com/uw-midsun/firmware.git
If you're running this on a VM (through VirtualBox) and want to symlink a shared folder instead, install the VirtualBox Guest Additions and set up a shared folder named projects
to auto-mount.
Then, running the following commands will enable your user to access shared folders and symlink the folder to ~/projects
. Replace mkdir ~/projects
with:
Shared Folder Setup
sudo adduser [username] vboxsf cd ~ ln -s /media/sf_projects projects
It's also recommended to set the STLink programmers to automatically mount within your VM.