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.
 
 
 
 
 
 

56 lines
1.3 KiB

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