zephyr/boards/arm/scobc_module1/support/openocd.cfg

22 lines
562 B
INI

source [find interface/cmsis-dap.cfg]
transport select swd
source [find target/swj-dp.tcl]
adapter speed 5000
set _CHIPNAME cortex_m3
set _ENDIAN little
set _WORKAREASIZE 0x4000
set _CPUTAPID 0x412FC231
swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
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 $_WORKAREASIZE -work-area-backup 0
if {![using_hla]} {
cortex_m reset_config sysresetreq
}