mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
1d11a2a281
Fix flashing with `MOST_RECENT_PORT=1` by detecting the board when either in RIOT mode or in bootloader mode (which matches different USB vendor and model strings). Support for programming with the nrf52-u2f bootloader was dropped apparently, but the documentation still recommends that over the Arduino Bootloader. This brings doc and code in sync.
17 lines
816 B
Makefile
17 lines
816 B
Makefile
# Include all definitions for flashing with bossa other USB
|
|
include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.include
|
|
include $(RIOTBOARD)/common/arduino-zero/Makefile.include
|
|
|
|
# Depending on whether the board is running RIOT or the bootloader, it has
|
|
# registers using a different vendor and model. We try to detect either.
|
|
TTY_BOARD_FILTER := --model $(BOARD) --vendor 'RIOT-os\.org'
|
|
PROG_TTY_BOARD_FILTER := --vendor 'Arduino LLC' --model 'Arduino Zero'
|
|
TTY_SELECT_CMD := $(RIOTTOOLS)/usb-serial/ttys.py \
|
|
--most-recent \
|
|
--format path serial \
|
|
$(TTY_BOARD_FILTER) || \
|
|
$(RIOTTOOLS)/usb-serial/ttys.py \
|
|
--most-recent \
|
|
--format path serial \
|
|
$(PROG_TTY_BOARD_FILTER_CLONE)
|