Don't use OpenOCD's "resume" command, only "reset" will work correctly.
Also, make the 'flash' target depend on 'images'.
This commit is contained in:
parent
3b6809413b
commit
10890b3f15
@ -71,12 +71,13 @@ clean:
|
|||||||
@printf " CLEAN $(BINARY).list\n"
|
@printf " CLEAN $(BINARY).list\n"
|
||||||
$(Q)rm -f $(BINARY).list
|
$(Q)rm -f $(BINARY).list
|
||||||
|
|
||||||
flash:
|
flash: images
|
||||||
|
@# IMPORTANT: Don't use "resume", only "reset" will work correctly!
|
||||||
$(Q)$(OPENOCD) -f interface/jtagkey-tiny.cfg \
|
$(Q)$(OPENOCD) -f interface/jtagkey-tiny.cfg \
|
||||||
-f board/olimex_stm32_h103.cfg \
|
-f board/olimex_stm32_h103.cfg \
|
||||||
-c "init" -c "reset halt" \
|
-c "init" -c "reset halt" \
|
||||||
-c "flash write_image erase $(BINARY).bin 0x08000000" \
|
-c "flash write_image erase $(BINARY).bin 0x08000000" \
|
||||||
-c "resume 0x08000000" \
|
-c "reset" \
|
||||||
-c "shutdown"
|
-c "shutdown"
|
||||||
|
|
||||||
.PHONY: images clean
|
.PHONY: images clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user