Skip to main content
itechtv
Visitor II
January 29, 2023
Solved

Webserver on lwip. If LWIP_HTTPD_DYNAMIC_HEADERS is enable, the webserver is not working correctly?

  • January 29, 2023
  • 3 replies
  • 2349 views

I have a question that has been bothering me for a long time!

lwip 2.12 webserver it has problem with LWIP_HTTPD_DYNAMIC_HEADERS.

When enabling LWIP_HTTPD_DYNAMIC_HEADERS, I get unstable work, sometimes it works, sometimes don't work. 

When disabling LWIP_HTTPD_DYNAMIC_HEADERS, we get an error "Assertion "HTTP headers not included in file system" failed at line 2271 ...

I use NUCLEO-F767ZI and STM32H743

The problem is observed in all versions of stm32CubeIDE 1.9.0 by stm32CubeIDE 1.11.2

But stm32CubeIDE 1.8.0 everything work well.

Could someone help?

This topic has been closed for replies.
Best answer by MSG_ST

Hi,

I tested the application LwIP_HTTP_Server_Netconn_RTOS available in the official STM32F7Cube Firmware v1.17.0 with LWIP_HTTPD_DYNAMIC_HEADERS Enabled & Disabled.

Both ways the application works properly.

PS : the last LwIP version used on STM32 is V2.0.3 and due to the fact that we switched to NetXDuo as TCP/IP stack, we do not plan to maintain and update the lwip stack.

Regards

Mahdy

3 replies

MSG_ST
MSG_STBest answer
ST Employee
February 15, 2023

Hi,

I tested the application LwIP_HTTP_Server_Netconn_RTOS available in the official STM32F7Cube Firmware v1.17.0 with LWIP_HTTPD_DYNAMIC_HEADERS Enabled & Disabled.

Both ways the application works properly.

PS : the last LwIP version used on STM32 is V2.0.3 and due to the fact that we switched to NetXDuo as TCP/IP stack, we do not plan to maintain and update the lwip stack.

Regards

Mahdy

Piranha
Principal III
February 19, 2023

> the last LwIP version used on STM32 is V2.0.3

Except that on Github and in CubeMX there is v2.1.2.

Piranha
Principal III
February 19, 2023

The Ethernet in CubeH7 before the v1.10 was basically dysfunctional.

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