FreeRTOS+ TCP - SimpleTCPEchoServer Demo hangs at 90s

bk1 wrote on Wednesday, December 19, 2018:

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?

rtel wrote on Wednesday, December 19, 2018:

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

bk1 wrote on Thursday, December 20, 2018:

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/FreeRTOS_Plus_TCP/TCPIP_FAT_Examples_Atmel_SAM4E.html

bk1 wrote on Thursday, December 20, 2018:

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 )

rtel wrote on Thursday, December 20, 2018:

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.