diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..73b176d --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ + +all: + cargo build + +main.bin: target/thumbv7em-none-eabihf/debug/stm32l4-rust + arm-unknown-eabi-objcopy -O binary target/thumbv7em-none-eabihf/debug/stm32l4-rust main.bin + +flash: main.bin + openocd -f openocd.cfg -c "program main.bin reset exit 0x08000000" + +target/thumbv7em-none-eabihf/debug/stm32l4-rust: + cargo build + +clean: + cargo clean + +debug: + arm-unknown-eabi-gdb -tui -ex 'tar ext :3333' -ex 'file target/thumbv7em-none-eabihf/debug/stm32l4-rust' |