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.

F28335 eZdsp™ and Simulink - Execution time

Hello,

I have eZdsp 28335 and I am using CCS V3.. I would like to ask about the bench time for my code after it compile or download from Matalb simulink. I mean how I can measure the execution time of my code. Are there any tools or options in CCS to do that or in simulink?  So please if anybody can help me with that.

 

 

  • Maher,

    You may want to check with the Simulink folks as well.  In CCS V3.3 you can use the profiler clock to determine th enumber of cycles between breakpoints:

    • Profile ==> Clock ==> Enable
    •  Profile ==> Clock ==> View

    The clock will open in the bottom left hand corner.  Run to a breakpoint where you want to start the profile, then double click on the clock to clear it, then run to the next breakpoint.  The clock will reflect the cycles between the breakpoints.

    Another popular method is to toggle a GPIO around code segments and measure the time on a scope.

    -Lori

  • Hi Lori,

    thank you for your reply.

    I am using the embedded function in matlab for my algorithm, so how I can toggle a GPIO with that.

    Regards

     

  • Hi Maher,

      There are some things you can do from MATLAB and Simulink for profiling code generated C-code execution on the C2000 MCU. I am excited to see that you are profiling to understand where code improvements can be made rather than trying to guess blindly.

      1. Use the profiling option in the code generation options for the Embedded IDE Link.

      This does requires the use of a MathWorks product called the Embedded IDE Link and using Simulink. A link to the documentation regarding the use of this basic profiling functionality is available here:

    http://www.mathworks.com/access/helpdesk/help/toolbox/idelink/ug/bq44ojh-1.html

     

      There are some other options, but they would require some additional explaination. This above the simplest approach, but also gives the coursest results. If you need finer grained results, there are some additional techniques that we could cover, including how to invoke the Profiler built into CCS from MATLAB during the code generation process.  If the first approach is insufficient, please contact me directly at greg.wolff@mathworks.removethistextlkjsdfdslk.com and we can discuss what exactly you are trying to profile, and use a more targetted technique.

     

    Cheers,

    -Greg