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: AM335X XDX560v2

Tool/software: Code Composer Studio

My question is: I work with AM335X and I need profile my code. I lock at XDS560v2 System Trace USB Debug Probe. In description I see that it supports "Core and System Trace in all ARM and DSP processors that feature an Embedded Trace Buffer (ETB)" and in SPRUHM7B I see that for example "Function Profiling" or "Code coverage" perform Standard Trace using the CPU Trace type (also called PC Trace).

Does the "Core Trace" in description of XDS560v2 System Trace USB Debug Probe and the "CPU Trace type" in SPRUHM7B the same and I can use XDS560v2 System Trace USB Debug Probe?

Or I have to use only XDS560v2 Pro Trace (which is significantly expensive relate  XDS560v2 System Trace USB Debug Probe)

On the page 42 first line I can use receiver ETB or Pro Trace, if I will use XDS560v2 System Trace USB Debug Probe will I have to choose ETB and use whole XDS560v2 System Trace USB Debug Probe memory (128Mb)?

  • Hi,

    The best code profiling is done with a vast amount of Trace buffer - something the ETB is quite limited (if I recall correctly the Cortex A8 has 16kB).

    Also, specifically for the AM335x, the device itself does not feature the additional Trace pins necessary to perform a full core trace using the XDS ProTrace. In this case, the ETB is your only alternative.

    Sergei Petrov said:
    Does the "Core Trace" in description of XDS560v2 System Trace USB Debug Probe and the "CPU Trace type" in SPRUHM7B the same and I can use XDS560v2 System Trace USB Debug Probe?

    Yes, they refer to the same thing and you can use the XDS560v2 Debug Probe. Please read on. 

    Sergei Petrov said:
    On the page 42 first line I can use receiver ETB or Pro Trace, if I will use XDS560v2 System Trace USB Debug Probe will I have to choose ETB and use whole XDS560v2 System Trace USB Debug Probe memory (128Mb)?

    Due to the device limitations, the XDS560v2 does not bring any Core Trace advantage when compared to lower cost options such as the XDS110 or the XDS200 (it is faster than the two in plain JTAG debugging - check the benchmarks).

    The internal buffer of the XDS560v2 only stores System Trace information, which is a different type of trace. 

    If you want to learn more about the types of trace, check the short Trace webinar below. 

    https://youtu.be/G3noymHTvGI 

    Hope this helps,

    Rafael

  • So, if I clearly understood you, for methods of profiling like "Function Profiling" or "Code coverage" which are based on "Core Trace" all devices XDS560v2 will be useless for me? In this case, is there a tricks, how can I do this methods of profiling? May be there is a possibility to improve ETB buffer, for example?

    If I will use XDS560v2 System Trace USB Debug Probe could I use whole possibility of this device for System Trace for my AM335X?

  • In this:

    Also, specifically for the AM335x, the device itself does not feature the additional Trace pins necessary to perform a full core trace using the XDS ProTrace. In this case, the ETB is your only alternative.

    you told full (highlighted red). Does it mean, some methods of profiling I can do with XDS560v2 Pro Trace?

  • Hi,

    Sergei Petrov said:
    So, if I clearly understood you, for methods of profiling like "Function Profiling" or "Code coverage" which are based on "Core Trace" all devices XDS560v2 will be useless for me? In this case, is there a tricks, how can I do this methods of profiling? May be there is a possibility to improve ETB buffer, for example?

    The only way I know to make better usage of ETB is to use "fences" to limit the amount of data captured by the Trace interface. In other words, you only add specific address ranges to monitor execution, as I mention in this post. Unfortunately this somewhat defeats the purpose of Trace jobs like Code Coverage, which by definition implies the entire code should be monitored. 

    Sergei Petrov said:
    If I will use XDS560v2 System Trace USB Debug Probe could I use whole possibility of this device for System Trace for my AM335X?

    Yes, but system trace does not perform Code Coverage but instead takes statistics (traffic, data, bandwidth) from some of the system peripherals. 

    Sergei Petrov said:
    you told full (highlighted red). Does it mean, some methods of profiling I can do with XDS560v2 Pro Trace?

    Sorry, this is a language vice. What I meant is to have a pin core trace - i.e., Trace exported to the external Debug Probe (XDS ProTrace in this case). 

    Regards,

    Rafael