Skip to content

Latest commit

 

History

History
 
 

kampela

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Prerequisites

Archlinux

Install rustup and ARM toolchain:

[sudo] pacman -S rustup arm-none-eabi-gcc arm-none-eabi-binutils
rustup update
rustup default stable

MacOs (tested on M1)

Install rustup

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
rustup default stable

Install ARM toolchain

brew

brew install --cask gcc-arm-embedded

manual installation

download and install suitable darwin GNU-ARM package from ARM GNU website

Preparations

rustup target add thumbv8m.main-none-eabihf
cargo install flip-link

Build

cargo build --release

Flashing

Pilkki

For Pilkki flasher look here.

./binarize.sh --pilkki

Segger

For Segger you need to install simplicity-commander. In case of ArchLinux there is AUR package.

./binarize.sh --segger