lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : RE : [lwip-users] lwip_socket_init where should this be calledfrom?


From: Frédéric BERNON
Subject: RE : RE : [lwip-users] lwip_socket_init where should this be calledfrom?
Date: Wed, 21 Mar 2007 16:29:26 +0100

Main lwIP docs are obsolete, and we have to update them. To do, to do...
  
====================================
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 : address@hidden 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Joolz [RSD]
Envoyé : mercredi 21 mars 2007 16:22
À : Mailing list for lwIP users
Objet : RE: RE : [lwip-users] lwip_socket_init where should this be calledfrom?


Had a quick look in docs but could not see it? thanks 

-----Original Message-----
From: Frédéric BERNON [mailto:address@hidden 
Sent: 21 March 2007 15:26
To: Mailing list for lwIP users
Subject: RE : [lwip-users] lwip_socket_init where should this be called from?

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 : address@hidden
Web Site : http://www.hymatom.fr ====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden 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  address@hidden

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

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
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users




_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]