1# Renesas R-Car Spider S4 Cortex-R52 Board Config 2 3source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg] 4source [find target/renesas_rcar_reset_common.cfg] 5 6set _CHIPNAME r8a779f0 7set _CORE_NAME r52 8set _TARGETNAME $_CHIPNAME.$_CORE_NAME 9set _CTINAME $_TARGETNAME.cti 10set _DAPNAME $_CHIPNAME.dap 11set DAP_TAPID 0x5ba00477 12 13set CR52_DBGBASE 0x80c10000 14set CR52_CTIBASE 0x80c20000 15 16adapter srst delay 1000 17adapter speed 20000 18global $_CHIPNAME 19transport select jtag 20 21jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f -expected-id $DAP_TAPID 22dap create $_DAPNAME -chain-position $_CHIPNAME.cpu 23 24cti create $_CTINAME -dap $_DAPNAME -ap-num 1 -baseaddr $CR52_CTIBASE 25target create $_TARGETNAME armv8r -dap $_DAPNAME -ap-num 1 -dbgbase $CR52_DBGBASE -cti $_CTINAME 26 27$_TARGETNAME configure -rtos auto 28