2023-10-02 18:00:54 +08:00
|
|
|
# choose st-link/j-link/dap-link etc.
|
|
|
|
# choose CMSIS-DAP Debugger
|
2024-01-16 19:51:18 +08:00
|
|
|
##adapter driver dap-link
|
2023-10-02 18:00:54 +08:00
|
|
|
# select SWD port
|
2024-01-16 19:51:18 +08:00
|
|
|
##transport select swd
|
2023-10-02 18:00:54 +08:00
|
|
|
|
|
|
|
# 0x10000 = 64K Flash Size
|
|
|
|
# 1MB on robomaster-C
|
2024-01-16 19:51:18 +08:00
|
|
|
##set FLASH_SIZE 0x100000
|
2023-10-02 18:00:54 +08:00
|
|
|
|
2024-01-16 19:51:18 +08:00
|
|
|
##source [find target/stm32f4x.cfg]
|
2023-10-02 18:00:54 +08:00
|
|
|
|
|
|
|
# download speed = 10MHz
|
|
|
|
# 10MHz on FireDebugger
|
2024-01-16 19:51:18 +08:00
|
|
|
##adapter speed 10000
|
2023-10-02 18:00:54 +08:00
|
|
|
|
|
|
|
# connect under reset
|
2024-01-16 19:51:18 +08:00
|
|
|
# reset_config srst_only
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
source [find interface/cmsis-dap.cfg]
|
|
|
|
|
|
|
|
|
|
|
|
transport select swd
|
|
|
|
|
|
|
|
# increase working area to 64KB
|
|
|
|
set WORKAREASIZE 0x10000
|
|
|
|
|
|
|
|
source [find target/stm32f4x.cfg]
|
|
|
|
|
|
|
|
reset_config none
|