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.

RTOS/66AK2L06: NIMU code with two ethernet ports

Part Number: 66AK2L06

Tool/software: TI-RTOS

I want to implement 2 ethernet ports using ethernet swith in core0.
I am using the nimu code included in pdk_k2l_4_0_9.
The nimu base code provides 1 ethernet port.


The following error occurred while debugging code for two ethernet ports.
   > Timeout waiting for reply from PA to Pa_addMac command


port 0 works normally.
However, an error occurred during Add_MACAddress operation on port1.

Is it possible to add only the settings for port1 in the nimu code?

Or does it require a lot of code modifications?

int32_t
Add_MACAddress
(
    int idx,
    paEthInfo_t         *ethInfo,
    paRouteInfo_t       *routeInfo
)
{

..........

retVal  =   Pa_addMac  (NIMU_getPAInstance(idx),
                            pa_LUT1_INDEX_NOT_SPECIFIED,
                            ethInfo,
                            routeInfo,
                            &nFailInfo,
                            &gPaL2Handles[0],
                            (paCmd_t) pHostDesc->buffPtr,
                            &cmdSize,
                            &cmdReplyInfo,
                            (int*)&cmdDest);
    if (retVal != pa_OK)
    {
        printf ("Pa_addMac returned error %d\n", retVal);
        ret_val = -1;
        goto return_fail;
    }

    NIMU_qmssQPush    (gPaTxQHnd[idx][cmdDest],
                    pHostDesc,
                    pHostDesc->buffLen,
                    SIZE_HOST_DESC,
                    Qmss_Location_TAIL
                   );

    #define RETRY_CNT   1000


    /* Poll on the PA response queue to see if response from PA has come */
    for (j = 0; j < RETRY_CNT; j++)
    {
        CycleDelay (1000);

        if (Qmss_getQueueEntryCount (gPaCfgCmdRespQHnd[idx]) > 0)
        {

.....

break;

        }

    }

    if (j == RETRY_CNT)
    {
        printf ("Timeout waiting for reply from PA to Pa_addMac command\n");
        ret_val = -1;
    }
}