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] CGT does not generate callgraph information in CSV format

Hi,

Recently I noticed c6000 CGTv7.4.18 was released. In this version (to be exact, v7.4.17), SDSCM00052251 seems to be fixed. So now I'm trying to evaluate clt (cache layout tool) with CCSv6.1.2/CGTv7.4.18. Please take a look at the following link. This is just for your information about my history for clt. 

https://e2e.ti.com/support/development_tools/compiler/f/343/p/448133/1612567

So about the problem...

I succeeded to generate pprofout.pdat file which it was automatically generated when exiting the application compiled with --gen_profile_info option.
I also succeeded to convert pprofout.pdat to pprofout.prf file by using ppd6x utility : pdd6x -e=<app out file> -o=pprofout.prf pprofout.ppd
But I failed to generate a weighted callgraph in CSV format from the pprofout.prf !! CSV file should be generated when using both --analize callgraph option and --use_profile_info option with pprofout.prf, but no CVS file was generated when the build was completed.
CVS file is required to generate a link command file for preferred code placement. So I'm getting stuck here....

To recreate the issue, you can use this environment. Please note you should check to see if you are actually using c6000 CGTv7.4.18 with this project. Also, you will need the latest ProcessorSDK (RTSO) for K2G.(version 02_00_02_11) is installed to its default path (C:\ti) for building the project.

I find the same issue on this post, but no progress for generating CVS.

ADS1675: Matlab/Simulink model - Data converters forum - Data converters - TI E2E support forums

e2e.ti.com
Part Number: ADS1675 Hello TI team, Does exist a Matlab/Simulink model of the ADS1675, please ? Thanks Andrea

Best Regards,
Naoki

-------------------------------
CCS v6.1.2
c6000 CGTv7.4.18 
Target Board : K2G GP EVM 
Application : McASP loopback project (attached to this post)

  • I forgot to attach the environment in the previous post... Here it is.

    MCASP_Audio_evmK2G_c66ExampleProject.zip

  • Hi,

    Do you have any responses on this ?

    Best Regards,
    Naoki
  • Nobody here ? My purpose is using clt, but I can't generate CSV file for this. I'm waiting for your reply.

    Best Regards,
    Naoki
  • Hello Naoki,

    My sincere apologies in the poor response time. We missed this thread and we are very sorry.

    I believe I know the issue. It appears that the CGT code coverage functionality with CCS does not work with linked source files (files outside the project folder). In those cases, the generated prf file does not have the correct paths to the linked source files. The path is corrupt (looks like two paths combined into one). For example, in your prf file, you see paths like:

    C:\ti\pdk_k2g_1_0_1\packages\MyExampleProjects\MCASP_Audio_evmK2G_c66ExampleProject\Debug/C:/ti/pdk_k2g_1_0_1/packages/ti/drv/mcasp/example/evmK2G/AIC31_Stereo_Loopback/src/Aic31.c/Aic31_init
    4
    1 0 1 0
    C:\ti\pdk_k2g_1_0_1\packages\MyExampleProjects\MCASP_Audio_evmK2G_c66ExampleProject\Debug/C:/ti/pdk_k2g_1_0_1/packages/ti/drv/mcasp/example/evmK2G/AIC31_Stereo_Loopback/src/Aic31.c/aic31MdBindDev
    12
    1 1 0 1 0 0 0 0 0 0 1 0

    Which is incorrect. It should be something like:

    C:/ti/pdk_k2g_1_0_1/packages/ti/drv/mcasp/example/evmK2G/AIC31_Stereo_Loopback/src/Aic31.c/Aic31_init
    4
    1 0 1 0
    C:/ti/pdk_k2g_1_0_1/packages/ti/drv/mcasp/example/evmK2G/AIC31_Stereo_Loopback/src/Aic31.c/aic31MdBindDev
    12
    1 1 0 1 0 0 0 0 0 0 1 0

    Because of the invalid paths, the correct location to the source file cannot be found. Hence that information is excluded from the generated csv file. If all the source files are linked, then no csv file is generated. If no csv file is generated, then the CodeGen Coverage views in CCS will be blank.


    This is the cause of the issue. I'm not sure where the root cause is. I filed a bug against CCS but i'm not sure if CCS is calling the various CGT utilities incorrectly or if the utilities themselves are the issue. In any case, the CCS engineers will know where the root issue lies. I hope I can get a clear answer for your then (with a suitable workaround).


    The bug tracking ID is: DVT-1334

    Again, my apologies for the delayed response

    ki

  • Note that one workaround that seems to work is to manually fix all the paths in the prf file and then re-compile using the modified profile feedback file. This should create the correct csv file. You can do this from CCS:

  • Hi Ki,

    Thank you for following up on this thread. Ok, fixing the path manually in prf file works to me! Thanks.
    I expect the fix in the future release on CCS/CGT.
    Now I close this thread.

    Best Regards,
    Naoki