cancel
Showing results for 
Search instead for 
Did you mean: 

How tu run "Simple TCP Echo Server Demo" in SPC58EC-DISP?

VNava.1
Associate III

Hi community!

my name is Vincenzo and I would like to ask you which are the steps that I have to follow in order to run a demo available in the Application SPC58ECxx_RLA Network Ping Test Application for Discovery

Up to now I can ping the SPC58EC-DISP connecting my PC to the board via Ethernet cable. Now I would like to run a demo called Simple TCP Echo Server Demo.

In order to do this I tried to check the box related to this demo inside the FreeRTOS TCP/IP Component RLA

and I modified the main.c file in this way:

#include "components.h"
#include "task.h"
#include "SimpleTCPEchoServer.h"
 
void vApplicationIdleHook(void)
{
  pal_lld_togglepad(PORT_F, PF_LED1);
}
 
/*
 * Application entry point.
 */
int main(void) {
 
  /* Initialization of all the imported components in the order specified in
     the application wizard. The function is generated automatically.*/
  componentsInit();
 
  /* Enable Interrupts */
  irqIsrEnable();
 
  vStartSimpleTCPServerTasks(1024, 2);
 
  vTaskStartScheduler();
 
  /* If all is well, the scheduler will now be running, and the following
     line will never be reached.  If the following line does execute, then
     there was insufficient FreeRTOS heap memory available for the idle and/or
     timer tasks     to be created.  See the memory management section on the
     FreeRTOS web site for more details.  http://www.freertos.org/a00111.html */
  for( ;; )
  {}
 
  return 0;
}

Simply I included the SimpleTCPEchoServer.h file and I add the function vStartSimpleTCPServerTasks(1024, 2);

If I execute from flash this application, thanks UDE, I can see that the application dies within the function FreeRTOS_setsockopt

	/* Set a time out so accept() will just wait for a connection. */
	FreeRTOS_setsockopt( xListeningSocket, 0, FREERTOS_SO_RCVTIMEO, ( void * ) &xReceiveTimeOut, sizeof( xReceiveTimeOut ) );

Can you help me understand what are the correct steps to run this demo?

Thanks in advance for your support,

Vincenzo

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
2 REPLIES 2
VNava.1
Associate III

Do you have any solutions to this question?

Thanks

Vincenzo

Erwan YVIN
ST Employee

Sorry , for the late answer.

Could you increase the stack size for your configuration ?

where is the PC (Program Counter) ?

Best regards

Erwan