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.

RTOS/AWR1642BOOST: Clock errors request

Part Number: AWR1642BOOST


Tool/software: TI-RTOS

hello,

     The codes as follows:

void MmwDemo_dssFrameClkExpire(UArg arg)
{
System_printf("The enter a function!\n");
}


Int main()
{

Clock_Params clkParams;

System_printf("The first output flag!\n");

Clock_Handle ClkHandle;


Clock_Params_init( &clkParams );
ClkHandle = Clock_create((Clock_FuncPtr)MmwDemo_dssFrameClkExpire,
0, &clkParams, NULL);
if (ClkHandle == NULL)
{
System_printf("Error: Unable to create a clock\n");
return -1;
}

System_printf("The second output flag!\n");
Clock_setTimeout(ClkHandle,5000);
Clock_start(ClkHandle);
System_printf("The third output flag!\n");

BIOS_start();


return(0);
}

 

The console encounter the followed  errors:

[C674X_0] The first output flag!
The second output flag!
The third output flag!
{module#48}: line 99: error {id:0x10000, args:[0x80491d, 0x80491c]}
xdc.runtime.Error.raise: terminating execution

 

what cause the above errors?where is the error({module#48}: line 99: )?

 

  • Hi,

    What is the code base you are running? Is it the mmw demo?

    First I would suggest not using System_printf() because the processing time may exceed some of the mmw demo processing deadlines. You could use global variables to track the code execution instead.

    For generic TI RTOS CLock questions please search other e2e threads and check the TI RTOS API documentation

    thank you
    Cesar
  • I think the framePeriodicity is the  Register value.So framePeriodicity *5= xx(ns);and ramePeriodicity *5/1000000= xx(ms).Are you understand my expression?

    Thinks!

  • Hi,

    In order to understand how the framePeriodicity is computed, it is helpful to start with the mmWave SDK demo cli processing.

    The framePeriodicity is defined in ms in the profile. After that the cli code in the mmWave demo converts it to register values

    thank you
    Cesar