Skip to main content
Explorer
January 17, 2020
Question

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

  • January 17, 2020
  • 4 replies
  • 1924 views

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!

    This topic has been closed for replies.

    4 replies

    Visitor II
    January 20, 2020

    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)

    Visitor II
    January 21, 2020

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

    Graduate II
    January 21, 2020

    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

    Visitor II
    January 21, 2020

    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!

    Graduate II
    January 25, 2020

    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.

    Explorer
    January 29, 2020

    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?