raspberrypi3_single.cfg 932 B

12345678910111213141516171819202122232425262728293031323334
  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 bcm2837
  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 dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -enable
  20. proc bcm2837_create_core {_CHIPNAME corenum corebase ctibase} {
  21. set _TARGETNAME $_CHIPNAME.cpu.$corenum
  22. target create $_TARGETNAME aarch64 -chain-position $_CHIPNAME.dap -coreid $corenum -dbgbase $corebase -ctibase $ctibase
  23. $_TARGETNAME configure -event reset-assert-post "aarch64 dbginit"
  24. $_TARGETNAME configure -event gdb-attach { halt }
  25. }
  26. bcm2837_create_core $_CHIPNAME 0 0x80010000 0x80018000