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
This commit is contained in:
Arne Schwabe
2016-06-06 22:22:27 +02:00
committed by Bertrand Songis
parent 0ea133e490
commit 36423db252
+1 -1
View File
@@ -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}
)