1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

Merge pull request #20179 from maribu/boards/wemos-zero

boards/wemos-zero: fix flashing and doc
This commit is contained in:
Marian Buschsieweke 2023-12-13 16:13:10 +00:00 committed by GitHub
commit 9514c586f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,16 @@
CFLAGS += -DBOOTLOADER_UF2
# 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)

View File

@ -47,8 +47,7 @@ Metro M0 Express should also work with board definition.
## Flashing the device
Assuming the [UF2 Bootloader](https://github.com/microsoft/uf2-samdx1) is
installed, just run:
Assuming the Arduino Bootloader is installed, just run:
```
make BOARD=wemos-zero flash