4 lines
260 B
Bash
4 lines
260 B
Bash
|
cargo build --release --target thumbv6m-none-eabi || exit 1
|
||
|
cp target/thumbv6m-none-eabi/release/rustphone /tmp/rustphone.elf || exit 1
|
||
|
openocd -f /usr/share/openocd/scripts/board/atmel_samd21_xplained_pro.cfg -c "program /tmp/rustphone.elf verify reset exit"
|