mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards: Provide debug adapter ID from serial where possible
Set `DEBUG_ADAPTER_ID_IS_TTY_SERIAL` to `1` for those boards to allow automatic detection of the debug adapter with `MOST_RECENT_PORT=1`.
This commit is contained in:
parent
015ee050f2
commit
64d4aec812
@ -11,6 +11,10 @@ include $(RIOTMAKE)/boards/stm32.inc.mk
|
|||||||
# USB serials to only select the UART bridge of embedded STLink debuggers.
|
# USB serials to only select the UART bridge of embedded STLink debuggers.
|
||||||
TTY_BOARD_FILTER := --model 'STM32 STLink'
|
TTY_BOARD_FILTER := --model 'STM32 STLink'
|
||||||
|
|
||||||
|
# The TTY serial also is the ID of the debug adapter, as the TTY is provided by
|
||||||
|
# the debug adapter
|
||||||
|
DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1
|
||||||
|
|
||||||
# variable needed by cpy2remed PROGRAMMER
|
# variable needed by cpy2remed PROGRAMMER
|
||||||
# it contains name of ST-Link removable media
|
# it contains name of ST-Link removable media
|
||||||
|
|
||||||
|
@ -25,5 +25,9 @@ endif
|
|||||||
# the UART bridge to the ESP32-SOLO-1 MCU instead of the FE310 MCU on the board.
|
# the UART bridge to the ESP32-SOLO-1 MCU instead of the FE310 MCU on the board.
|
||||||
TTY_BOARD_FILTER := --model HiFive --iface-num 0
|
TTY_BOARD_FILTER := --model HiFive --iface-num 0
|
||||||
|
|
||||||
|
# The TTY serial also is the ID of the debug adapter, as the TTY is provided by
|
||||||
|
# the debug adapter
|
||||||
|
DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1
|
||||||
|
|
||||||
TESTRUNNER_RESET_DELAY = 1
|
TESTRUNNER_RESET_DELAY = 1
|
||||||
$(call target-export-variables,test,TESTRUNNER_RESET_DELAY)
|
$(call target-export-variables,test,TESTRUNNER_RESET_DELAY)
|
||||||
|
@ -7,6 +7,10 @@ PROGRAMMERS_SUPPORTED += pyocd
|
|||||||
# programmer firmware revisions "fix" that.
|
# programmer firmware revisions "fix" that.
|
||||||
TTY_BOARD_FILTER := --model ".?BBC micro:bit CMSIS-DAP.?"
|
TTY_BOARD_FILTER := --model ".?BBC micro:bit CMSIS-DAP.?"
|
||||||
|
|
||||||
|
# The TTY serial also is the ID of the debug adapter, as the TTY is provided by
|
||||||
|
# the debug adapter
|
||||||
|
DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1
|
||||||
|
|
||||||
# The board is not recognized automatically by pyocd, so the CPU target
|
# The board is not recognized automatically by pyocd, so the CPU target
|
||||||
# option is passed explicitly
|
# option is passed explicitly
|
||||||
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
|
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
|
||||||
|
@ -2,4 +2,8 @@
|
|||||||
# USB serials to only select the UART bridge of integrated J-Link debugger.
|
# USB serials to only select the UART bridge of integrated J-Link debugger.
|
||||||
TTY_BOARD_FILTER := --model J-Link
|
TTY_BOARD_FILTER := --model J-Link
|
||||||
|
|
||||||
|
# The TTY serial also is the ID of the debug adapter, as the TTY is provided by
|
||||||
|
# the debug adapter
|
||||||
|
DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
|
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
|
||||||
|
@ -7,5 +7,9 @@ CFLAGS += \
|
|||||||
QN908X_JLINK ?= $(QN9080DK_JLINK)
|
QN908X_JLINK ?= $(QN9080DK_JLINK)
|
||||||
JLINK_DEVICE ?= QN9080A
|
JLINK_DEVICE ?= QN9080A
|
||||||
|
|
||||||
|
# The TTY serial also is the ID of the debug adapter, as the TTY is provided by
|
||||||
|
# the debug adapter
|
||||||
|
DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1
|
||||||
|
|
||||||
# Include default QN908x board config
|
# Include default QN908x board config
|
||||||
include $(RIOTBOARD)/common/qn908x/Makefile.include
|
include $(RIOTBOARD)/common/qn908x/Makefile.include
|
||||||
|
Loading…
Reference in New Issue
Block a user