mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
21 lines
614 B
Makefile
21 lines
614 B
Makefile
|
# we use shared STM32 configuration snippets
|
||
|
INCLUDES += -I$(RIOTBOARD)/common/stm32/include
|
||
|
|
||
|
# set default port depending on operating system
|
||
|
PORT_LINUX ?= /dev/ttyACM0
|
||
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||
|
|
||
|
# setup serial terminal
|
||
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
||
|
|
||
|
# this board has an on-board ST-link adapter
|
||
|
DEBUG_ADAPTER = stlink-dap
|
||
|
OPENOCD_CORE = stm32mp15x.cm4
|
||
|
GDB_PORT_CORE_OFFSET = 1
|
||
|
|
||
|
FFLAGS ?= flashr $(FLASHFILE)
|
||
|
DEBUGGER_FLAGS ?= debugr $(ELFFILE)
|
||
|
|
||
|
# Setup of programmer and serial is shared between STM32 based boards
|
||
|
include $(RIOTMAKE)/boards/stm32.inc.mk
|