# Renesas R-Car Spider S4 Cortex-R52 Board Config source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg] source [find target/renesas_rcar_reset_common.cfg] set _CHIPNAME r8a779f0 set _CORE_NAME r52 set _TARGETNAME $_CHIPNAME.$_CORE_NAME set _CTINAME $_TARGETNAME.cti set _DAPNAME $_CHIPNAME.dap set DAP_TAPID 0x5ba00477 set CR52_DBGBASE 0x80c10000 set CR52_CTIBASE 0x80c20000 adapter srst delay 1000 adapter speed 20000 global $_CHIPNAME transport select jtag jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f -expected-id $DAP_TAPID dap create $_DAPNAME -chain-position $_CHIPNAME.cpu cti create $_CTINAME -dap $_DAPNAME -ap-num 1 -baseaddr $CR52_CTIBASE target create $_TARGETNAME armv8r -dap $_DAPNAME -ap-num 1 -dbgbase $CR52_DBGBASE -cti $_CTINAME $_TARGETNAME configure -rtos auto