Hi,
I encountered a strange question when using the lwip. I initialize the EMAC with the lwIPInit() function from the lwiplib.c(source file from the ports folder of the lwip-1.3.2 from the EMAC example). The function return the right IP address then bind and connect the board and the PC right. After that, I just send the data through the udp_send() function.
The strange thing is when I push the reset button(nPORST pin low), sometimes(1 of 6 or 7) the board just send a ARP request and PC reply with a ARP, while the UDP data packet is not send properly, when you send a packet from the PC to the board, the board got nothing(the udp_bind and udp_connect function retruns ok).
But sometimes(about 6 of 7), the board can send the UDP data packet rightly after the PC's ARP reply, and can receive the UDP packet sended by PC after that.
I don't konw why is that happen, do you anyone encounter this problem before?
Is there any problem about the hardware led to that?
Regards,
yong