2020-07-23 07:10 AM
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?
2020-07-23 01:45 PM
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
2020-07-24 12:43 AM
Hello,
It should not send DHCP requests because the DHCP module is disabled.
2020-07-24 12:57 AM
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.
2020-12-03 02:02 AM
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