Skip to content

Commit 5a02899

Browse files
committed
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.
1 parent 340caa8 commit 5a02899

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
# we use shared STM32 configuration snippets
22
INCLUDES += -I$(RIOTBASE)/boards/common/stm32/include
33

4-
# define the default port depending on the host OS
5-
PORT_LINUX ?= /dev/ttyACM0
6-
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
7-
8-
# setup serial terminal
9-
include $(RIOTMAKE)/tools/serial.inc.mk
10-
4+
# setup programmer
5+
PROGRAMMERS_SUPPORTED += openocd
116
PROGRAMMER ?= openocd
127
OPENOCD_DEBUG_ADAPTER ?= stlink
13-
14-
# openocd programmer is supported
15-
PROGRAMMERS_SUPPORTED += openocd
16-
17-
# this board uses openocd
188
include $(RIOTMAKE)/tools/openocd.inc.mk
9+
10+
# setup serial terminal
11+
PORT_LINUX ?= /dev/ttyACM0
12+
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
13+
include $(RIOTMAKE)/tools/serial.inc.mk

0 commit comments

Comments
 (0)