make: add commands to run openocd with appropriate settings

This commit is contained in:
S.J.R. van Schaik 2017-08-01 15:08:51 +02:00
parent a5175b3e54
commit 736d7d74a0
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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