STM32F439 FreeRTOS lwip stuck in dhcp_start() during init
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-03-06 11:50 AM
Hi,
I'm writing an application with Ethernert access but have troubles to acquire an IP from the network. I have the Ethernet cable plugged in but during init my application hangs in dhcp_start(&gnetif) (at the call to dhcp_discover(netif) - at udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);). Where the arguments look like:
Can someone help me out with this,please?
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-03-07 3:13 AM
Hello @debug ,
you can refer to the example in the Cube F4 firmware Projects\STM32F429ZINucleo\Applications\LwIP\LwIP_HTTP_Server_Netconn_RTOS. this example can be used with DHCP when a Dhcp server is available as detailed in the Readme file of the project .
you will find a working implementation of the DHCP feature in the app_ethernet.c file in this project if you have any question regarding the implementation feel free to ask them .
BR
