2021-10-21 12:23 AM
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
2021-10-26 01:00 AM
Do you have any solutions to this question?
Thanks
Vincenzo
2021-11-22 08:33 AM
Sorry , for the late answer.
Could you increase the stack size for your configuration ?
where is the PC (Program Counter) ?
Best regards
Erwan