darkspr1te / sraptor_exploit

7 stars 0 forks source link

Missing gd32f103.cfg #1

Open dolphin22 opened 2 months ago

dolphin22 commented 2 months ago

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?

darkspr1te commented 1 month ago

#

GigaDevice GD32VF103 target

#

https://www.gigadevice.com/products/microcontrollers/gd32/risc-v/

#

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

dolphin22 commented 1 month ago

Thanks, but I guess GD32VF103 is RISC-V and GD32F103 is Cortex M3