Also always use the usb id in make flash like Companion does

On my mac the internal usb keyboard also registers as DFU device, making make flash quit with an error that multiple DFU devices are detected
This commit is contained in:
Arne Schwabe
2016-05-23 18:05:57 +02:00
parent 4765984900
commit 957bc11135
+1 -1
View File
@@ -1071,7 +1071,7 @@ endif()
if(CPU_FAMILY STREQUAL STM32)
add_custom_target(flash
COMMAND dfu-util --alt 0 --dfuse-address 0x08000000 -D firmware.bin
COMMAND dfu-util --alt 0 --dfuse-address 0x08000000 -d 0483:df11 -D firmware.bin
DEPENDS firmware
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)