mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
adding openocd-gdb command to makefile
This commit is contained in:
parent
b13f96d29b
commit
b57c3ea5d8
2 changed files with 27 additions and 0 deletions
18
make/openocd.mk
Normal file
18
make/openocd.mk
Normal file
|
@ -0,0 +1,18 @@
|
|||
OPENOCD ?= openocd
|
||||
OPENOCD_IF ?= interface/stlink-v2.cfg
|
||||
|
||||
ifeq ($(TARGET_MCU),STM32F3)
|
||||
OPENOCD_CFG := target/stm32f3x.cfg
|
||||
|
||||
else ifeq ($(TARGET_MCU),STM32F4)
|
||||
OPENOCD_CFG := target/stm32f34.cfg
|
||||
|
||||
else ifeq ($(TARGET_MCU),STM32F7)
|
||||
OPENOCD_CFG := target/stm32f7x.cfg
|
||||
else
|
||||
endif
|
||||
|
||||
ifneq ($(OPENOCD_CFG),)
|
||||
OPENOCD_COMMAND = $(OPENOCD) -f $(OPENOCD_IF) -f $(OPENOCD_CFG)
|
||||
endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue