Skip to main content
Lpan
Visitor II
January 14, 2023
Question

Lwip with Freertos STM32CubeMx generate code problem.

  • January 14, 2023
  • 1 reply
  • 807 views

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?​

This topic has been closed for replies.

1 reply

Piranha
Principal III
January 14, 2023

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