cancel
Showing results for 
Search instead for 
Did you mean: 

LwIP raw api with static IP and NUCLEO-F429ZI slow startup: It takes 15 seconds for the first ping.

PTiha
Senior

Hello!

I created a standard LwIP NO-OS project with static IP. Everything works perfectly, but it takes ~ 15 seconds for the first PING response.

After that the ping times ~1.4 ms.

I tried what happens when I disconnect the Ethernet cable and then reconnect it.

It took another 15 seconds to re-establish the connection (the first ping response arrived).

The MCU core clock is 168 MHz. SysTick is 1ms.

Why can this be?

4 REPLIES 4
Pavel A.
Evangelist III

This is likely because the example is set to use DHCP with lot of retries before falling back to a static address, and you don't have a DHCP server.

-- pa

PTiha
Senior

Hello,

It should not send DHCP requests because the DHCP module is disabled.

PTiha
Senior

In the meantime I watched the communication between the NUCLEO and my developer notebook with Wireshark.

There isn't any DHCP requests from the NUCLEO.

I don't know what he's doing for 15 seconds.

J.Strom
Associate

Hi PTiha,

Did you solve the problem? I have the same problem. After link is up there is a delay of several seconds, then it works as expected. Also with DHCP disabled.

Johan