Skip to content
Snippets Groups Projects
Commit ff235803 authored by biboc's avatar biboc
Browse files

Sam0: fix edbg flash with serial number

parent 6df21138
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ include $(RIOTMAKE)/tools/serial.inc.mk ...@@ -10,7 +10,7 @@ include $(RIOTMAKE)/tools/serial.inc.mk
# Usage: SERIAL="ATML..." BOARD=<board> make flash # Usage: SERIAL="ATML..." BOARD=<board> make flash
ifneq (,$(SERIAL)) ifneq (,$(SERIAL))
export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)" export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)"
EDBG_ARGS += "--serial $(SERIAL)" EDBG_ARGS += --serial $(SERIAL)
SERIAL_TTY = $(firstword $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL))) SERIAL_TTY = $(firstword $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL)))
ifeq (,$(SERIAL_TTY)) ifeq (,$(SERIAL_TTY))
$(error Did not find a device with serial $(SERIAL)) $(error Did not find a device with serial $(SERIAL))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment