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.
 
 
 
 
 
 

55 lines
1.3 KiB

  1. # imx35 config
  2. #
  3. reset_config trst_and_srst srst_gates_jtag
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME imx35
  8. }
  9. if { [info exists ENDIAN] } {
  10. set _ENDIAN $ENDIAN
  11. } else {
  12. set _ENDIAN little
  13. }
  14. if { [info exists CPUTAPID ] } {
  15. set _CPUTAPID $CPUTAPID
  16. } else {
  17. set _CPUTAPID 0x07b3601d
  18. }
  19. if { [info exists SDMATAPID ] } {
  20. set _SDMATAPID $SDMATAPID
  21. } else {
  22. set _SDMATAPID 0x0882601d
  23. }
  24. if { [info exists ETBTAPID ] } {
  25. set _ETBTAPID $ETBTAPID
  26. } else {
  27. set _ETBTAPID 0x2b900f0f
  28. }
  29. #========================================
  30. jtag newtap $_CHIPNAME etb -irlen 4 -irmask 0xf -expected-id $_ETBTAPID
  31. jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
  32. # No IDCODE for this TAP
  33. jtag newtap $_CHIPNAME whatchacallit -irlen 4 -ircapture 0 -irmask 0x0 -expected-id 0x0
  34. jtag newtap $_CHIPNAME smda -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_SDMATAPID
  35. set _TARGETNAME $_CHIPNAME.cpu
  36. target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
  37. proc power_restore {} { puts "Sensed power restore. No action." }
  38. proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }
  39. # trace setup ... NOTE, "normal full" mode fudges the real ETMv3.1 mode
  40. etm config $_TARGETNAME 16 normal full etb
  41. etb config $_TARGETNAME $_CHIPNAME.etb