rpi-pico-blink-examples/rust-with-c/build.sh

14 lines
322 B
Bash
Raw Normal View History

2024-02-08 21:08:36 -05:00
#!/bin/bash
set -euxo pipefail
# run: rustup target add thumbv6m-none-eabi
# run: cargo install flip-link
CARGO_TARGET_DIR=/tmp/cargo-target cargo build -vv --release --target thumbv6m-none-eabi
picotool info
mv /tmp/cargo-target/thumbv6m-none-eabi/release/rblink /tmp/rp.elf
picotool load /tmp/rp.elf
picotool reboot