rustphone/samd/openocd.sh
2024-12-28 15:34:02 +01:00

3 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"