Browse Source

Add 'make flash' target using recent OpenOCD versions.

pull/2/head
Uwe Hermann 16 years ago
parent
commit
e04cec3b5d
  1. 8
      example/Makefile

8
example/Makefile

@ -70,5 +70,13 @@ clean:
@printf " CLEAN $(BINARY).list\n" @printf " CLEAN $(BINARY).list\n"
$(Q)rm -f $(BINARY).list $(Q)rm -f $(BINARY).list
flash:
$(Q)openocd -f /usr/share/openocd/scripts/interface/jtagkey-tiny.cfg \
-f /usr/share/openocd/scripts/board/olimex_stm32_h103.cfg \
-c "init" -c "reset halt" \
-c "flash write_image erase blink.bin 0x08000000" \
-c "resume 0x08000000" \
-c "shutdown"
.PHONY: images clean .PHONY: images clean

Loading…
Cancel
Save