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.

DM648 and CCS3.3 function profile issue

Dear all,

I'm trying to make function profile using XDS510USB.

However, when I add function into profiller tool, the function cycle become very huge, my program keep running and never stop.

Anyone know about the issue?

Is there any better way to do function profile with my environment?

Thank you very much!

  • Hi Tri,

    The profile tools in CCS3.3 could be used properly ONLY in simulator. You should select the "C64x+ Cycle Accurate Simulator" for DM648 device. And then you could setup the profile and acquire proper data.

    Allen

  • Hi Allen,

    Thank you very much for your reply.  

    What version of CCS can I use to get function profile in emulator mode with XDS510?

    Thank you,
    Best regards 

  • Hi Tri,

    Sorry for the delay since I notice the post is updated just now.

    The profiler tools provided by CCS could only be used in simulator regardless of the version of CCS. But in emulation mode, you can leverage the other tools or modules to acquire the function profile. For example, there are two registers within C64x+ named TSCL/TSCH which is a internal counter register and working in the frequency of DSP core. You can read them before and after a function respectively, and then the difference of two reads stands for the running cycles of this function. The other way is that in DM648, there should be a timer module outside the C64x+ which is independently running and could also be used for counting the function running time. You can download the chip support library here: http://www.ti.com/tool/sprc090  which contains the driver code for timer module.

    Allen

  • Hi Allen,

    Thank you very much for your reply.

    I have been able to make detailed profile of my source code.

    Btw, I have another question about VLIB. I know there is function to calculate integral image, but is there function to calculate integral for x^2.

    Thank you,

    Tri

  • Hi Tri,

    I am not familiar with VLIB, but if you couldn't find the function for square integral calculation in VLIB, there should be no direct support for it. 

    You could post a new question for the issue for accurate answer.

    Thanks.

    Allen

  • Thank you very much Allen.

  • Hi Allen,

    I see "C64x+ Cycle Accurate Simulator" and "C64x+ CPU Cycle Accurate Simulator"


    What is the difference between these 2 options?

    Thank you,

  • Hi Tri,

    I didn't see C64x+ Cycle Accurate Simulator on my side. There are only "C64x+ CPU Cycle Accurate Simulator" and "C64x+ Megamodule Cycle Accurate Simulator".

    Commonly, the CPU Cycle Accurate Simulator always doesn't simulate Cache subsystem and peripherals. When you select one simulator, you could have a detailed view on the window below the selection view. It will tell you what's will be supported or unsupported by the simulator. 

    Thanks.

    Allen