diff --git a/boards/samr21-xpro/Makefile.include b/boards/samr21-xpro/Makefile.include index 5304652878..e472d36b60 100644 --- a/boards/samr21-xpro/Makefile.include +++ b/boards/samr21-xpro/Makefile.include @@ -17,6 +17,7 @@ include $(RIOTBOARD)/Makefile.include.serial # Usage: SERIAL="ATML..." BOARD="samr21-xpro" make flash ifneq (,$(SERIAL)) export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)" +PORT_LINUX := $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL)) endif # this board uses openocd