2016-08-31 01:23 AM
Hi, I'm using STM32F746-DISCOVERY. I want to use ethernet, but I connect for a little time 3-4 seconds and the the connection dropped. When I try to connect again I cant. I saw the example of ST and there isn't any difference between my code and the example. Only difference is that I use GUI.
#lwip #ethernet #stm322016-08-31 07:55 AM
In this function enter only when I start the system and then didnt enter. Any ideas?
void ethernetif_input( void const * argument )
{
struct pbuf *p;
struct netif *netif = (struct netif *) argument;
while (1)
{
if (osSemaphoreWait(s_xSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
{
do
{
p = low_level_input( netif );
if (p != NULL)
{
if (netif->input( p, netif) != ERR_OK )
{
pbuf_free(p);
}
}
}while(p!=NULL);
}
}
}