hello,
i have a great problem i need to interface IDK with Ethernet / ip connection !!!!!!!!!!!
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.
hello,
i have a great problem i need to interface IDK with Ethernet / ip connection !!!!!!!!!!!
Hossam,
It should work on the IDK, but I have not tried. Could you load the program and step through the code? It seems that the DHCP is stalling in lwip_lib.c around the code snippet below. Also, did you ensure that DHCP is working on your LAN?
while((E_FAIL == retVal) && (dhcpTries--))
{
LWIP_PRINTF("\n\rDHCP Trial %d...", (NUM_DHCP_TRIES - dhcpTries));
dhcp_start(pNetIf);
cnt = LWIP_DHCP_TIMEOUT;
/* Check for DHCP completion for 'cnt' number of times, each 10ms */
while(cnt--)
{
delay(10U);
pState = &(pNetIf->dhcp->state);
if(DHCP_BOUND == *pState)
{
retVal = S_PASS;
break;
}
}
Lali