Skip to content

Commit 59891a5

Browse files
DFU support: add STM32CUBE DFU
1 parent 43ca1e2 commit 59891a5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

targets/upload_method_cfg/ARDUINO_GIGA_CM7.cmake

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,17 @@ set(STM32CUBE_GDBSERVER_ARGS --swd --initialize-reset --apid 0)
4949
# -------------------------------------------------------------
5050

5151
set(STLINK_UPLOAD_ENABLED TRUE)
52-
set(STLINK_LOAD_ADDRESS 0x8000000)
5352
set(STLINK_ARGS --connect-under-reset)
53+
54+
# Config options for dfu-util
55+
# -------------------------------------------------------------
56+
57+
set(DFU_UTIL_UPLOAD_ENABLED TRUE)
58+
set(DFU_UTIL_TARGET_VID_PID 0483:df11) # STM32 USB ROM bootloader
59+
set(DFU_UTIL_TARGET_INTERFACE 0)
60+
61+
# Config options for STM32CUBE_DFU
62+
# -------------------------------------------------------------
63+
64+
set(STM32CUBE_DFU_UPLOAD_ENABLED TRUE)
65+
set(STM32CUBE_DFU_CONNECT_COMMAND port=USB vid=0x0483 pid=0xdf11) # STM32 USB ROM bootloader

0 commit comments

Comments
 (0)