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

19 lines
267 B
Bash
Executable File

#!/bin/bash
set -euxo pipefail
# run: rustup target add thumbv6m-none-eabi
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
mkdir -p /tmp/8
cd /tmp/8
cmake "$SCRIPT_DIR"
make
picotool info
picotool load blink.uf2
picotool reboot