Hi,

When these kinds of delays help I ususally find that a call that should 
block don't block, check the functions in your sys_arch.c and verify that 
they work as lwip expects.

In 1.4.0 (and 1.3.2 I think) dns_init() is called from lwip_init(). 
Wouldn't it be easier if your system ran the standard init-sequence?

In my experience the error is usually in my own code, the debug 
definitions *_DEBUG in lwipopts.h have time and time again helped me 
locate my problems, if you haven't used them give them a try. 
LWIP_DEBUG_DNS might be a good start.

Best regards
/Åke

-----------------------------
Åke Forslund
0433-273296
NIBE AB
Box 14
S-285 21  Markaryd
Tel +46-(0)433-273296




From:
"toto.conseil" <toto.cons...@laposte.net>
To:
Mailing list for lwIP users <lwip-users@nongnu.org>
Date:
2011-06-21 17:14
Subject:
Re: [lwip-users] problem with the DNS functions
Sent by:
lwip-users-bounces+ake.forslund=nibe...@nongnu.org




Without delay, the program execute dns_init and it remains in the file 
"task.c".
With a delay inferior at 10sec, the program doesn't evolve.
I set this delay for to have the time to execute dns_init.

I find strange to have a delay here and especially superior at 10sec.

Thank you in advance.






> Message du 21/06/11 12:36
> De : "Kieran Mansley" 
> A : "Mailing list for lwIP users" 
> Copie à : 
> Objet : Re: [lwip-users] problem with the DNS functions
>
> On Tue, 2011-06-21 at 12:19 +0200, toto.conseil wrote:
> > I must use a delay ("vTaskDelay (12000);", 12sec)between the two
> > functions otherwise it doesn't work.
> 
> Can you describe "doesn't work" in more detail? Does it return an error
> for example? If so that error will probably be a big clue to the
> problem.
> 
> Kieran
> 
> 
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>

Une messagerie gratuite, garantie à vie et des services en plus, ça vous 
tente ?
Je crée ma boîte mail www.laposte.net


_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to