You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.1 KiB

  1. #use combined on interfaces or targets that can't set TRST/SRST separately
  2. reset_config trst_and_srst
  3. if { [info exists CHIPNAME] } {
  4. set _CHIPNAME $CHIPNAME
  5. } else {
  6. set _CHIPNAME imx27
  7. }
  8. if { [info exists ENDIAN] } {
  9. set _ENDIAN $ENDIAN
  10. } else {
  11. set _ENDIAN little
  12. }
  13. # Note above there are 2 taps
  14. # The bs tap
  15. if { [info exists BSTAPID ] } {
  16. set _BSTAPID $BSTAPID
  17. } else {
  18. set _BSTAPID 0x1b900f0f
  19. }
  20. jtag newtap $_CHIPNAME bs -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_BSTAPID
  21. # The CPU tap
  22. if { [info exists CPUTAPID ] } {
  23. set _CPUTAPID $CPUTAPID
  24. } else {
  25. set _CPUTAPID 0x07926121
  26. }
  27. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  28. # Create the GDB Target.
  29. set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
  30. target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
  31. $_TARGETNAME configure -work-area-virt 0xffff4c00 -work-area-phys 0xffff4c00 -work-area-size 0x8000 -work-area-backup 1
  32. # Internal to the chip, there is 45K of SRAM
  33. #
  34. arm7_9 dcc_downloads enable