Re: [lwip-users] lwIP hangs after some data transferred

2014-10-17 Thread Grzegorz Niemirowski
Grzegorz Niemirowski grzeg...@grzegorz.net napisał(a): Further analysis gave following observations: - thread blocks on fetch because packets are no longer inserted into mbox - packets are not inserted because the ETH interrupt is no longer raised - there is no interrupt because reception is

Re: [lwip-users] lwIP hangs after some data transferred

2014-10-04 Thread Grzegorz Niemirowski
Grzegorz Niemirowski grzeg...@grzegorz.net napisał(a): I'm still fighting with the problem. The stack hangs on fetching packets from mbox. I have tried following code (added printfs): printf(fetch %u\n, num++); sys_timeouts_mbox_fetch(mbox, (void **)msg); printf(OK\n); And I get fetch 2272

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-30 Thread Grzegorz Niemirowski
Sergio R. Caprile scapr...@gmail.com napisał(a): Hi Grzegorz, let's make this a kickstarter for the FAQ ;^) single thread applies mostly to raw API users and/or vendor code; they use an RTOS and the raw API and forget to call the lwIP stack from a single thread. I've seen some vendor code which

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-03 Thread Sergio R. Caprile
Hi Grzegorz, let's make this a kickstarter for the FAQ ;^) single thread applies mostly to raw API users and/or vendor code; they use an RTOS and the raw API and forget to call the lwIP stack from a single thread. I've seen some vendor code which also calls the stack from within interrupt code.

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-03 Thread Grzegorz Niemirowski
=silrd@nongnu.org on behalf of Grzegorz Niemirowski Sent: Tue 9/2/2014 8:34 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] lwIP hangs after some data transferred Thanks Noam. I have interrupt priorities set exactly as you have written. The problem must be somewhere else

[lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Grzegorz Niemirowski
Hello, I write code for SMT32 board using FreeRTOS and lwIP 1.4.1. I use sockets. There is a simple TCP server: it accepts incoming connection, reads 100 bytes sent from PC, sends 100 byte reply, closes connection and waits for another connection. I observed that after some time lwIP stops

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Noam weissman
, September 02, 2014 12:09 AM To: lwip-users@nongnu.org Subject: [lwip-users] lwIP hangs after some data transferred Hello, I write code for SMT32 board using FreeRTOS and lwIP 1.4.1. I use sockets. There is a simple TCP server: it accepts incoming connection, reads 100 bytes sent from PC, sends 100 byte

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Grzegorz Niemirowski
@nongnu.org] On Behalf Of Grzegorz Niemirowski Sent: Tuesday, September 02, 2014 12:09 AM To: lwip-users@nongnu.org Subject: [lwip-users] lwIP hangs after some data transferred Hello, I write code for SMT32 board using FreeRTOS and lwIP 1.4.1. I use sockets. There is a simple TCP server: it accepts

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Sergio R. Caprile
Hi guys, I've been online for a couple months on the list and I'm already tired of reading about this; I imagine how you guys are... ;^) Anyway, joke aside, since people don't search the list they will probably won't read the wiki either, is there anything we can do to induce RTOS users to check

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread goldsi...@gmx.de
Krzysztof Wesołowski wrote: Second possible issue is that some old (?) STM32 demo code only processed one packet per interrupt, causing extra packets to be stalled in memory. That's a really good hint. I keep forgetting about that, although I'm using their controllers - but not with the code

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Grzegorz Niemirowski
I can imagine how you can feel but I really avoid posting to any forum or mailing list before investigating a problem by myself. I read about priorities and they are set correctly. I don't know what you mean by single thread but every socket I use is accessed only in the thread where it was

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Noam weissman
- From: lwip-users-bounces+noam=silrd@nongnu.org [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of Grzegorz Niemirowski Sent: Tuesday, September 02, 2014 12:09 AM To: lwip-users@nongnu.org Subject: [lwip-users] lwIP hangs after some data transferred Hello, I write code