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
1.3 KiB

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