If the Ethernet cable is not connected at the time the LwIP_DHCP_task is running,
no IP address can received after reconnect the cable.
Does anyone has any idea how to solve it?
_____________________________________________________________________________________
You are receiving this email because you elected to monitor this topic or entire forum.
To stop monitoring this topic visit:
https://sourceforge.net/projects/freertos/forums/forum/382005/topic/4796833/unmonitor
To stop monitoring this forum visit:
https://sourceforge.net/projects/freertos/forums/forum/382005/unmonitor
I don't know of any FreeRTOS examples that use DHCP. I suggest trying the lwIP
mailing list. It is very active and somebody will be able to help. Please report
back here when you have an answer.
Change following in ETHIsr,c or equivalent,
//while (!(PHY_MR1_ANEGC & EthernetPHYRead(ETHBase[0],
PHY_MR1)))
// ;
if(PHY_MR1_ANEGC & EthernetPHYRead(ETHBase[0], PHY_MR1))
{