2026-04-17 8:00 AM - last edited on 2026-04-17 8:28 AM by mƎALLEm
Added "DHCP" in the title to give the context.
Using an STM32H7S78-DK I try to set up the network to join an IPv4 network through DHCP.
I did set up the board using CubeMX, standard configuration, MPU activated.
FreeRTOS + LwIP
Removed all other interfaces I don't need.
Made sure the Ethernet clock shows 50MHz
The LED's on the RJ45 start to blink (Orange LED blinks with packets exchanged)
but I get no IP address.
digging in the possibilities I added a simple routine to monitor the DHCP advancements.
struct dhcp *dhcp_data = netif_dhcp_data(&gnetif);
if (dhcp_data != NULL) {
printf("[DHCP] State: %d, Retries: %d\r\n", dhcp_data->state, dhcp_data->tries);
}
this shows I get stuck in state 6: waiting for an ACK
-> what could be behind this?
can someone share an .ioc file that sets everything correctly in MX?
Solved! Go to Solution.
2026-05-06 7:04 AM
I don't understand this claim.
I connect the board to the cable, Ethernet comes up (MAC Leds), DHCP somehow Timeout.
I will try to capture the packets on the network to at least get to see whether a valid Discover is send out.
2026-05-06 9:05 AM
If DHCP times out and you confirm from the packet capture that the Discover packet is sent every few seconds, it means that your board failed to find a running DHCP server. You can solve this by installing the application I mentioned.
2026-05-07 1:47 AM
The board is not sending out anything that can be processed by another host. (I didn't check the physical activity on the Ethernet port, could be the packets are dropped due errors)
So I fear the problem is within the board or configuration.
Board is version D01
I let Wireshark monitor the system for more than 30', and invokes some issues to capture the network reaction.
Captured full DORA sequences from the Wireshark host, broadcast messages from the others on the network. (Discover & Request)
I could assign every MAC address captured to a lnown host.
So conclusion: the issue is in the board, not my network setup.
Any advice/hint to find the issue?
2026-05-12 4:39 AM
Took the liberty to acquire a second board: NUCLEO-H7S3L8
Loaded the demo "LwIP_TCP_Echo_Server" application: the board got a reply from the DHCP almost immediately.
Remains my question: is there something wrong with the STM32H7S78-DK board I have?
How can I be sure?
2026-05-12 5:00 AM
Some extra experimenting: changed the MCU voltage to 1.8V and the network behaves exactly as with the -DK board: DHCP-Timeout
Back to 3V3 an the DHCP process is successful.
Went back to the original board and found no option to alter the MCU Vdd.
But I found a header jp6, which I was not really getting any wiser on what it does.
search through the schematics relates it to the RMII, what if?
Tried to alter this setting and the DHCP server is responding.
-> JP6 needs to be in position PC1