2021-06-24 05:08 AM
Hello, I am trying to run a project generated by STM32cubeMX. DHCP thread code I got from ST example called "STM32H723 webserver demo" and put it to my code. Communication between PHY and STM32 works well, DHCP doesn't work. Even if I put a static IP, it doesn't connect to my router. But if I download that ST webserver example, everything is ok, and DHCP works. Where is the problem? I did Lwip configuration via CubeMX equal to Lwip configuration in that ST example, everything other is the same (linker areas, MPU config, etc). I haven't in my project an HTTP server yet, I just want to ping my device from my PC. DHCP stops at SELECTING state.
Solved! Go to Solution.
2021-06-25 04:27 AM
My bad, I forgot to add the controlling of nRST pin. Stupid mistake.
2021-06-24 07:21 AM
Hello @itxs ,
Did you tried to follow theses articles:
Imen
2021-06-24 08:56 AM
Thank you, now I did all like in these articles, but nothing changed, DHCP hold in SELECTING state
2021-06-25 04:27 AM
My bad, I forgot to add the controlling of nRST pin. Stupid mistake.