[sudo] pacman -S rustup arm-none-eabi-gcc arm-none-eabi-binutils
rustup update
rustup default stable
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
rustup default stable
brew install --cask gcc-arm-embedded
download and install suitable darwin GNU-ARM package from ARM GNU website
rustup target add thumbv8m.main-none-eabihf
cargo install flip-link
cargo build --release
For Pilkki flasher look here.
./binarize.sh --pilkki
For Segger you need to install simplicity-commander. In case of ArchLinux there is AUR package.
./binarize.sh --segger