From 36423db252654138c8484aae5e32e44b875576a9 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 6 Jun 2016 22:22:27 +0200 Subject: [PATCH] tell dfu-util to boot the device to boot after flashing (#3571) Only tested on my X9D+. It allows me to boot the device into the OpenTX firmware by using 'make flash' (on switch must be on), combined with -DUSB=SERIAL and -DCLI=YES and the reboot command I can test a new firmware on the device without removing/plugging the usb cable --- 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 1aafe6fd8..0b07607db 100644 --- a/radio/src/CMakeLists.txt +++ b/radio/src/CMakeLists.txt @@ -1083,7 +1083,7 @@ endif() if(CPU_FAMILY STREQUAL STM32) add_custom_target(flash - COMMAND dfu-util --alt 0 --dfuse-address 0x08000000 -d 0483:df11 -D firmware.bin + COMMAND dfu-util --alt 0 --dfuse-address 0x08000000:leave -d 0483:df11 -D firmware.bin DEPENDS firmware WORKING_DIRECTORY ${CMAKE_BINARY_DIR} )