Open dolphin22 opened 2 months ago
#
#
#
transport select swd
if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME gd32vf103 }
if { [info exists WORKAREASIZE] } { set _WORKAREASIZE $WORKAREASIZE } else { set _WORKAREASIZE 0x800 }
swj_newdap $_CHIPNAME cpu -irlen 5 -expected-id 0x1000563d
set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME riscv -chain-position $_TARGETNAME
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
Thanks, but I guess GD32VF103 is RISC-V and GD32F103 is Cortex M3
Can you please share your cfg file for openocd. I used stm32f1x.cfg on GD32F103C8 but unsuccess. Also, gd32f103.dap 0x4 0x00 can the command be replaced with stm32f1x.dap 0x4 0x0?