lwip_socket_init() is "new" (26 February 2007). Ports need to be adapt. "See 
Change to port API: new call to lwip_socket_init()needed" thread in forum.

You have to call it in your module init sequence :

     #if LWIP_STATS
     stats_init      ();
     #endif /* STATS */
     #if (NO_SYS == 0)
     sys_init        ();
     #endif /* (NO_SYS == 0) */
     mem_init        ();
     memp_init       ();
     pbuf_init       ();
     etharp_init     ();
     netif_init      ();
     lwip_socket_init();

 
  
====================================
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 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Joolz [RSD]
Envoyé : mercredi 21 mars 2007 16:15
À : Mailing list for lwIP users
Objet : [lwip-users] lwip_socket_init where should this be called from?


I have just tried to start an Http server and it crashes with "OSSemPend failed 
at 215 in lwip/src/arch/sys_arch.c". Now looking throught the call stack I see

    [ 9] pc 0x107160, fp 0x153eb8, sys_arch_sem_wait()+0x9c
    [ 8] pc 0x107ea4, fp 0x153ed4, sys_sem_wait()+0x70
    [ 7] pc 0x13503c, fp 0x153ef0, alloc_socket()+0x30
    [ 6] pc 0x1359b8, fp 0x153f04, lwip_socket()+0x80
    [ 5] pc 0x124130, fp 0x153f34, ht_newServerSocket()+0x34
    [ 4] pc 0x1246ac, fp 0x153f90, httpd_start()+0x13c
    [ 3] pc 0x109468, fp 0x153fa4, _startHttp()+0x34
    [ 2] pc 0x109434, fp 0xdead701b, _startHttp()

So I decided to look a bit further and found the routine lwip_socket_init but I 
cannot find where its called so both sockets semaphores are not created?

Where should this be called from?

Best Regards

Julian Gardner

Director / Software Development Manager
RSD Communications Ltd
Unit 2, 8 Borrowmeadow Road
Stirling Scotland FK7 7UW

Tel    +44 [0]1786 450572 Ext 238
Fax    +44 [0]1786 450572
Mob    +44 [0]7836 240907

WWW    http://www.rsdtv.com
EMAIL  [EMAIL PROTECTED]

==========================================

Please do not send me any email messages in HTML format or it may be deleted at 
our mail server without notice to sender or recipient. Message contents should 
be considered as confidential regardless of the contents.

 


_______________________________________________
lwip-users mailing list
[email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
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

Reply via email to