generated from hulk/gd32e23x_template_cmake_vscode
- openocd_daplink_gd32e23x.cfg:去掉 connect_assert_srst(该选项导致 DAPLink 下 Cortex-M23 识别失败)
24 lines
795 B
INI
24 lines
795 B
INI
# DAPLink-friendly GD32E23x flash/debug config
|
|
# Difference vs target/openocd_gdlink_gd32e23x.cfg:
|
|
# - no connect_assert_srst (breaks target examination with the current DAPLink)
|
|
adapter driver cmsis-dap
|
|
transport select swd
|
|
|
|
source [find target/swj-dp.tcl]
|
|
source [find mem_helper.tcl]
|
|
|
|
set _CHIPNAME gd32e23x
|
|
swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x0BF11477
|
|
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
|
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
|
target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
|
|
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x1000 -work-area-backup 0
|
|
|
|
flash bank $_CHIPNAME.flash gd32e23x 0x08000000 0 0 0 $_TARGETNAME
|
|
|
|
adapter speed 1000
|
|
reset_config srst_only srst_nogate
|
|
|
|
cortex_m reset_config sysresetreq
|