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:
Marc Kleine-Budde 2024-06-05 15:15:13 +02:00
parent 56e062269f
commit 4ebdff3af0

View File

@ -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()