You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
406 B
13 lines
406 B
TARGET:=target/thumbv7em-none-eabi/debug/tivarust |
|
XARGO:= ~/.cargo/bin/xargo |
|
|
|
|
|
all: $(TARGET) |
|
|
|
target/thumbv7em-none-eabi/debug/tivarust: |
|
$(XARGO) build --target=thumbv7em-none-eabi |
|
load: $(TARGET) |
|
openocd -f openocd.conf -c "program $(TARGET) verify reset" -c "shutdown" |
|
|
|
debug: |
|
DBG=arm-none-eabi-gdb OPENOCD_CONFIG=openocd.conf ELFFILE=./target/thumbv7em-none-eabi/debug/tivarust ./openocd.sh debug
|
|
|