2020-07-26 16:21:54 +02:00
|
|
|
# This board uses the vendor's serial bootloader
|
|
|
|
|
|
|
|
PROGRAMMER ?= uf2conv
|
|
|
|
|
2021-02-18 18:01:06 +01:00
|
|
|
UF2CONV_FLAGS = -f 0xADA52840
|
2020-07-26 16:21:54 +02:00
|
|
|
ifeq (uf2conv,$(PROGRAMMER))
|
|
|
|
|
|
|
|
# Using uf2conv implies using the UF2 bootloader
|
|
|
|
#
|
|
|
|
# It has a static MBR at the first 4k, and a 48k UF2 Bootloader at
|
|
|
|
# the end, leaving 972k for the application. This overwrites any SoftDevice,
|
|
|
|
# but that's what the minimal working example for the dongle does as well.
|
|
|
|
ROM_OFFSET = 0x1000
|
|
|
|
ROM_LEN = 0xf3000
|
|
|
|
|
|
|
|
include $(RIOTMAKE)/tools/usb_board_reset.mk
|
|
|
|
endif
|
|
|
|
|
2021-02-11 14:59:43 +01:00
|
|
|
PROGRAMMERS_SUPPORTED += uf2conv
|
|
|
|
|
2020-07-26 16:21:54 +02:00
|
|
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|