Other Parts Discussed in Thread: FFTLIB, MATHLIB
Tool/software: TI-RTOS
Hello. I'm continuing with the example and get some unexpected behavior. I made a modification: set infinite loop for sending raw packet like this
while(1)
{
bytes = sendnc(sraw, (char *)pBuffer, PACKET_SIZE, hPkt, 0);
if( bytes < 0 ){
NIMU_testLog("Error: Raw Eth Send failed Error:%d\n", fdError());
sendncfree(hPkt);
fdCloseSession( TaskSelf() );
fdClose(sraw);
TaskExit();
}
}
And after some period it got an error...
It leads me to the file "raweth.c" and function "RawEthTxPacketNC" where the error occurs
if ((pPkt->pDataBuffer + pPkt->DataOffset) != (UINT8 *)pBuffer)
{
raweths.SndNoPacket++;
return (EINVAL);
}
What happens here and why the handle is wrong? What should I do to get rid of this?