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.
 
 
 
 
 
 

33 lines
737 B

  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 imx21
  7. }
  8. if { [info exists ENDIAN] } {
  9. set _ENDIAN $ENDIAN
  10. } else {
  11. set _ENDIAN little
  12. }
  13. # Note above there is 1 tap
  14. # The CPU tap
  15. if { [info exists CPUTAPID ] } {
  16. set _CPUTAPID $CPUTAPID
  17. } else {
  18. set _CPUTAPID 0x0792611f
  19. }
  20. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  21. # Create the GDB Target.
  22. set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
  23. target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
  24. arm7_9 dcc_downloads enable