Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Specify the Physical interface in use
- adapter driver jlink
- adapter speed 1000
- transport select jtag
- reset_config trst_and_srst
- # This is using the name on the SoC
- if { [info exists CHIPNAME] } {
- set _CHIPNAME $CHIPNAME
- } else {
- set _CHIPNAME mdm9215
- }
- # This is the TAP ID that we discovered in the previous step
- if { [info exists CPUTAPID] } {
- set _CPUTAPID $CPUTAPID
- } else {
- set _CPUTAPID 0x4ba00477
- }
- # Here we create the JTAG TAP/DAP, defining the location and characteristics of our DAP
- # swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID -ignore-syspwrupack
- jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id 0x4ba00477
- jtag newtap auto0 tap -irlen 11 -expected-id 0x707400e1
- dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu -ignore-syspwrupack
- set _TARGETNAME $_CHIPNAME.cpu
- target create $_CHIPNAME.cpu cortex_a -dap $_CHIPNAME.dap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement