Stm32h745 lwip issue
- July 17, 2026
- 3 replies
- 38 views
Hi everybody,
I’m struggling with the lwip stack in order to get it working with freertos.
I had succesfully achieved to bring up the connection and optain an ip in dhcp mode and ping the board in bare metal mode, now I switched to freertos and I’m no longer able to send discovery packets on the network.
I followed the instructions stated here stm32-hotspot/STM32H7-LwIP-Examples: Ethernet examples using LwIP + FreeRTOS for STM32H7 Discovery and Nucleo boards and tried to copy .ioc configuration from H745 example but I still have the same problem, the phy connection goes up but I cannot obtain the IP address from dhcp server. I’m monitoring the network activity with wireshark but there is nothing coming from the board mac address (in bare metal mode I was able to see dhcp negotiations).
Please find the attached files in order to check what happens and addres the possible issue.
My configuration:
STM32CubeIDE Version: 2.2.0
STM32CubeMX Version: 6.17.0
STM32Cube FW_H7 V1.13.0
PS:
please note that ther is a bug in the generated ethernetif.c since it still tries to mange TxConfig in low_level_init function, but TxConfig is no longer a global variable like in the older version o library but it is declared local in low_level_output
Thank you.
