cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I find a good webserver example (with RTOS and FATFS)?

I'm trying to get started on an STM32H7 project with an embedded webserver. I've tried the webserver example in the CubeH7 which runs on the Nucleo H743 board, but as soon as I try to adapt it to my purposes the build breaks. My second approach of using the new project wizard in ST4STM also failed because the fresh project doesn't build. I'm getting pretty frustrated with these build problems, so I'm wondering if there are other lwip-http-fatfs-freertos examples that actually work. It doesn't have to be free!

6 REPLIES 6

Hi. Check example for STM32H473-Eval board webserver based on sockets. (Path_to_CubeMX_Examples\..\Projects\STM32H743I-EVAL\Applications\LwIP\LwIP_HTTP_Server_Socket_RTOS)

Piranha
Chief II

To get web server working, first you have to get IP stack working. With ST's code networking is virtually impossible, especially on H7. Fixing their code requires more effort than writing normal ETH driver and integrating lwIP on your own.

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

Er, that's the example I'm complaining about.

Thanks for the heads up. Disappointing, but not too surprising in my experience of ST code. I keep hoping there is a third party with a proven solution I could just buy!

Piranha
Chief II

Writing a driver is not that hard if one does it sanely and doesn't try to base it on ST's code monkey designed non-working bloatware. And the result is worth it:

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

But I'm not the only one, who have achieved such results:

http://www.chibios.com/forum/viewtopic.php?f=3&t=2366

https://rtos.com/news/express-logics-netxachieves-near-wire-speed-on-stm32-platform/

Can't really suggest, because I haven't used those, but, if not writing your own code, I would take a look on ChibiOS, ARM Mbed, FreeRTOS+TCP, SEGGER emNet, Express Logic NETX.

Things are going from bad to worse as I can no longer build the example from a fresh install of the CubeH7 files. WTF is going on! Is nobody at ST at all interested in their users?