1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

boards: update boards using DfuSe

Update these boards to make use of a new argument to keep using DfuSe mode of dfu-util
This commit is contained in:
dylad 2020-12-09 11:48:37 +01:00
parent 838aafb621
commit 47f8d69845
5 changed files with 6 additions and 10 deletions

View File

@ -5,23 +5,17 @@ ifeq (dfu-util,$(PROGRAMMER))
# For older versions of the DFU bootloader, set DFU_USB_ID to 1d50:6017
DFU_USB_ID ?= 1eaf:0003
DFU_ALT ?= 2
DFU_USE_DFUSE = 1
# Leave some space at the beginning of the flash for the bootloader
ROM_OFFSET ?= 0x2000
# If using STM32duino bootloader, this change is necessary.
# Bootloader available at
# github.com/rogerclarkmelbourne/STM32duino-bootloader/tree/master/binaries
ifeq (stm32duino,$(BOOTLOADER))
FFLAGS_OPTS ?= -R
FFLAGS ?= --device $(DFU_USB_ID) \
--alt $(DFU_ALT) \
--download $(FLASHFILE) \
$(FFLAGS_OPTS)
# Flashing may be easier if using a software USB reset.
# Future updates may provide USB support for stm32f1 which benefits
# from this software reset.
FFLAGS_OPTS += --reset
endif
else ifeq (openocd,$(PROGRAMMER))

View File

@ -4,7 +4,7 @@ INCLUDES += -I$(RIOTBOARD)/common/weact-f4x1cx/include
# default to flashing over USB
PROGRAMMER ?= dfu-util
DFU_USB_ID ?= 0483:df11
DFU_FLAGS ?= -a 0 -s 0x08000000:leave
DFU_USE_DFUSE = 1
ROM_OFFSET ?= 0x0
# CDC ACM is available faster on STM32

View File

@ -8,3 +8,4 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# this board is flashed using DFU
PROGRAMMER ?= dfu-util
DFU_USB_ID = 0483:df11
DFU_USE_DFUSE = 1

View File

@ -8,4 +8,4 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# this board is flashed using DFU
PROGRAMMER ?= dfu-util
DFU_USB_ID = 1d50:607f
FFLAGS_OPTS = --reset
DFU_USE_DFUSE = 1

View File

@ -11,3 +11,4 @@ ROM_OFFSET ?= 0x5000
# this board is flashed using DFU
PROGRAMMER ?= dfu-util
DFU_USB_ID = 1d50:607f
DFU_USE_DFUSE = 1