I use ATMEL UC3 software framework + ppp on UC3A0512 device with external
SDRAM as heap.
Whenever it crashes, i.e no other task seem to be running, I have an LED
task that flashes the LEDS which stops.
If I stop the AVR32Studio debugger, I see that it always stops at
QueueReceive, and tracing back, sys_arch_mbox_fetch last called, and it
fails in the function: in the line pointed out below
The other way I can simulate this promlem is that I establish a connection,
then I remove the antenna, hence no physical connection to the server, and I
trigger a new connection using external trigger which will try and do a
netconn_connect.
netconn_connect then blocks for about 20 seconds or so, and returns with
ERR_ARBT(-3), I then retry another netconn_connect and same timeout and same
error, now when I connect the antenna back again and establish my physical
layer connection and then I try to establish a TCP connection using
netconn_connect again, it fails in the same way as descibed above.
static void prvCopyDataFromQueue( xQUEUE * const pxQueue, const void
*pvBuffer )
{
if( pxQueue->uxQueueType != queueQUEUE_IS_MUTEX )
{
pxQueue->pcReadFrom += pxQueue->uxItemSize;
if( pxQueue->pcReadFrom >= pxQueue->pcTail )
{
pxQueue->pcReadFrom = pxQueue->pcHead; // ***** FAILS HERE ****
}
memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->pcReadFrom, ( unsigned )
pxQueue->uxItemSize );
}
}
Kind Regards, Sirjee Rooplall Figment Design laboratories (Pty) Ltd mailto:
[email protected] Mobile: +27 (0)83 230 8466
----- Original Message -----
From: "Kieran Mansley" <[email protected]>
To: "Mailing list for lwIP users" <[email protected]>
Sent: Tuesday, January 26, 2010 2:59 PM
Subject: Re: [lwip-users] lwip 1.2.0 + freeRTOS
On Mon, 2010-01-25 at 11:15 +0200, Sirjee Rooplall wrote:
Hi, I am using lwip 1.2.0 under freeRTOS, I am also using PPP +
external modem to establish a PPP connection to a server over GPRS.
All works well, provided I can establish a connection to the server
and the connection is closed.
If for some reason the connection is not closed, i.e the TCP/IP stack
does not get to the FIN_2 closing state, all hell breaks loose and my
system crashes when I attempt to re-connect to the server.
Could you give more details about where it goes wrong when you attempt
to re-connect?
Thanks
Kieran
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users