Hi Dirk,

I forgot about this completely… I checked my own code and found that I already 
used it before ☺

Thanks for reminding  this.

BR,
Noam.

From: lwip-users [mailto:lwip-users-bounces+noam=silrd....@nongnu.org] On 
Behalf Of Dirk Ziegelmeier
Sent: Wednesday, September 28, 2016 1:59 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] blocked udp

Whenever your application wants to send, use tcpip_callback() macro to get a 
function called in tcpip thread and do the sending work there.


Ciao
Dirk

--
Dirk Ziegelmeier * d...@ziegelmeier.net<mailto:d...@ziegelmeier.net> * 
http://www.ziegelmeier.net

On Wed, Sep 28, 2016 at 12:52 PM, Noam Weissman 
<n...@silrd.com<mailto:n...@silrd.com>> wrote:
Hi Simon,

What is the preferred way to send data from within LwIP context.

Beside running sys_timeout and hooking a function to it ?

If I want to send data at a high rate and I will set sys_timeout to say 1ms it 
will cause load
on the system. Is there another clean way to do it ?


BR,
Noam.


-----Original Message-----
From: lwip-users 
[mailto:lwip-users-bounces+noam<mailto:lwip-users-bounces%2Bnoam>=silrd....@nongnu.org<mailto:silrd....@nongnu.org>]
 On Behalf Of Simon Goldschmidt
Sent: Wednesday, September 28, 2016 1:33 PM
To: lwip-users@nongnu.org<mailto:lwip-users@nongnu.org>
Subject: Re: [lwip-users] blocked udp

garibaldi pineda garcia wrote:
> What I do is have an interrupt to receive the data from the FPGA and,
>in the main program loop (would this be the LWIP context?),

I guess so. That would mean you don't use an OS but use lwIP in NO_SYS=1 mode.

> I call a function to send data out. I also have an interrupt for the
> receive function for the LWIP data.

That would mean you call the lwIP TX functions from main loop while calling the 
RX functions from ETH RX interrupt. That's not supported and this most probably 
is your problem.


Simon

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org<mailto:lwip-users@nongnu.org>
https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org<mailto: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