freeshipping-controller/flash.sh

8 lines
278 B
Bash
Raw Normal View History

2019-04-17 19:41:22 +00:00
#!/bin/sh
set -e
cargo build --release
arm-none-eabi-objcopy -O binary target/thumbv7m-none-eabi/release/controller controller.bin
sudo openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c "program controller.bin 0x08000000" -c "arm semihosting enable" -c "reset run"