ti-cjtag.cfg 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # A start sequence to change from cJTAG to 4-pin JTAG
  3. # This is needed for CC2538 and CC26xx to be able to communicate through JTAG
  4. # Read section 6.3 in http://www.ti.com/lit/pdf/swru319 for more information.
  5. proc ti_cjtag_to_4pin_jtag {jrc} {
  6. # Bypass
  7. runtest 20
  8. irscan $jrc 0x3f -endstate RUN/IDLE
  9. # Two zero bit scans and a one bit drshift
  10. pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE
  11. pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE
  12. pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE
  13. pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE
  14. pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE
  15. pathmove DRPAUSE DREXIT2 DRSHIFT DREXIT1 DRUPDATE RUN/IDLE
  16. pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE
  17. # A two bit drhift and a 9 bit drshift
  18. pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRUPDATE RUN/IDLE
  19. pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE
  20. pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE
  21. pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE
  22. pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE
  23. pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE
  24. pathmove DRPAUSE DREXIT2 DRSHIFT DREXIT1 DRPAUSE
  25. pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE
  26. pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE
  27. # Bypass
  28. irscan $jrc 0x3f -endstate RUN/IDLE
  29. # Set ICEPick IDCODE in data register
  30. irscan $jrc 0x04 -endstate RUN/IDLE
  31. }