cancel
Showing results for 
Search instead for 
Did you mean: 

Lwip with Freertos STM32CubeMx generate code problem.

Lpan
Associate

when code generate, in function void MX_LWIP_Init(void)

osThreadDef(EthLink, ethernet_link_thread, osPriorityBelowNormal, 0, configMINIMAL_STACK_SIZE *2);

in this line,using configMINIMAL_STACK_SIZE, not the TCPIP_THREAD_STACKSIZE parameter in the �?key option“ in the STM32Cubemx LWIP page

is a bug?​

1 REPLY 1
Piranha
Chief II

No, it is not a bug because the Ethernet link thread is not an lwIP core (TCPIP) thread. But don't worry, it's broken in a bunch of other ways. Also the link thread can be eliminated altogether by integrating it's functionality in the network reception thread (ethernetif_input() function), but HAL/Cube developers cannot understand it.

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