aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 350d73e..4d3f54c 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,9 @@ AS := arm-none-eabi-as
CP := arm-none-eabi-objcopy
OD := arm-none-eabi-objdump
+#todo: use an OS switch here to grab a different bin
+DFU = ../dfu-util/bin/linux/dfu-util
+
BUILD_PATH = build
LIB_PATH = lib
COMM_PATH = comm
@@ -180,10 +183,10 @@ jtag: $(BUILD_PATH)/main.bin
@echo "JTAG build"
program_ram: ram
- dfu-util -a0 -d 0110:1001 -D build/main.bin -R
+ $(DFU) -a0 -d 0110:1001 -D build/main.bin -R
program_flash: flash
- dfu-util -a1 -d 0110:1001 -D build/main.bin -R
+ $(DFU) -a1 -d 0110:1001 -D build/main.bin -R
program_jtag: jtag
openocd -f stm32conf/flash.cfg