I’m using FreeRTOS 7.3 and lwIP 1.4.1 on a NXP LPC1776 MCU.
The problem I have is that the TCP/IP task is not called any more after a few minutes. It runs into xQueueGenericReceive. Because the queue is empty but xTicksToWait is nonzero vTaskPlaceOnEventList is called. After calling portYIELD_WITHIN_API the task does not start again although ethernet packets are received. The receive interrupts is still firing but the RTOS is running the IDLE and all other tasks but not the TCP/IP task.
I’m using IAR embedded workbench and the C-SPY debugger. I can see that the TCP/IP task is placed in the ready queue. This task has the highest priority in the system.
I made a similar application running on the LPC4337 Cortex-M4 core which runs without any problems.
I also verified that there is no stack overflow and the interrupt priorities are set via the CMSIS function NVIC_SetPriority.
I’m using FreeRTOS 7.3 with configAssert defined as
Please use the latest version with configASSERT() defined - it has extra assert statements specifically to trap common configuration problems on Cortex-M devices.
Please zip up your project and send it to the “business contact” email address listed on http://www.freertos.org/contact . I will take a quick look to see if I can see anything obvious, otherwise we will have to take a deeper dive to try and debug what is happening.