2 # Renesas Synergy S7 G2 w/ ARM Cortex-M4 @ 240 MHz
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 if { [info exists CPU_JTAG_TAPID] } {
12 set _CPU_JTAG_TAPID $CPU_JTAG_TAPID
14 set _CPU_JTAG_TAPID 0x5ba00477
17 if { [info exists CPU_SWD_TAPID] } {
18 set _CPU_SWD_TAPID $CPU_SWD_TAPID
20 set _CPU_SWD_TAPID 0x5ba02477
23 source [find target/swj-dp.tcl]
26 set _CPU_TAPID $_CPU_JTAG_TAPID
28 set _CPU_TAPID $_CPU_SWD_TAPID
31 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
32 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
34 set _TARGETNAME $_CHIPNAME.cpu
35 target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
37 if { [info exists WORKAREASIZE] } {
38 set _WORKAREASIZE $WORKAREASIZE
41 set _WORKAREASIZE 0xa0000
44 $_TARGETNAME configure -work-area-phys 0x1ffe0000 \
45 -work-area-size $_WORKAREASIZE -work-area-backup 0
48 cortex_m reset_config sysresetreq