raspberrypi3.cfg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -enable
  20. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  21. proc bcm2837_create_core {_CHIPNAME corenum corebase ctibase} {
  22. set _TARGETNAME $_CHIPNAME.cpu.$corenum
  23. cti create $_CHIPNAME.cti.$corenum -dap $_CHIPNAME.dap -ctibase $ctibase
  24. target create $_TARGETNAME aarch64 -dap $_CHIPNAME.dap -coreid $corenum -dbgbase $corebase -rtos hwthread -cti $_CHIPNAME.cti.$corenum
  25. $_TARGETNAME configure -event reset-assert-post "aarch64 dbginit"
  26. $_TARGETNAME configure -event gdb-attach { halt }
  27. }
  28. bcm2837_create_core $_CHIPNAME 0 0x80010000 0x80018000
  29. bcm2837_create_core $_CHIPNAME 1 0x80012000 0x80019000
  30. bcm2837_create_core $_CHIPNAME 2 0x80014000 0x8001A000
  31. bcm2837_create_core $_CHIPNAME 3 0x80016000 0x8001B000
  32. target smp $_CHIPNAME.cpu.0 $_CHIPNAME.cpu.1 $_CHIPNAME.cpu.2 $_CHIPNAME.cpu.3