make: add commands to run openocd with appropriate settings

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent a5175b3e54
commit 736d7d74a0
  1. 3
      scripts/Makefile.stm32f0
  2. 3
      scripts/Makefile.stm32f1

@ -49,4 +49,7 @@ run: $(BUILD)/tbm
flash: $(BUILD)/tbm.bin
stm32flash -g 0x8000000 -w $< $(STM32_PORT)
openocd:
openocd -f /usr/share/openocd/scripts/board/stm32f0discovery.cfg -c 'gdb_port 4242'
.PHONY: run

@ -49,4 +49,7 @@ run: $(BUILD)/tbm
flash: $(BUILD)/tbm.bin
stm32flash -g 0x8000000 -w $< $(STM32_PORT)
openocd:
openocd -f /usr/share/openocd/scripts/interface/jlink.cfg -c 'transport select swd' -f /usr/share/openocd/scripts/target/stm32f1x.cfg -c 'gdb_port 4242'
.PHONY: run

Loading…
Cancel
Save