summaryrefslogtreecommitdiff
path: root/Makefile
blob: 73b176d527e3a1fa53e0637bcbf70db846ec5c80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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'