cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 Ethernet With FreeRtos and LWIP

BengofEtech
Associate III

Hello,

using the STM32H7 Ethernet with FreeRtos and LWIP results in not sent packages as the Optimization is Turned higher than -O0.

The lwip Stack ,for example, tries to send UDP Packages. Those packages never leave the STM32 and UDP data packets are not received either. Here the Error clearly lies in the Interface between HAL and LWIP ST provided.

i already disabled D-Cache and used some other proposals from the forum.

Are there any plans to rework this in the Future? Does the HAL at least work, so we can write our own Interface?

4 REPLIES 4
Piranha
Chief II

> Does the HAL at least work

For H7 definitely... no! And without complete rewrite never will.

> Are there any plans to rework this in the Future?

For F1, F2, F4 and F7 series ST's brainless code monkeys have not been able to make a working Ethernet/lwIP implementation since year 2007. H7 has different ETH peripheral and for that they have made new code, which is much worse that the older already bad code.

https://community.st.com/s/question/0D50X0000C6eNNSSQ2/bug-fixes-stm32h7-ethernet

https://community.st.com/s/question/0D50X0000BOtfhnSQB/how-to-make-ethernet-and-lwip-working-on-stm32

DRock.1
Associate

Hi Piranha

I'm attempting to add libwebsockets on top freertos -> lwip on an H7. This is new project and I'm starting with STM32CubeIDE, and it appears that the generated lwip code is incomplete with many missing headers or headers with invalid paths.

Is is possible to get an ethernet/lwip interface working? Can you share any generated code/project that you patched?

Thank you

Piranha
Chief II

I'm working on F7 and don't have any custom code for H7, but in the first link, I gave, Alister shares his code for H7. Also I don't waste my time on patching ST's useless kindergarten level HAL/CubeMX code because it's unproductive. I write my own correct, simple and flexible code. The result can be seen here:

https://community.st.com/s/question/0D50X0000AhNBoWSQW/actually-working-stm32-ethernet-and-lwip-demonstration-firmware

Dr_Ing_Ahmad_ABOUD
Associate

i have the same problem with stm32h725. I can not find plaform for stm32h725 in mbed and platformio. So i must us freeRTOS with HAL. Ethernet for this MC has al lot of problems. is there any solution?