Hi,
I'm working with the internal loopback example found in the folder:
C:\Program Files\Texas Instruments\pdk_C6670_1_0_0_11\packages\ti\drv\exampleProjects\SRIO_LoopbackTestProject
I want to disable loopback completely and run device to device, so make the following change:
* Configure SRIO ports 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);
/* Configure the SRIO SERDES Receive Configuration. */
CSL_BootCfgSetSRIOSERDESRxConfig (0, 0x00440495);
CSL_BootCfgSetSRIOSERDESRxConfig (1, 0x00440495);
CSL_BootCfgSetSRIOSERDESRxConfig (2, 0x00440495);
CSL_BootCfgSetSRIOSERDESRxConfig (3, 0x00440495);
/* Configure the SRIO SERDES Transmit Configuration. */
CSL_BootCfgSetSRIOSERDESTxConfig (0, 0x00180795);
CSL_BootCfgSetSRIOSERDESTxConfig (1, 0x00180795);
CSL_BootCfgSetSRIOSERDESTxConfig (2, 0x00180795);
CSL_BootCfgSetSRIOSERDESTxConfig (3, 0x00180795);
but the routine stuck in in the loop and never goes out:
for(i = 0; i < 4; i++)
while (CSL_SRIO_IsPortOk(hSrio,i) != TRUE);
Please, could you tell me what do I need to configure in order to overcome this problem?
Thanks