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.

Programming and Debugging Tiva Using SWD

Other Parts Discussed in Thread: TM4C123AE6PM, SEGGER

Hi,

I am using a custom circuit board with a Tiva Tm4C123AE6PM. I have a 6 pin interface from a Tag Connect TC2030CTX cable that has to be used for debugging and programming. (http://www.tag-connect.com/TC2030-CTX)

As it happens, there is no TDI on the 6 pin interface, which is why I assume that I have to use the "SWD" for programming and debugging.

Here's the connector snapshot.


I am using a blackhawk XDS100v2 for programming and CCS for development. Whenever I try to program the controller using the debug option in CCS, I get error 1265.

"CS_DAP_0: Error connecting to the target: (Error -1265 @ 0x0) Device ID is not recognized or is not supported by driver. Confirm device and emulator configuration is correct, or update device driver. (Emulation package 0.0.0.0)"

As I understand, this error is received when the JTAG debugger is not communicating properly with the controller.

I do not know how do I use the SWD interface for program and debug? Can someone guide me on that?

Regards,

Makarand

  • Hello Makarand,

    I read the posts as two posts

    TC2030CTX and XDS100v2: Please clarify which one you are using with CCS and what the other is one doing.

    My understanding so far is that you have the receptacle for the TC2030CTX to which you are connecting XDS100v2. If that is correct then please specify which XDS100v2 model it is as there are two connector types: TI20 and ARM20 pin connectors. Also how are you wiring the XDS100v2 to the TC2030CTX and are you expecting XDS100v2 to be in SWD mode (which is not possible).

    Regards
    Amit
  • Hi Amit,

    I am using the blackhawk XDS100v2, the one that comes with a 10 pin and 20 pin connector both. I am using the 10 pin connector on the debugger which is directly compatible with the 10 pin on the Tag connect cable. I think that the 10 pin connector is standard ARM.

    Connections are like so:

    XDS100 -> PC via USB

    Tag-Connect TC2030CTX -> XDS100 via 10 pin ARM connector

    Other end of tag connect (6 legs) -> Target board with TM4C123AE6PM.

    I have the TCK, TMS, TDO, RESET, VCC and GND pins connected to the debugger.

    I understand that the XDS100 cannot be used with SWD. Since that is the case, what setup (IDE + Debugger) can be used for the same? I have developed my application in CCS.

    Regards,

    Makarand

  • Hello Makarand,

    The TagConnect is meant for 10-pin ARM connectors which have SWD support and not for native JTAG (or at least that is what the datasheet suggest). Please check with the manufacturer.

    Do you have the 4 JTAG pins of TCK, TMS, TDI, TDO and support pins of VCC, GND and RST on the board? If yes, then you would need to bluewire it to the XDS100 header.

    Regards
    Amit
  • Hi Amit

    "Do you have the 4 JTAG pins of TCK, TMS, TDI, TDO and support pins of VCC, GND and RST on the board? If yes, then you would need to bluewire it to the XDS100 header."

    Yes, I am using it that way right now.

    Can you suggest me what I can use for programming the device over SWD?

    Regards, 

    Makarand

  • Hello Makarand,

    You would need a emulator with SWD support. Of course the IDE would need to change. Keil uVision with Keil Programmer, IAR with Segger J-Link Pro. However since your code base is in CCS, I believe you would have to use the 4-pin mode of JTAG.

    Regards
    Amit
  • Hi Amit, 

    Thanks for your support. 

    I had read in a few posts on the forum that CCS v6 supports programming via SWD. Can you please put some light on this? Like, whether it does support, whether any other debugger might be required?

    Regards, 

    Makarand

  • Hello Makarand,

    Can you please point me to those posts?

    Regards
    Amit