gussabina wrote:
I'm using the Atmel port for ATSAM4E which comes from ASF (Atmel Software
Framework) integrated with FreeRTOS.
In that case, have you asked Atmel? Tell them the lwIP guys said it's
not an lwIP bug ;-)
If it is, I'll pay you a beer next time I see you :-)
Simon
gussabina wrote:
Ok. But TCP sockets works fine...
Honestly, that doesn't mean anything :-) There can well be other bugs
and TCP just happens to work...
Where do you have your lwIP port from? Who set up your interrupts and
thread configuration?
Actually, in below code I'm using select()
Ok. But TCP sockets works fine...Below is the code I'm using for TCP receive.
Actually, in below code I'm using select() to wait for receive data...Now
I'm confused...Should I use same approach for UDP?
Thanks;
Gus
/int SocketRead(void *context, byte* buf, int buf_len, int timeout_ms)
{
gussabina wrote:
Is the recvmbox supposed to be created by bind() function?
It's supposed to be allocated in socket() (that function fails if mbox
allocation fails) and removed in close() only. That's what makes me
think your port's mbox alloc/dealloc/check functions don't work correctly...
Thanks, Simon.
I will update and also try to debug it...
Is the recvmbox supposed to be created by bind() function? According to the
error message, this is not valid/existing when checked by the the recv()
function..
Thanks
Gus
--
View this message in context:
Thank you, Simon.
Where can I download v .2?
Gus
--
View this message in context:
http://lwip.100.n7.nabble.com/invalid-recvmbox-in-UDP-recv-function-tp29602p29618.html
Sent from the lwip-users mailing list archive at Nabble.com.
___
lwip-users
gussabina wrote:
> I'm using lwIP with FreeRTOS and I need to receive data via UDP. I'm testing
> the following code which goes through until recv() function where it stucks
> in the following line;
>
> LWIP_ERROR("netconn_accept: invalid recvmbox",
> sys_mbox_valid(>recvmbox), return ERR_CONN;);
Hello:
I'm using lwIP with FreeRTOS and I need to receive data via UDP. I'm testing
the following code which goes through until recv() function where it stucks
in the following line;
LWIP_ERROR("netconn_accept: invalid recvmbox",
sys_mbox_valid(>recvmbox), return ERR_CONN;);
inside