cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Ethernet - DHCP

vbk22398
Senior

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

3 REPLIES 3
Pavel A.
Evangelist III

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.

 


@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 ?

STea
ST Employee

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.