Hi,
I am using client.pjt project for communicating with host and C6474 EVM and made minor changes in the code for receiving UDP packets from host.I can see the data receiving into the processor by viewing the memory area and loop backing also works fine.But if try to copy the data from pBuf to any globally defined memory area for further processing,the following actions take place.
1. Ping works fine if I do not send any data.
2. Ping works fine if I starts sending data from host with out any interruption .If I stop sending the data from host , ping doesn’t work(Request time out).If remove the memcpy from the code(given below) it works fine.
for(;;)
{
tmp = sizeof( sin1 );
i = (int)recvncfrom( s, (void **)&pBuf, 0,(struct sockaddr *)&sin1, &tmp, &hBuffer );
memcpy((void *)buffertest,(void *)pBuf,i);
if( i >= 0 )
{
sendto( s,(void *)&pBuf, i, 0,(struct sockaddr *)&sin1, sizeof(sin1) );
recvncfree( hBuffer );
}
else
break;
}
Please let me know how can i correct it.
Regards,
OCV.