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.

Problem with profiling code with UIA in CCS5.5

Hello,

I am trying to profile my code for C6657.

Using CCS5.5.077, C/C++ compiler v7.4.7.and System Analyzer v  UIA_1.03.01.08.

After reading sugesstions in forum-thread:

UIA duration view,

http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/306975.aspx

about UIA-Tutorials und AIU_UG,  I can 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  and in project properties I have configured exit, enter hooks with proper names and address as parameter.

Trying to build, 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

Can you please show me how can I fix that issue?

Regards

Jan

  • Jan,

    I am not sure if you already solved this issue, but I couldn't get this error using the Tutorial1 example project.

    I followed the steps How to Build the System Analyzer Tutorial Projects and How to Run the System Analyzer Tutorial 1 Project of the page below:

    http://processors.wiki.ti.com/index.php/SystemAnalyzerTutorial1

    Then I added the entries shown at the reference you sent in the middle of my main() code:

            while (tutorialPhase < 5){
                    Log_write1(UIABenchmark_start, (xdc_IArg)"running");
                    switch(tutorialPhase){
                    case 1: tutorial_1A(); break;
                    case 2: tutorial_1B(); break;
                    case 3: tutorial_1C(); break;
                    case 4: tutorial_1D(); break;
                    }
                    tutorialPhase = 0;
             Log_write1(UIABenchmark_stop, (xdc_IArg)"running");
    


    I also added the proper #include entries at the top of the main.c file:

    #include <ti/uia/events/UIABenchmark.h>
    #include <xdc/runtime/Log.h>


    And the path to the XDC tools to the compiler include options

    This way everything built fine and I could see the events on the Live Session...

    ... and the Duration views:

    You can use the same example project and try to analyze the differences between this and your custom project.

    Hope this helps,

    Rafael

     

  • Hello Rafael,

    thanks for your mail.

    But as I tried to check my project before, the Duration and Execution Graph are perfectly working, In LiveSession log I get all the log info that I need.

    My problem was to get profiling 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

     Best regards

    Jan