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.

AM2732: CBUFF example can't output continuous LVDS

Genius 13655 points

Part Number: AM2732

Hello Champs,

Customer wanted to output continuous LVDS based on SDK/example/cbuff example.

He modified the code as below, but there is no lvds data outputing from J7 connector on EVM board. 

1. Put CBUFF_activateSession () and CBUFF_deactivateSession () in a loop so that the cbuff can output continuous lvds data.

    Add gCBUFFSwTriggerFrameDoneCounter_last variable before line 270 in cbuff_sw_trigger.c file. gCBUFFSwTriggerFrameDoneCounter_last  and gCBUFFSwTriggerFrameDoneCounter are used to judge if the transfer is ended. 

2. comment out the cbuff_close function. 

/* Create the Session: */
sessionHandle = CBUFF_createSession (cbuffHandle, &sessionCfg, &errCode);
if (sessionHandle == NULL)
{
DebugP_log ("Error: Unable to create the session [Error code %d]\r\n", errCode);
}
while(1)
{
/* Activate the session: */
if (CBUFF_activateSession (sessionHandle, &errCode) < 0)
{
DebugP_log ("Error: Unable to activate the session [Error code %d]\r\n", errCode);
}
while (gCBUFFSwTriggerFrameDoneCounter == gCBUFFSwTriggerFrameDoneCounter_last)
{
DebugP_log("waiting for frameDone interrupt : %d\r\n", gCBUFFSwTriggerFrameDoneCounter);
ClockP_usleep(10 * 1000);
}

DebugP_log("Received frameDone interrupt : %d\r\n", gCBUFFSwTriggerFrameDoneCounter);
gCBUFFSwTriggerFrameDoneCounter_last = gCBUFFSwTriggerFrameDoneCounter;

/* Deactivate the session: */
if (CBUFF_deactivateSession (sessionHandle, &errCode) < 0)
{
DebugP_log ("Error: Unable to deactivate the session [Error code %d]\r\n", errCode);
}
}

// /* Delete the session: */
// if (CBUFF_close (sessionHandle, &errCode) < 0)
// {
// DebugP_log ("Error: Unable to delete the session [Error code %d]\r\n", errCode);
// }

// if(testStatus == SystemP_SUCCESS)
// {
// DebugP_log("[CBUFF] SW Trigger Test Completed!!\r\n");
// DebugP_log("All tests have passed!!\r\n");
// }
// else
// {
// DebugP_log("Some tests have failed!!\r\n");
// }

// Board_driversClose();
// Drivers_close();

// return;

Thanks.
Rgds

Shine