Skip to content
Snippets Groups Projects
Commit d80f18de authored by Lucas Jenss's avatar Lucas Jenss
Browse files

Minor usability improvements for samr21 usage

parent de539fa5
No related branches found
No related tags found
No related merge requests found
......@@ -287,6 +287,9 @@ term: $(filter flash, $(MAKECMDGOALS))
exit 1; }
$(TERMPROG) $(TERMFLAGS)
list-ttys:
$(AD)$(RIOTBASE)/dist/tools/usb-serial/list-ttys.sh
doc:
make -BC $(RIOTBASE) doc
......
......@@ -16,8 +16,12 @@ include $(RIOTBOARD)/Makefile.include.serial
# Use /dist/tools/usb-serial/list-ttys.sh to find out serial number.
# 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))
export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)"
SERIAL_TTY = $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL))
ifeq (,$(SERIAL_TTY))
$(error Did not find a device with serial $(SERIAL))
endif
PORT_LINUX := $(SERIAL_TTY)
endif
# this board uses openocd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment