aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile.include
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Makefile.include')
-rw-r--r--examples/Makefile.include27
1 files changed, 14 insertions, 13 deletions
diff --git a/examples/Makefile.include b/examples/Makefile.include
index 53cf598..9677067 100644
--- a/examples/Makefile.include
+++ b/examples/Makefile.include
@@ -94,24 +94,25 @@ ifeq ($(OOCD_SERIAL),)
@printf " FLASH $<\n"
@# IMPORTANT: Don't use "resume", only "reset" will work correctly!
$(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \
- -f board/$(OOCD_BOARD).cfg \
- -c "init" -c "reset init" \
- -c "stm32x mass_erase 0" \
- -c "flash write_image $(*).hex" \
- -c "reset" \
- -c "shutdown" $(NULL)
+ -f board/$(OOCD_BOARD).cfg \
+ -c "init" -c "reset init" \
+ -c "stm32x mass_erase 0" \
+ -c "flash write_image $(*).hex" \
+ -c "reset" \
+ -c "shutdown" $(NULL)
else
%.flash: %.hex
@printf " FLASH $<\n"
@# IMPORTANT: Don't use "resume", only "reset" will work correctly!
$(Q)$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \
- -f board/$(OOCD_BOARD).cfg \
- -c "ft2232_serial $(OOCD_SERIAL)" \
- -c "init" -c "reset init" \
- -c "stm32x mass_erase 0" \
- -c "flash write_image $(*).hex" \
- -c "reset" \
- -c "shutdown" $(NULL)
+ -f board/$(OOCD_BOARD).cfg \
+ -c "ft2232_serial $(OOCD_SERIAL)" \
+ -c "init" -c "reset init" \
+ -c "stm32x mass_erase 0" \
+ -c "flash write_image $(*).hex" \
+ -c "reset" \
+ -c "shutdown" $(NULL)
endif
.PHONY: images clean
+