1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/weact-g030f6/Makefile.include
Marian Buschsieweke 5a02899457
boards/weact-g030f6: fix use with stdio_rtt
Running

    USEMODULE=stdio_rtt make BOARD=weact-g030f6 -C ... flash term

failed due the programmer not being specified by the time the serial
is configured:

    makefiles/tools/serial.inc.mk:44: "Warning: No RIOT_TERMINAL set,
    but using stdio_rtt: The default terminal is likely not to work."

This reorders the setup of the board to first configure the programmer
and then the serial, so that using stdio_rtt now works out of the box.
2024-08-04 10:28:41 +02:00

14 lines
412 B
Makefile

# we use shared STM32 configuration snippets
INCLUDES += -I$(RIOTBASE)/boards/common/stm32/include
# setup programmer
PROGRAMMERS_SUPPORTED += openocd
PROGRAMMER ?= openocd
OPENOCD_DEBUG_ADAPTER ?= stlink
include $(RIOTMAKE)/tools/openocd.inc.mk
# setup serial terminal
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
include $(RIOTMAKE)/tools/serial.inc.mk