Connection through ethernet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-14 1:18 AM - edited ‎2024-06-14 4:07 AM
Hi, I am trying to create a connection through ethernet with lwip however I stuck at netif down I guess it related with flags which are checking the connection. I am using STM32H735 board. lwip.c file codes are taken from the github (https://github.com/stm32-hotspot/STM32H7-LwIP-Examples/blob/main/STM32H735_Disco_ETH/LWIP/App/lwip.c) that is recommended in the forum for IDE 1.9. (FreeRTOS is being used.)
netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input);
while(1){
netif_set_default(&gnetif);
if (netif_is_link_up(&gnetif))
{ netif_set_up(&gnetif);
break;
}
else
{ netif_set_down(&gnetif);
}netif_set_link_callback(&gnetif, ethernet_link_status_updated);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-14 2:28 AM - edited ‎2024-06-14 2:28 AM
Hello and welcome to the community.
Please review the tips on how to post a thread on this community.
Thank you for your understanding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-14 4:08 AM
Sorry I was not aware of these standarts. I tried to edit my post according to the provided document.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-14 10:33 AM - edited ‎2024-06-14 10:52 AM
@Kuttay In your code snippet there's a while(1) loop. Have you noticed that in the example this sequence runs only once, in the initialization? Does your link status detection work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-23 11:38 PM
I tried to make the system constantly check the link status so when the connection is set the system star yet. Without while(1) loop system starts with down link and I find my self stuck at private task error. But I will imediately check the statust detection. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-24 12:03 AM - edited ‎2024-06-24 1:12 AM
I checked the status detection but could not see any problem. I think problem could be related with tcp connection without setting the connection system continues to send tcp but stuck at receive uart while trying to send tcp since no connection is set.
