2025-01-06 03:39 AM - last edited on 2025-01-07 03:37 PM by Andrew Neil
Hi,
I am trying to implement basic DHCP Protocol using STM32F439ZIT6. But I am unable to get the IP being assigned by the DHCP Server. There are no errors in the code, but I am not getting the IP. Don't know why it is giving DHCP Timeout. I am attaching my code, please go through the code and let me know the solution. Am Struck here for a while!
Thank you
2025-01-07 03:25 PM
Use wireshark (or other analyzer) to see what your program sends for DHCP request, and what (if any) is the reply.
If this looks too hard, here you can find help.
2025-01-07 03:39 PM
@vbk22398 wrote:I am unable to get the IP being assigned by the DHCP Server. you
So what testing/investigation/debugging have you done to find what's going wrong?
Are you sending a valid request, to a valid server?
Are you sure there actually is a DHCP server accessible at all ?
Is it seeing the request ?
Is it sending a response ?
2025-01-08 05:24 AM
Hello @vbk22398 ,
Please take a look at this example in GitHub which I implemented for showing LWIP debug capabilities on STM322F429/39 MCUs but it is still in its core a simple HTTP application implementing DHCP.
Regards