From 957bc111355bf31ee0ab64e38f59d18d96a01df6 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 23 May 2016 18:05:07 +0200 Subject: [PATCH] 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 --- radio/src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/CMakeLists.txt b/radio/src/CMakeLists.txt index 94f2a1a0c..144ec8b0d 100644 --- a/radio/src/CMakeLists.txt +++ b/radio/src/CMakeLists.txt @@ -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} )