FreeRTOS+ TCP – SimpleTCPEchoServer Demo hangs at 90s

I’m trying SimpleTCPEchoServer Demo on ATSAM4E, it’s working fine, but seems to hang after 90 seconds into it. I’m sending data every 1 second. Any suggestions?

FreeRTOS+ TCP – SimpleTCPEchoServer Demo hangs at 90s

Is this an example that we provided, or a port you created yourself?

FreeRTOS+ TCP – SimpleTCPEchoServer Demo hangs at 90s

I modifed the example that were provided so that instead of echoing back the received data, send back my 49Bytes data every time data is received. https://www.freertos.org/FreeRTOS-Plus/FreeRTOSPlusTCP/TCPIPFATExamplesAtmelSAM4E.html

FreeRTOS+ TCP – SimpleTCPEchoServer Demo hangs at 90s

Looks like it’s stuck in this while loop. static void prvCheckTasksWaitingTermination( void ) {
/** THIS FUNCTION IS CALLED FROM THE RTOS IDLE TASK **/

#if ( INCLUDE_vTaskDelete == 1 )
{
    BaseType_t xListIsEmpty;

    /* ucTasksDeleted is used to prevent vTaskSuspendAll() being called
    too often in the idle task. */
    while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )

FreeRTOS+ TCP – SimpleTCPEchoServer Demo hangs at 90s

That is just part of the idle task’s implementation – it runs when there is nothing else to do – which is quite often in that example as most of the time is spent waiting for network activity.