mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 00:29:46 +01:00
makefiles/boards/stm32: fix DFU_USB_ID handling
The variable `DFU_USB_ID` is used by `dfu-util` to specify the device to be flashed. The STM32 make system prevents `dfu-util` from being used as programmer if this variable is not set, although `dfu-util.mk` generates a default value for this variable from the `USB_VID` and `USB_PID` variables if necessary. Therefore, checking the `DFU_USB_ID` variable is removed here. If a board requires a specific combination of VID/PID for `dfu_util`, it is responsible for setting the `DFU_USB_ID` variable.
This commit is contained in:
parent
738e0c8318
commit
9d2d9db73e
@ -18,17 +18,6 @@ OPENOCD_DEBUG_ADAPTER ?= stlink
|
||||
|
||||
JLINK_DEVICE ?= $(CPU_MODEL)
|
||||
|
||||
ifeq (dfu-util,$(PROGRAMMER))
|
||||
# optionally, use dfu-util to flash via usb
|
||||
# note: needs a bootloader flashed before, config below is compatible
|
||||
# with blackmagic_dfu, see https://github.com/blacksphere/blackmagic/
|
||||
# To stop bootloader from loading an existing firmware, pull down
|
||||
# (ground) GPIO B1.
|
||||
ifeq (,$(DFU_USB_ID))
|
||||
$(error DFU_USB_ID is not set)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (stm32flash,$(PROGRAMMER))
|
||||
ROM_OFFSET ?= 0x0
|
||||
FLASHER = stm32flash
|
||||
|
Loading…
Reference in New Issue
Block a user