From d02e071181e635ecf224350aa13eb120e30e36e5 Mon Sep 17 00:00:00 2001 From: Maximilien Cuony Date: Wed, 9 Dec 2015 20:45:11 +0100 Subject: Make deploy dependant of ELF to autorebuild, reset and run cpu then exit --- src/cw-example/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/cw-example/Makefile b/src/cw-example/Makefile index aa8926d..8a6e463 100644 --- a/src/cw-example/Makefile +++ b/src/cw-example/Makefile @@ -111,9 +111,9 @@ clean: rm -f $(OBJECTS) $(BINDIR)/$(BINELF) $(BINDIR)/$(BINHEX) # Connect to openocd's gdb server on port 3333 -deploy: +deploy: $(BINDIR)/$(BINELF) ifeq ($(wildcard /opt/openocd/bin/openocd),) - /usr/bin/openocd -f /usr/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset halt" + /usr/bin/openocd -f /usr/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset" -c "exit" else - /opt/openocd/bin/openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset halt" + /opt/openocd/bin/openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset" -c "exit" endif -- cgit v1.2.3