Advertisement
Guest User

OpenOCD Example Config File

a guest
Nov 1st, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. # Specify the Physical interface in use
  2. adapter driver jlink
  3. adapter speed 1000
  4. transport select jtag
  5. reset_config trst_and_srst
  6.  
  7. # This is using the name on the SoC
  8. if { [info exists CHIPNAME] } {
  9. set _CHIPNAME $CHIPNAME
  10. } else {
  11. set _CHIPNAME mdm9215
  12. }
  13.  
  14. # This is the TAP ID that we discovered in the previous step
  15. if { [info exists CPUTAPID] } {
  16. set _CPUTAPID $CPUTAPID
  17. } else {
  18. set _CPUTAPID 0x4ba00477
  19. }
  20. # Here we create the JTAG TAP/DAP, defining the location and characteristics of our DAP
  21. # swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID -ignore-syspwrupack
  22. jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id 0x4ba00477
  23. jtag newtap auto0 tap -irlen 11 -expected-id 0x707400e1
  24. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu -ignore-syspwrupack
  25. set _TARGETNAME $_CHIPNAME.cpu
  26. target create $_CHIPNAME.cpu cortex_a -dap $_CHIPNAME.dap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement