ARM Development Environment Setup
- Aaron Chan (RIT Student)
- Yevgeniy Gorbachev (RIT Student)
Owned by Aaron Chan (RIT Student)
MacOS/Linux
Linux Setup Procedure
Setting Up the Environment
- Procedure written for a Debian Ubuntu environment, but the procedure can be easily adapted for any linux distro
- Install GNU ARM Embedded Toolchain
- Download 'arm-gnu-toolchain-??.?.rel?-x86_64-arm-none-eabi.tar.xz' from https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
- On MacOS, you will want 'arm-gnu-toolchain-??.?.rel?-darwin-x86_64-arm-none-eabi.tar.xz'
- Extract code to desired directory.
tar -xvf <gcc-arm.tar.xz> -C <desired compiler location>
- the compile location should be somewhere permanent
- Add to PATH environment variable
Edit shell's rc file's (
~/.bashrc
~/.zshrc
) PATH variableexport PATH=$PATH:<your_path_to_gcc_arm>/bin
On MacOS there are two possible locations you may need to put the line above. Execute the command below to determine where to place the line
echo "$SHELL"
If you got
/bin/zsh
then add the export to~/.zshrc
, if you have/bin/bash
then add the export to~/.bash_profile
.
- Update environment
- Easiest way is to restart your shell (close & open the terminal window)
source
~/.bashrc
or~/.zshrc
or~/.config/fish/config.fish
On MacOS source
~/.zshrc
if you have ZSH or~/.bash_profile
if you have bash
- Download 'arm-gnu-toolchain-??.?.rel?-x86_64-arm-none-eabi.tar.xz' from https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
Windows
Windows Setup Procedure
Setting Up the Environment
- Install GNU ARM Tools Path
- Download Installer from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
- Should have a name similar to "gcc-arm-XXXXXXXX-mingw-w64-i686-arm-none-eabi.exe"
- To avoid problems later on, make sure you the path to the toolchain has no spaces
- You will have to manually modify the automatically generated path because it has spaces in it
- Ex: C:\Program_Files_No_Spaces\Arm_GNU_Toolchain_arm-none-eabi\11.2_2022.02
- Take note of the install location and save for later.
- Download Installer from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
- Install Git for Windows
- Download Installer from https://git-scm.com/download/win
SSH Key
SSH Key Setup Procedure
SSH Key Setup
This is so you can do git submodules which is necessary for pulling launch-core to the module repositories
- Run ssh-keygen in your terminal
- Walk through the installer
- Once the key has been generated, locate the files where the keys has been saved (chosen in the walkthrough)
- Copy the contents of the file ending in .pub into GitHub which can be found at https://github.com/settings/keys
Editors
Setup Procedures
Editor Setup
Setting Up VS Code
- Light Weight Editor for software development. Provides the following useful features
- Download VS Code: https://code.visualstudio.com/download
- Download necessary VS Code extensions
- On the left hand side of the VS Code window, there is an extensions tab. Click on this tab and search for and install the following extensions:
- C/C++ Extension Pack
- GitHub Repositories
- GitHub Pull Requests and Issues
- On the left hand side of the VS Code window, there is an extensions tab. Click on this tab and search for and install the following extensions:
Setting Up CLion
- IDE for C/C++ development.
- Sign up for a JetBrains student pack or GitHub student pack (will take a few days to verify)
- Install either JetBrains Toolbox which will allow you to install multiple JetBrains editors or install just CLion
Setting Up STMCubeIDE
- IDE designed for STM32 development