平台:dsp 6657开发板
编译实例:SRIO_LoopbackDioIsrexampleproject
其中把device_srio_loopback.c文件中代码 环回模式改成 normal 模式时,重新编译和debug 不过现象,代码代码修改处见下:
/* Configure SRIO ports to operate in loopback mode. */
// CSL_SRIO_SetLoopbackMode(hSrio, 0);
// CSL_SRIO_SetLoopbackMode(hSrio, 1);
// CSL_SRIO_SetLoopbackMode(hSrio, 2);
// CSL_SRIO_SetLoopbackMode(hSrio, 3);
/* Configure SRIO to operate in normal mode. */
CSL_SRIO_SetNormalMode(hSrio,0);
CSL_SRIO_SetNormalMode(hSrio,1);
CSL_SRIO_SetNormalMode(hSrio,2);
CSL_SRIO_SetNormalMode(hSrio,3);
进行debug后,发现一直死在这块代码while判断处
#ifndef SIMULATOR_SUPPORT
/* This code checks if the ports are operational or not. The functionality is not supported * on the simulator. */
for(i = 0; i < 4; i++)
while (CSL_SRIO_IsPortOk (hSrio, i) != TRUE);
#endif
请教,各位大神,这是为什么呢?
另外:
/* Assuming the link rate is 2500; program the PLL accordingly. */ CSL_BootCfgSetSRIOSERDESConfigPLL (0x233);
/* Configure the SRIO SERDES Receive Configuration. */
CSL_BootCfgSetSRIOSERDESRxConfig (0, 0x004404a5);
CSL_BootCfgSetSRIOSERDESRxConfig (1, 0x004404a5);
CSL_BootCfgSetSRIOSERDESRxConfig (2, 0x004404a5);
CSL_BootCfgSetSRIOSERDESRxConfig (3, 0x004404a5);
/* Configure the SRIO SERDES Transmit Configuration. */
CSL_BootCfgSetSRIOSERDESTxConfig (0, 0x001807a5);
CSL_BootCfgSetSRIOSERDESTxConfig (1, 0x001807a5);
CSL_BootCfgSetSRIOSERDESTxConfig (2, 0x001807a5);
CSL_BootCfgSetSRIOSERDESTxConfig (3, 0x001807a5);
上面serdes配置,是不是配置成250Mhz pll, 4分之1 速率,1.25Gbps ?