I would like to profile code and functions for a f2803x using CCSV4.x. I launch the Pofile option undertools, but when I push the Activate button, nothing happens. Is there a link on how to set this up?
Tom
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.
I would like to profile code and functions for a f2803x using CCSV4.x. I launch the Pofile option undertools, but when I push the Activate button, nothing happens. Is there a link on how to set this up?
Tom
Hi Tom,
The follow Wiki link for CCSv4 details the steps to use the Profiler feature:
http://processors.wiki.ti.com/index.php/Profiler
Let us know if you have further trouble.
Thanks,
Patrick
I am on a live target, this describes profiling via the simulator? Is that my only option, the simulator? My code won't execute properly in the simulator.
I found this link:
http://processors.wiki.ti.com/index.php/C2000_Getting_Started_with_Code_Composer_Studio_v4
Problem is, I still don't see any information! Can TI RESPOND TO THIS PLEASE!!!
Tom,
I apologize for the delay. I am getting you an answer. Please hang tight.
Patrick
Tom,
By default the profiler is not enabled for C28x. If you are profiling in RAM, then it may be useful - please see this thread and wiki page describes how to enable it (towards the bottom.
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/3445.aspx
If you are profiling in flash, then other methods will be more useful due to the limited breakpoints available.
When in the debug perspective go to Target -> Clock. This will add a clock icon and count to the status bar.
Another option customers like to use is to start a CPU timer counting at the SYSCLKOUT frequency.
Another option is to use a GPIO pin:
I'll see that the profile wiki page is updated with this information.
Regards
Lori
Tom,
I've collected the information on this wiki page and added some screen shots. I've added a pointer from the previously mentioned wiki page to this one.
http://processors.wiki.ti.com/index.php/Profiling_on_C28x_Targets
Please feel free to add to the page if you like.
Regards
Lori
Thanks Lori,
I was hoping to use the CCSV4 to simplify this, as the GPIO method is tedious. Can you comment on the use of SYS BIOS and it's profiling capabilites? Does it do a better job?
Thanks.
Tom --
SYS/BIOS provides 'Timestamp_get32()' API that can be used to benchmark code. But, you need to modify your target code to include these APIs.
in your app.cfg:
Timestamp = xdc.useModule('xdc.runtime.Timestamp');
in your app.c file:
#include <xdc/runtime/Timestamp.h>
UInt32 t0, t1;
t0 = Timestamp_get32();
algo();
t1 = Timestamp_get32();
time = t1 - t0;
You can use Timestamp_getFreq() to get the frequency of the Timestamp counter. On 28x, we use a timer which increments at CPU frequency, I think.
Regards,
-Karl-