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.
 
 
 
 
 
 

35 lines
772 B

  1. #use combined on interfaces or targets that can't set TRST/SRST separately
  2. #
  3. # Hmmm.... should srst_pulls_trst be used here like i.MX27???
  4. reset_config trst_and_srst
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME imx21
  9. }
  10. if { [info exists ENDIAN] } {
  11. set _ENDIAN $ENDIAN
  12. } else {
  13. set _ENDIAN little
  14. }
  15. # Note above there is 1 tap
  16. # The CPU tap
  17. if { [info exists CPUTAPID ] } {
  18. set _CPUTAPID $CPUTAPID
  19. } else {
  20. set _CPUTAPID 0x0792611f
  21. }
  22. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  23. # Create the GDB Target.
  24. set _TARGETNAME $_CHIPNAME.cpu
  25. target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
  26. arm7_9 dcc_downloads enable