The problem is you should never return NULL with sys_arch_timeouts(). If you enable assert, you should got this message : "sys_timeout: timeouts != NULL" (from sys.c, line 206). ==================================== Frédéric BERNON HYMATOM SA Chef de projet informatique Microsoft Certified Professional Tél. : +33 (0)4-67-87-61-10 Fax. : +33 (0)4-67-70-85-44 Email : [EMAIL PROTECTED] Web Site : http://www.hymatom.fr <http://www.hymatom.fr/> ==================================== P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de embed9527
Envoyé : lundi 26 novembre 2007 09:34
À : [email protected]
Objet : [lwip-users] arter getting error sys timeouts in the
funtionsys_arch_timeouts()
Hi,
I'm using lwip cvs update, My software and hardware is at91sam7x256
+ ucos + lwip,
I'm committed to the stability of the test lwip. my target board
connects to company's LAN, so it can recieve a lot of enthernet data. sometime,
when lwip get the timeouts error by the funtion sys_arch_timeouts(), I return
NULL, and then, lwip doesn't work well, it debugs out information
memp_malloc: out of memory in pool PBUF_POOL
forever!
I want to known when the funtion sys_arch_timeouts() gets the error
timeouts, what can be return?
My second question is in the funtion netconn_recv(). I don't use
socket, so when I want to receive data, netconn_recv() is been called. In the
funtion, first it asks a buf, then waits for data coming forever. sometimes, I
want to close the connect in another task, but the funtion netconn_recv()
doesn't return, and the buf doesn't free forever!
Thanks.
<<image001.jpg>>
<<image002.jpg>>
BEGIN:VCARD VERSION:2.1 N:BERNON;Frédéric;;M. FN:Frédéric BERNON ORG:HYMATOM SA;Recherche et Développement TITLE:Chef de projet informatique TEL;WORK;VOICE:04-67-87-61-10 TEL;WORK;FAX:04-67-70-85-44 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de Massacan;VENDARGUES;;34740;FRANCE; LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175 rue de Massacan=0D=0AVENDARGUES 34740=0D= =0AFrance URL;WORK:http://www.hymatom.fr ROLE:Chef de projet informatique EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20020404T083210Z END:VCARD
_______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
