This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-XDS110ET: Are XDS_GPIO1-3 required when replicating CC2340R5 launchpad's P3?

Part Number: LP-XDS110ET
Other Parts Discussed in Thread: CC2340R5, LP-EM-CC2340R5, , TMDSEMU110-U, LP-XDS110

Tool/software:

Hello! 

I am a fan the debugger interface. I like being able to step line by line through CCS using the XDS110. 

For convenience, this is the CC2340R5's pinout which interfaces with the XDS110: 

Here is the same connector from XDS110's side:

These appear to be solely for SPI which I don't think is needed to step line by line through CCS. I want to make your lives easier, attached are schematics for both:

Appreciate your past and future wisdom and help! 

7266.LP-XDS110ET_SCH.pdfMCU108A_LP-EM-CC2340R5_SCH.pdf

  • I also had fed AI LLM overlords some data about connections and fed them datasheets and here's what they thought. This matches my human understanding as well:

    What you actually need (for SWD debug)

    P3 Net (your schematic) Purpose Required for debug? Notes
    WMCU_VDD Target VTREF / level reference Yes Tie to your target’s VDDS (same rail used by CC2340R5 I/Os). The XDS110-ET on LP uses fixed 3.3 V I/O; if your target runs at ~1.8 V, use level shifting.
    WMCU_SWDIO SWD data Yes Route short/clean.
    WMCU_SWDCK SWD clock Yes Same return path as SWDIO.
    WMCU_RESET nRESET to MCU Yes Required for reliable attach/run-control.
    GND (several pins) Return Yes Bring at least one solid ground next to the SWD lines; more grounds are fine.

    Nice-to-have (for back-channel UART / power / ID)

    P3 Net (your schematic) Purpose Required? Notes
    WMCU_TXD, WMCU_RXD Virtual COM port No Only if you want UART logging through the XDS110.
    5V0_BP 5 V from the LaunchPad No Don’t power your target from this unless you intend to.
    XDS_BoardID_SCL, XDS_BoardID_SDA Board-ID EEPROM I²C No Used by TI LaunchPads; safe to omit on a custom target.

    Not needed for CC2340R5 debug

    P3 Net (your schematic) Purpose Keep?
    XDS_GPIO1, XDS_GPIO2, XDS_GPIO3 General-purpose GPIO from XDS110-ET No
  • Hi Cameron,

    On the LP-EM-CC2340R5 the XDS_GPIO1, XDS_GPIO2, and XDS_GPIO3 pins are DNM by default, so they are not required for regular operation of the LP-XDS110ET with this design.

    From the LP-EM-CC2340R5 schematic:

    Regards,
    Zack

  • Hi ZC,

    If I want to utilize GPIO1/2/3 for testing purposes from host PC then how to control them?

    Can I use dgbjtag to control them?

    If I design a C program in PC, is there any function call within the libraries fromCCS package can be used to control these GPIO pins?

    Robert.

  • Hi Robert,

    I've looped in a SW colleague to help with this.

    Regards,

    Zack

  • Hi Robert,

    Yes, you can use dbgjtag as described in this document (page 24): https://www.ti.com/lit/ug/sprui94/sprui94.pdf

    • I've tested it with TMDSEMU110-U Debug probe and works. By following the Errata (Section 3.7.1), you would need to connect TGTVDD sense to VCC. I also wired together GPIO0 to GPIO2 to read the value back.
      # Turn on power
      dbgjtag -f @xds110 -Y power, supply=on, voltage=3.3
      
      # Set GPIO0 and  GPIO01 as outputs,  GPIO2 and  GPIO3 as inputs
      # Set GPIO0 high
      dbgjtag -f @xds110 -Y gpiopins, config=0x3, write=0x3, mask=0x1
      
      # Read 
      dbgjtag -f @xds110 -Y gpiopins, read=yes
      0x05 # ->  b0101 GPIO0 and GPIO2 high
    • I've also tested the also the LP-XDS110 Development kit, however this one doesn't work. I believe the GPIO access has been disabled for the LaunchPad edition. I will check if we still support this and come back to you.

    Best,

    Daniel

  • Hi Daniel,

    Thanks for the confirmation. I have both TMDSEMU110-U Debug Probe and LP-XDS110ET. The TMDSEMU110-U is old and unstable so that now I use LP-XDS110 for most projects. Another benefit of LP-XDS110ET is it uses USB-C interface and I only have USB-C ports on my MacBook Pro.

    Hope that the GPIO pins of LP-XDS110ET can be used. It is important for me to implement auto-testing functions.

    Robert.

  • Hi Robert,

    I still don't have an answer. It seems that the LP-XDS110 goes into different modes depending on which target is connected to (this is not the case for TMDSEMU110-U). I have tried several Launchpads but the result is always the same.

    I have an open ticket with the corresponding team, and I'll get back to you once I know more.

    Best,

    Daniel

  • Hi Daniel,

    Thanks a lot for your great support!

    Robert.