# NXP i.MX6ULL single core processor if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME imx6ull } # CoreSight Debug Access Port if { [info exists DAP_TAPID] } { set _DAP_TAPID $DAP_TAPID } else { set _DAP_TAPID 0x5ba00477 } jtag newtap $_CHIPNAME dapA7 -irlen 4 -ircapture 0x01 -irmask 0x0f -expected-id $_DAP_TAPID jtag newtap $_CHIPNAME sdma -irlen 5 -ircapture 0x0 -irmask 0x0f -expected-id 0x1 jtag newtap $_CHIPNAME sjc -irlen 4 -ircapture 0x0 -irmask 0xf -expected-id 0x088c101d set _TARGETNAME $_CHIPNAME.cpu.0 target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dapA7 -coreid 0 -dbgbase 0x80070000 $_TARGETNAME configure -event reset-start { adapter_khz 3000 } $_TARGETNAME configure -event reset-assert-post "imx6ull_dbginit $_TARGETNAME" $_TARGETNAME configure -event gdb-attach { halt } $_TARGETNAME configure -event "reset-assert" { echo "Reseting ...." cortex_a dbginit } proc imx6ull_dbginit {target} { cortex_a dbginit }