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.

CCS/AM5716: Using Hardware Trace Analyzer tools with C66x core and XDS200

Part Number: AM5716
Other Parts Discussed in Thread: SYSBIOS, , AM5728

Tool/software: Code Composer Studio

I'd like to take advantage of the Hardware Trace Analyzer tools built into Code Composer Studio v7.0 (such as Function Profiling) as described in SPRUHM7B. The target I would like to profile is the C66x DSP core on an AM5716 processor. The DSP firmware is built on top of TI SYSBIOS. I have a target configuration in Code Composer Studio with which I can successfully connect to the processor, load programs, and use the debugger. However, when I try to open any of the Hardware Trace Analyzer tools, I receive the following error message:

Error connecting to the target (Error -2131 @0x1)

Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.504.1)

I'm using an XDS200 emulator to connect over JTAG. A little bit of research here on the E2E forums suggested that I might need to set the JTAG / cJTAG / SWD Mode setting of the target configuration to SWD Mode - User COM port is target TDO pin, but after trying that I wasn't able to connect at all:

-----[An error has occurred and this utility has aborted]--------------------

This error is generated by TI's USCIF driver or utilities.

The value is '-615' (0xfffffd99).
The title is 'SC_ERR_SWD_PROTOCOL'.

The explanation is:
The target failed to see a correctly formatted SWD header. The
connection to the target may be unreliable. Try lowering the
TCLK setting before trying again.

[End: Texas Instruments XDS2xx USB Debug Probe_0]

Any ideas about what the problem might be? The documentation regarding setup (and compatibility) for these tools has unfortunately been difficult to find. Is it even possible to run the Hardware Trace Analyzer tools on a C66x core of an AM571x processor using an XDS200? Thanks in advance!

  • Hello,
    Do you get that initial prompt that the debugger needs to initialize the Hardware Trace Analyzer? Or do you get that connection error ASAP?

    In any case, you should be able to use the Hardware Trace Analyzer with your XDS200. It will use the ETB on the C66x as the transport and send the data over JTAG. I was able to use it without issue on the C66x of my DRA74x (similar to an AM5728) using an XDS200. I was using later versions of CCS however (v8.1.0 and v7.3.0). Trace Analyzer had all sorts of issues with early version of CCSv7 so you may want to try out a more recent version of CCS to see if that helps

    Thanks
    ki
  • Hi Ki,

    I receive the connection error immediately after trying to launch a trace configuration from the Hardware Trace Analyzer menu. The configuration dialog does eventually open, but it takes about 10-30 seconds to do so. I will look into trying a newer version of CCS to see if that helps.

    Can you clarify which setting you were using for JTAG / cJTAG / SWD Mode under the target configuration for the XDS200?

    Thanks,
    Domenic
  • Domenic Rodriguez said:
    I will look into trying a newer version of CCS to see if that helps.

    Yes, please try it out. Starting with v7, we had some nasty issues with Trace Analyzer that took a few versions to improve (it still has issues but it is definitely better)

    Domenic Rodriguez said:
    Can you clarify which setting you were using for JTAG / cJTAG / SWD Mode under the target configuration for the XDS200?

    Thanks

    ki

  • After upgrading to CCS 7.4, I am now able to use the Hardware Trace Analyzer. Thank you for your assistance!