1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/makefiles/tools/uf2conv.inc.mk
Francisco Molina a945ea144f makefiles/tools/uf2conv.inc.mk: partial riotboot support
Individual files need to be converted to uf2 format, targets
flashing individual slots or the bootloader will work:

- riotboot/flash-slot%
- riotboot/flash-bootloader

'flash' also works by flashing both the bootloader and slot0
independently.

But not targets flashing combined/extended versions since conversion
of the blob is not possible with the uf2conv.py script.
2022-06-01 11:01:30 +02:00

13 lines
259 B
Makefile

FLASHFILE ?= $(HEXFILE)
IMAGE_OFFSET ?= $(ROM_OFFSET)
FLASHER ?= $(RIOTTOOLS)/uf2/uf2conv.py
FFLAGS ?= $(UF2CONV_FLAGS) $(FLASHFILE) --base $(IMAGE_OFFSET)
PREFLASH_DELAY ?= 2
ifeq ($(RIOTTOOLS)/uf2/uf2conv.py,$(FLASHER))
FLASHDEPS += $(FLASHER)
endif