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;
}
}
{
printf ("Timeout waiting for reply from PA to Pa_addMac command\n");
ret_val = -1;
}