Other Parts Discussed in Thread: TMS320F28335
I am trying to profile some code using CCSv6.1.2 on a Macintosh. I tried both within CCS and using DSS and neither approach seems to work.
I am using a TMS320F28335 processor and an XDS2xx USB debug probe.
I first tried the approach outline here: http://processors.wiki.ti.com/index.php/Profiler.
When I go to Menu Tools->Profile->Setup Profile Data Collection nothing happens -- no dialog appears.
Next I tried the DSS approach described here: http://processors.wiki.ti.com/index.php/Profiling_with_DSS
I run the command
// retrieve an activity from the activity list based on the name
myProfileActivity = debugSession.profileSetup.getActivity("Profile all Functions for Total Cycles");
but it returns null.
The above code was run after loading the .ccxml file and connecting to the target. (Other DSS activities work such as setting breakpoints and running the code and creating a log)
Next, I tried to print the Activities supported by my target with the profileSetup.printActivityList() API. It printed a nicely formatted but empty list of activities.
I am able to use the Clock functions in the Run menu to count the CPU Cycles between two breakpoints, however, this is difficult to do for lots of code. Is there a way to profile the code to see what sections are using the most CPU Cycles?
Regards