cancel
Showing results for 
Search instead for 
Did you mean: 

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

itechtv
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
MSG_ST
ST Employee

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

View solution in original post

3 REPLIES 3
MSG_ST
ST Employee

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

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

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

Piranha
Chief II

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