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/TMS320F28379S: Profiling code - run time analisys

Part Number: TMS320F28379S

Tool/software: Code Composer Studio

Dear All

 I working with TMS320F28379SZWT delfino, with CCS7 and XDS debugger.

I would like to perforn dinamically code profiling, that mean evaluate the execution time and number of call of each function in the application code; This is possible with no code modification.

I have already try all the possibility described in Texas Instrument Wiki Page, but they require stop and break the code.

I have see that in debug mode, click on Tools there are 2 useful section to do profiling: "System Analizer" and "Profile", but I do not any idea how to configure it.

Can some one help me ?

Thank you

best regards

  • Hello,

    Mattia Settin said:
    I have see that in debug mode, click on Tools there are 2 useful section to do profiling: "System Analizer" and "Profile", but I do not any idea how to configure it.

    Neither option is applicable for your needs. The former will require code modification and the later is breakpoint based (and not supported on 28x anyway).

    Your ideal solution would be a hardware trace based solution. Unfortunately it is not supported with your device.

    ki

  • Dea ki
    Thank you so much for your replay.

    Ok in order to perform this task I can modify the code in function that I need to profile.

    If I instrument or modify the code, how can profile the sw application ?

    Where I can found some tutorial with my architecture and debugger ?

    best regards

  • Please see the below article for more suggestions on profiling on 28x:

    http://software-dl.ti.com/ccs/esd/documents/c2000_profiling-on-c28x-targets.html

    For the instrumented option, please see the section on "Profiling in SYS/BIOS". This assumes that your application is using SYS/BIOS

    You can also try using the CPU timer register or GPIO pins as mentioned in the article.

    Note that the section "Profiling Data Collection" refers to the CCS function profiler that I mentioned earlier. I do not recommend this option.

    Thanks

    ki

  • Dear Ki

    When I enable the clock, it display completely wrong number.

    In this article is not show how to configure the clock.

    How can I fix this problem ?

    I can not use external GPIO with scope.

  • Mattia Settin said:
    When I enable the clock, it display completely wrong number.

    What is the count reported by the clock vs the expected count? How are you doing the measurement?