Browse Source

Silence OpenOCD per default, use V=1 for more verbose output.

pull/2/head
Uwe Hermann 16 years ago
parent
commit
526cb01aaa
  1. 4
      example/Makefile

4
example/Makefile

@ -35,6 +35,7 @@ OPENOCD = openocd
# Be silent per default, but 'make V=1' will show all compiler calls.
ifneq ($(V),1)
Q := @
NULL := 2>/dev/null
endif
all: images
@ -72,13 +73,14 @@ clean:
$(Q)rm -f $(BINARY).list
flash: images
@printf " FLASH $(BINARY).bin\n"
@# IMPORTANT: Don't use "resume", only "reset" will work correctly!
$(Q)$(OPENOCD) -f interface/jtagkey-tiny.cfg \
-f board/olimex_stm32_h103.cfg \
-c "init" -c "reset halt" \
-c "flash write_image erase $(BINARY).bin 0x08000000" \
-c "reset" \
-c "shutdown"
-c "shutdown" $(NULL)
.PHONY: images clean

Loading…
Cancel
Save