Hello
I need to take some critical code algorihm we want to port to F2837xD.
How can I perform Time profiling of code execution in CPU & CLA in CCS v6, beta 3 (or 4) - on F2837xD?
Thanks
Roni
Running an Application from Internal Flash Memory on the
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.
Hello
I need to take some critical code algorihm we want to port to F2837xD.
How can I perform Time profiling of code execution in CPU & CLA in CCS v6, beta 3 (or 4) - on F2837xD?
Thanks
Roni
Running an Application from Internal Flash Memory on the
Hi Roni,
You can check this link: http://processors.wiki.ti.com/index.php/Profiling_on_C28x_Targets
Regards,
Gautam
Hi Gautam,
I saw this link, but it is a reatively "old" link - I need the info for F2837xD & CCS v6 (beta 3). Also, I will need to perform time profiling not only on each of the Dual-CPU but also on the CLA.
Can you guide me to the information I need?
Thanks
Roni
I will need to perform time profiling not only on each of the Dual-CPU but also on the CLA.
Check this out: http://processors.wiki.ti.com/index.php/Control_Law_Accelerator_%28C2000_CLA%29_Debug_on_CCS_FAQ#Q:_How_can_I_profile_my_CLA_code.3F
Regards,
Gautam
1. Regarding the CLA - I will look into it. On a first look - is the PWM the only option or do I have other ways?
2. My first steps (even before the CLA) are to first time profile stuff on each of the dual-CPUs of F2837xD - using CCSv6 (beta 3) - can you provide me with some info/doc?
Thanks
Roni
Hi Roni,
I can't comment on CLA but for your second question, there is a the profile clock which you can use to count cycles from point A to point B. Perhaps this is what you are looking for?
http://processors.wiki.ti.com/index.php/Profile_clock_in_CCS
Thanks
ki
Hi Ki,
Using CCSv6 - beta 4, working on the F2837x, I've tried following the instructions to use the profile clock.
It seems to be enabled & shown in the right corner of the status bar. I set it to 'cycles' (actually the only option I could choose) and 'Manual'.
BUT:
a. Sometimes I could & sometimes I couldn't set more than one breakpoint (when I execute from FLASH). Why is it inconsistent? When I've failed to set the 2nd breakpoint I got the following error box message:
"Breakpoint Manager - Error enabling this function: This task cannot be accomplished with the existing AET resource"/
b. Even if I execute with one or two breakpoints, I don't see the counter proceed at all, and the clock remain on '0'.
What am I missing to activate it properly? I tried both execution on RAM & FLASH.
c. Are there any other means to time-profile - for example - using the CPU Timer - is is possible? Any example how to do it?
d. What are the differences - advantages/disadvantages between the two methods - profile clock & using CPU timer?
Thanks
Roni
Roni,
There is a related thread. It may have all the answers you seek. Please read the entire thread and let me know if you have any additional questions:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/330128/1151351.aspx
Thanks
ki
Hi Ki,
Well, reading the suggested thread, I saw the advice to use a 'Count Event' through the 'Breakpoint' view.
This seems to be working! :-]
Limitation is that if program is executed fom FLASH, then you can only set one breakpoint and not two,
so it is a little uncomfortable, but still works fine.
(*) I still don't understand - why the option of Profile Clock isn't working?
My additional question now is:
How can I use the alternative way of using CPU Timer? What changes should I do to my project ?- except adding inclusion of file F2837xD_CpuTimers.h - which are the relevant *.c files I should add in oder to use functions like: InitCpuTimers(), StartCpuTimer0(), etc.
Thanks
Roni
Roni Lanzet said:(*) I still don't understand - why the option of Profile Clock isn't working?
The profile clock would use the same AET resource as the Count Event. So if one works, so should the other.
Roni Lanzet said:How can I use the alternative way of using CPU Timer? What changes should I do to my project ?- except adding inclusion of file F2837xD_CpuTimers.h - which are the relevant *.c files I should add in oder to use functions like: InitCpuTimers(), StartCpuTimer0(), etc.
These are questions for the C2000 experts. I would post this question in the C2000 forums where the experts there can help you best.
Thanks
ki