Skip to main content
spate.2
Associate III
April 20, 2023
Question

Lwip is not working in CMSIS_V2

  • April 20, 2023
  • 15 replies
  • 5077 views

I am using stm32f756zg. In which i configure LWIP with FREERTOS cmsisv2. I am getting hard faults when ping devices from other devices.

It works fine when I change FREERTOS cmsis v1 and increase the default task stake.

15 replies

Associate
May 4, 2026

I observed a similar problem on STM32F746 using freeRTOS with LwIP setup via CubeMX. cmsis v1 worked fine, but cmsis v2 would fail assert at queue.c line 1124:

configASSERT( pxQueue->uxItemSize == 0 );

This is due to memory corruption.

I fixed my issue by changing LWIP/Target/ethernetif.c:

#define INTERFACE_THREAD_STACK_SIZE (1024)
 
Unfortunately I have not found a way to set this in CubeMX.