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.

Compiler/AWR1642BOOST: MSS R4F compile error when call "Cycleprofiler_getTimeStamp"

Part Number: AWR1642BOOST
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI C/C++ Compiler

Hi,

My SDK version is mmwave_sdk_01_02_00_05.

The demo code is SRR(mmwave_automotive_toolbox_2_0_0)

and inlucde <ti/utils/cycleprofiler/cycle_profiler.h>

When I call "Cycleprofiler_getTimeStamp" in MSS, the CCS said undefined symbol.

Could you help me how to resolve the issue?

Thanks

  • Former Member
    0 Former Member

    Hello,

    Can you please clarify the following?

    1) Have you been able to successfully compile the lab as downloaded/without modifications? Please make sure you are compiling dss project before mss project.

    2) Are you trying to modify a the mss project to add the cycle profiler? And then you are having problems compiling with your modified mss files? If yes, it would be helpful to attach the files you are using. 

    Thanks,

    Amanda

  • The pmu module comes from SYSBIOS, below line needs to be there in the mss's SYSBIOS config file (.cfg) in order to include the pmu module in the build:

    var Pmu       = xdc.useModule('ti.sysbios.family.arm.v7a.Pmu');

  • Hi Piyush,

    Thanks. It solved the compiler issue.

    But when I call Cycleprofiler_getTimeStamp(), I always get the return is "0".

    Why do we get the zero value?

    startTime = Cycleprofiler_getTimeStamp();
    retVal = CANFD_transmitData (gSrrMSSMCB.txMsgObjHandle, 0xC1, CANFD_MCANFrameType_FD, 24U, (uint8_t *)&gObjDetReport.detObj[idx], &errCode);
    while (gTxDoneFlag == 0);
    gTxDoneFlag = 0;
    processTime = Cycleprofiler_getTimeStamp() - startTime;
    CLI_write("processTime: %d\n", processTime);

    Thanks

  • You need to do one time initialization of the profiler before measuring cycles : Cyclerprofiler_init();