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.

TMS320C6657 McBSP回环测试



你好

我现在在用6657开发板验证mcbsp接口,是回环测试,运行安装目录C:\ti\pdk_C6657_1_1_1_4\packages\ti\drv\exampleProjects下的MCBSP_DigLpbkExampleProject工程,代码总是在while(1)中死循环

while (1)
{
if (edmaTxDone == 1)
{
System_printf ("Debug(Core %d): EDMA -> Iteration-%d frames are transmitted to TX path\n", coreNum, count);
edmaTxDone = 0; /* Reset for next iteration */
mcbspTxDone = 1;
}
if (edmaRxDone == 1)
{
System_printf ("Debug(Core %d): EDMA -> Iteration-%d frames are received from RX path\n", coreNum, count);
edmaRxDone = 0; /* Reset for next iteration */
mcbspRxDone = 1;
}
if ((mcbspTxDone == 1) && (mcbspRxDone == 1))
{
mcbspTxDone = 0; /* Reset for next iteration */
mcbspRxDone = 0; /* Reset for next iteration */
break;
}
}

因为一直不满足edmaTxDone 和edmaRxDone 为1的条件,是什么原因导致该值不为1?应该如何处理,求解,谢谢~~~

  • 是我弄错了,我私自把MCBSP_LOOPJOB_ENABLE宏定义为1,原工程中并没有定义,既然这个宏并没有定义,为什么还要写的貌似是在回环模式下的开关,好吧,反正只要不要动源代码就OK了