heinbali01 wrote on Tuesday, March 22, 2016:
When the function FreeRTOS_recv() returns a negative number, it says:
else
{
/* Socket closed? */
break;
}
It would be more correct to write:
else if( lBytes != -pdFREERTOS_ERRNO_EWOULDBLOCK )
{
/* Socket closed? */
break;
}
When sending, you might get a non-fatal return value -pdFREERTOS_ERRNO_ENOSPC
What does your function get_ifm_test_reg() return?
rd_data = get_ifm_test_reg(AXI_TO_REG_BASEADDR , TESTFREQ_REGISTER1_OFFSET);
You assign the result to an integer int rd_data
Later on, you’re calling FreeRTOS_send() with rd_data as a parameter where void * is expected.
I’m afraid I do not understand the logic of your application 