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.

C 6678L loopback issue

Hi,

I'm debuging the SRIO loopback code from the PDK.. It compiles and works fine.

After that I turn the Digital Loopback off (CSL_SRO_SetNormalMode(..)).

The codes hangs here:

 


[C66xx_0] **********************************************
[C66xx_0] ******* RAW Socket Testing (Core 0) *********
[C66xx_0] **********************************************
[C66xx_0] Debug(Core 0): AppConfig Tx Free Queue 0x383
[C66xx_0] Debug(Core 0): Raw Send 0x@1082d6d0 Data Size: 152 Iteration 0 passed.

 

The code is here: the num_bytes is always 0 so it loops infinately. What is the wrong?

....
        /* Wait for the data to arrive. */
        while (1)
        {
            /* POLL the SRIO Driver to check if any packets have been received or not? */
            Srio_rxCompletionIsr(hSrioDrv);

            /* Receive data */
            num_bytes = Srio_sockRecv (srioSocket2, (Srio_DrvBuffer*)&ptrRxHostDesc, &from);
            if (num_bytes > 0)
            {

.....