make: add commands to run openocd with appropriate settings
This commit is contained in:
parent
a5175b3e54
commit
736d7d74a0
2 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue