cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ethernet

boris239955_stm1_st
Associate II
Posted on August 31, 2016 at 10:23

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 #stm32
1 REPLY 1
boris239955_stm1_st
Associate II
Posted on August 31, 2016 at 16:55

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);
}
}
}