DHCP ON
the device never complete the lease of address, continue to send discover and never complete the ip address assignement
[IP-Task] vDHCPProcessEndPoint: enter 0
[IP-Task] DHCP-socket[32-00]: DHCP Socket Create
[IP-Task] prvCreateDHCPSocket[32-00]: open, user count 1
[IP-Task] prvInitialiseDHCP: start after 100 ticks
[IP-Task] vDHCP_RATimerReload: 100
[IP-Task] vDHCPProcessEndPoint: exit 1
[IP-Task] vDHCPProcessEndPoint: enter 1
[IP-Task] vDHCPProcess: discover
[IP-Task] vDHCPProcessEndPoint: exit 2
[IP-Task] vDHCPProcessEndPoint: enter 2
[IP-Task] vDHCPProcess: discover
[IP-Task] vDHCPProcess: timeout 1000 ticks
[IP-Task] vIPSetDHCP_RATimerEnableState: Off
and repeat this sequence infinite times
If i put a breakpoint after sending the “discover” the sequence end and I receive the IP address
DHCP OFF
same issue, I can’t assigne a static IP, and passing from network down and network up, if I put a breakpoint in network up event the ip is correctly assigned
It’s strange that with a breakpoint I can receive/assign the ip, seem to be a timing issue or something not setted propertly
My hardware is a custom board based on STM32F767 with RMII LAN8742a
the rx flow seem to be ok
Update:
I think could be a issue related to the version I’m using, I just move to 4.3.3 (latest official release) and the problem disappear.
I don’t know how is the fix that solve the problem, in my opinion is something reletated to timeout calculation, version 4.2.4 always 1000 tick, this one fail the first time but the second time timeout is 2000 tick and it’s work…
maybe related to timeout calculation but I’m not sure about this part
but the board never accept the incoming packet. Seem to be a rx issue but if I wait and I assign a fixed IP I can ping the board successfully and I can start a Mqtt connection sending and receiving packets… only dhcp process doesn’t work
xApplicationDHCPHook_Multi is called only sending the discover packet whit argument eDHCPPhasePreDiscover and no more call after that
Yes, the drivers provided along with the FreeRTOS+TCP are tested with the unified network interface; other versions of the driver are yet to be tested.