# Segger J-Link debug adapter OPENOCD_ADAPTER_INIT ?= -c 'source [find interface/jlink.cfg]' # default to SWD OPENOCD_TRANSPORT ?= swd # Add serial matching command, only if DEBUG_ADAPTER_ID was specified ifneq (,$(DEBUG_ADAPTER_ID)) OPENOCD_ADAPTER_INIT += -c 'jlink serial $(DEBUG_ADAPTER_ID)' endif