diff options
author | Maximilien Cuony <maximilien@theglu.org> | 2015-12-09 20:45:11 +0100 |
---|---|---|
committer | Maximilien Cuony <maximilien@theglu.org> | 2015-12-09 20:45:11 +0100 |
commit | d02e071181e635ecf224350aa13eb120e30e36e5 (patch) | |
tree | 41cb94ebdb00595586a9dc5a1024b699c2a097f9 | |
parent | c82953d3a633125c091190a6a0f570561dc06642 (diff) | |
download | glutte-o-matic-d02e071181e635ecf224350aa13eb120e30e36e5.tar.gz glutte-o-matic-d02e071181e635ecf224350aa13eb120e30e36e5.tar.bz2 glutte-o-matic-d02e071181e635ecf224350aa13eb120e30e36e5.zip |
Make deploy dependant of ELF to autorebuild, reset and run cpu then exit
-rw-r--r-- | src/cw-example/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
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 |