raspberrypi2.cfg 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # ref: http://www.raspberrypi.org/forums/viewtopic.php?f=72&t=100268
  2. # : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0464f/ch10s06s01.html
  3. adapter speed 1000
  4. adapter srst delay 400
  5. reset_config none
  6. if { [info exists CHIPNAME] } {
  7. set _CHIPNAME $CHIPNAME
  8. } else {
  9. set _CHIPNAME rpi2
  10. }
  11. #
  12. # Main DAP
  13. #
  14. if { [info exists DAP_TAPID] } {
  15. set _DAP_TAPID $DAP_TAPID
  16. } else {
  17. set _DAP_TAPID 0x4ba00477
  18. }
  19. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0xf -expected-id $_DAP_TAPID
  20. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  21. set _TARGETNAME $_CHIPNAME.cpu.0
  22. target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -coreid 0 -dbgbase 0x80010000
  23. set _TARGETNAME $_CHIPNAME.cpu.1
  24. target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -coreid 1 -dbgbase 0x80012000
  25. set _TARGETNAME $_CHIPNAME.cpu.2
  26. target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -coreid 2 -dbgbase 0x80014000
  27. set _TARGETNAME $_CHIPNAME.cpu.3
  28. target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -coreid 3 -dbgbase 0x80016000
  29. $_TARGETNAME configure -event reset-assert-post "cortex_a dbginit"
  30. $_TARGETNAME configure -event gdb-attach { halt }