Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. # BCM2837 Raspberry Pi 3 Target
  2.  
  3. transport select jtag
  4.  
  5. adapter_khz 10000
  6.  
  7. reset_config trst_and_srst
  8. adapter_nsrst_delay 1500
  9.  
  10. if { [info exists CHIPNAME] } {
  11. set _CHIPNAME $CHIPNAME
  12. } else {
  13. set _CHIPNAME bcm2387
  14. }
  15.  
  16. #
  17. # Main DAP
  18. #
  19. if { [info exists DAP_TAPID] } {
  20. set _DAP_TAPID $DAP_TAPID
  21. } else {
  22. set _DAP_TAPID 0x4ba00477
  23. }
  24.  
  25. jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -enable
  26.  
  27. set _TARGETNAME $_CHIPNAME.cpu
  28.  
  29. target create ${_TARGETNAME}0 aarch64 -chain-position $_CHIPNAME.dap -coreid 0 -dbgbase 0x80010000 -ctibase 0x80018000 -rtos hawt
  30. target create ${_TARGETNAME}1 aarch64 -chain-position $_CHIPNAME.dap -coreid 1 -dbgbase 0x80012000 -ctibase 0x80019000;# -defer-examine
  31. target create ${_TARGETNAME}2 aarch64 -chain-position $_CHIPNAME.dap -coreid 2 -dbgbase 0x80014000 -ctibase 0x8001a000;# -defer-examine
  32. target create ${_TARGETNAME}3 aarch64 -chain-position $_CHIPNAME.dap -coreid 3 -dbgbase 0x80016000 -ctibase 0x8001b000;# -defer-examine
  33.  
  34. ${_TARGETNAME}0 configure -event gdb-attach "halt"
  35.  
  36. target smp ${_TARGETNAME}0 ${_TARGETNAME}1 ${_TARGETNAME}2 ${_TARGETNAME}3
  37.  
  38. targets ${_TARGETNAME}0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement