mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-28 06:02:52 +08:00
cmake: flash-target: use :leave instead of USB reset
Even the dfu-util on Ubuntu 20.04 supports ":leave". Use it during flashing.
This commit is contained in:
parent
56e062269f
commit
4ebdff3af0
@ -119,12 +119,12 @@ function(dfu_flash target)
|
||||
)
|
||||
|
||||
add_custom_target(flash-${target}
|
||||
dfu-util -a 0 -R -s 0x08000000 -D ${target}.dfu
|
||||
dfu-util -a 0 -s 0x08000000:leave -D ${target}.dfu
|
||||
DEPENDS ${target}.dfu
|
||||
)
|
||||
else()
|
||||
add_custom_target(flash-${target}
|
||||
dfu-util -d 1d50:606f -a 0 -R -s 0x08000000 -D ${target}.bin
|
||||
dfu-util -d 1d50:606f -a 0 -s 0x08000000:leave -D ${target}.bin
|
||||
DEPENDS ${target}.bin
|
||||
)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user