Skip to main content
boris239955_stm1_st
Associate II
August 31, 2016
Question

Problem with ethernet

  • August 31, 2016
  • 1 reply
  • 657 views
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
This topic has been closed for replies.

1 reply

boris239955_stm1_st
Associate II
August 31, 2016
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);
}
}
}