diff options
Diffstat (limited to 'sw/picardy/Makefile')
-rw-r--r-- | sw/picardy/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/picardy/Makefile b/sw/picardy/Makefile index 6dc5806..8c5fc79 100644 --- a/sw/picardy/Makefile +++ b/sw/picardy/Makefile @@ -1,17 +1,17 @@ .PHONY: all openocd debug OPENOCD := openocd -OPENOCD_CFG := /usr/share/openocd/scripts/target/stm32f1x.cfg -BIN := target/thumbv7em-none-eabihf/release/picardy +OPENOCD_OPT := -f interface/stlink-v2.cfg -f target/stm32f1x.cfg +BIN := target/thumbv7m-none-eabi/debug/picardy # Build and flash in release mode all: cargo build - $(OPENOCD) -f $(OPENOCD_CFG) -c "program $(BIN) reset exit" + $(OPENOCD) $(OPENOCD_OPT) -c "program $(BIN) reset exit" # Start a openocd session. openocd: - $(OPENOCD) -f $(OPENOCD_CFG) + $(OPENOCD) $(OPENOCD_OPT) # Start a gdb session. Works if a valid openocd session is existing. debug: |