We're using the FreeRTOS and LWIP that came with the EVK1100 evaluation board. (LWIP version 1.2.0)
We have implemented a TCP server and a UDP "server" running in the same thread with the lwip_select (). - Both works as command interpreters, sending answer back.
Running TCP alone and UDP alone works fine
Running TCP and UDP at the same time make the network hang after a while. Other threads are still running.
We have traced to problem down to the while loop below when calling a lwip_sendto on the UDP port: (Always the same)
Does anyone know if this is a known problem of the LWIP port to AVR32 ?
Does anyone know of a fix ?
err = netconn_send(sock->conn, buf);
sys_arch_mbox_fetch(mbox, msg, 0);
while( pdTRUE != xQueueReceive( mbox, &(*msg), 10000 ) ) // time is arbitrary