summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.mk b/rules.mk
index d812d73..0f4b50b 100644
--- a/rules.mk
+++ b/rules.mk
@@ -152,13 +152,13 @@ $(PROJECT).elf: $(OBJS) $(LDSCRIPT)
%.flash: %.elf
@printf " FLASH\t$<\n"
ifeq (,$(OOCD_FILE))
- $(Q)(echo "halt; program $(*).elf verify reset" | nc -4 localhost 4444 ) || \
+ $(Q)(echo "halt; program $(*).elf verify reset" | nc -4 localhost 4444 2>/dev/null) || \
$(OOCD) -f interface/$(OOCD_INTERFACE).cfg \
-f target/$(OOCD_TARGET).cfg \
-c "program $(*).elf verify reset exit" \
$(NULL)
else
- $(Q)(echo "halt; program $(*).elf verify reset" | nc -4 localhost 4444 ) || \
+ $(Q)(echo "halt; program $(*).elf verify reset" | nc -4 localhost 4444 2>/dev/null) || \
$(OOCD) -f $(OOCD_FILE) \
-c "program $(*).elf verify reset exit" \
$(NULL)