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.

UIA Duration view

Other Parts Discussed in Thread: TMS320C6655

I am trying to run SystemAnalyzer  http://processors.wiki.ti.com/index.php/SystemAnalyzerTutorial1B.  It logged benchmark messages on the LogView. On the LogView, the EventClass showed FUC instead of Benchmark. When I run the Duration analysis, there is nothing showing on the DurationView. Please advise what could be the problem?

4375.systemAnalyzerData.zip

1638.tutorial1b.zip

 

GanZ

  • Hi GanZ,

       Could you please provide the following info, so that I can recreate your setup here?

    - what version of UIA are you using?

    - what version / build of CCS are you using?

    - which target are you using (e.g. the C6678 Functional simulator?)

    Regards

      Brian

  • Brian,

    UIA  1.3.1.08

    CCS 5.5.0.00077

    target TMX320C6657

    compiler TI v7.4.5

    XDC 3.25.3.72

    I am using the uia Tutorial_1_TMS320c6655 project. BTW, I got similar result on both the EVM board and my custom board. The DurationView worked before, I was probably using CCS5.4.0.00090. 

    GanZ

     

     

     

  • OK, thanks.  I'm in the process of getting a compatible test environment set up and will post when I have more info.

    Regards,

      Brian

  • Hi GanZ,

       I've reproduced the problem you are seeing.   I've started working with the System Analyzer development team to determine what the best approach to resolving this is. 

    As a temporary workaround, benchmarking results can be seen in the Duration view if, instead of using UIABenchmark_startInstanceWithStr / UIABenchmark_stopInstanceWithStr,  you use either

    1) the UIABenchmark_start / UIABenchmark_stop events

    e.g.

            Log_write1(UIABenchmark_start,(IArg)"Label to display in the Duration View"); 

           // code to be benchmarked

            Log_write1(UIABenchmark_stop,(IArg)"Label to display in the Duration View");

    or

    2)  the UIABenchmark_startInstance / UIABenchmark_stopInstance events

    e.g.

            Log_write2(UIABenchmark_startInstance, (IArg)"A descriptive text string",1);

            // code to be benchmarked

            Log_write2(UIABenchmark_stopInstance,(IArg)"A descriptive text string",1);

    Thank you for reporting this!  I'll post again once I have a better understanding of how the System Analyzer team wants to address this.

    Regards,

      Brian

  • Hi GanZ,

        I have a better understanding of what happened now.  There were a number of changes introduced in System Analyzer for CCSv5.5 related to the way the Context-Aware Profiling and the Duration view work.    These are covered in the System Analyzer user’s guide for CCSv5.5, which is available at http://www.ti.com/lit/ug/spruh43e/spruh43e.pdf

    Unfortunately, the UIA package was not fully updated to reflect these changes.  The example code for Tutorial1 needs to be updated to use UIABenchmark_start and UIABenchmark_stop events, and the documentation that ships with the package should be updated to spruh43e.pdf.

    I will file problem reports against UIA to address these issues, and will update the Tutorial1B wiki page with notes on CCSv5.5.  I'll post again here once the update to the Tutorial page is complete.

    Thanks again for your help with this.

    Regards,

      Brian

  • Hello Brian,

    I am trying to profile my code for C6657.

    Using CCS5.5 and System Analyzer v 1.3.0.02,.

    After reading your sugesstions about Tutorial und AIU_UG,  I get Execution Graph and Duration analyze working.

    Trying to profile, I've defined entry and exit function- hooks as described in spruh43e (Using System Analyzer) page 80, cap 4.13.3 I get the linker errors:

    <Linking>

    undefined first referenced

    symbol in file

    --------- ----------------

    ti_uia_events_UIAProfile_enterFunctionAdrs__C ./main.obj

    ti_uia_events_UIAProfile_exitFunctionAdrs__C ./main.obj

    error #10234-D: unresolved symbols remain

    I'm using CCS5.5.077, C/C++ compiler v7.4.7.

    In project properties I have configured exit, enter hooks with proper names and address as parameter.

    Can you help me and point where is problem ?

    Best Regards

    Jan

  • Hi Jan,

       The version of UIA that you are using (uia_1_03_00_02) does not have the UIAProfile hook functions defined - you will need to use a later version of UIA - e.g. uia_1_03_01_08.   You can download it from http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/uia/1_03_01_08/index_FDS.html .

    Regards,

      Brian

  • Hi Brian,

    thank for your reply.

    Unfortunatelly, after changing UIA to UIA_1_03:01:08 i get the same errors:

    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    ti_uia_events_UIAProfile_enterFunctionAdrs__C ./main.obj
    ti_uia_events_UIAProfile_exitFunctionAdrs__C ./main.obj

    error #10234-D: unresolved symbols remain

    Best regards

    Jan