Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS (SOLVED)

2010-07-29 Thread Marco Jakobs
Hi all, since i've fixed the routine, no crash happened on any device. This seemed to be the problem which was definitely not inside LwIP here. Thank you all for your great support and suggestions! Marco Am 20.07.2010 13:42, schrieb Marco Jakobs: Hi, i may have found a problem reviewing

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-20 Thread Simon Goldschmidt
Marco Jakobs wrote: > I will change the second loop in that function, so that after > NB_RX_BUFFERS cycle the loop will exit and free all Rx buffers. In the second loop, I would break with an error when finding a StartOfFrame without finding an EndOfFrame first, that way you don't need to walk

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-20 Thread Marco Jakobs
Hi, i may have found a problem reviewing the EMAC code. The function ulEMACInputLength is called before the EMAC buffers are copied into the pbufs. It sets ulNextRxBuffer to the buffer with a Start Of Frame set and gives back the total length which is written in the last buffer of the frame.

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-20 Thread Simon Goldschmidt
Marco Jakobs wrote: > Do you (or anybody) has any example code for this? Well, I guess that largely depends on your MAC, which I don't know. Personally, I don't have these problems as I have enough memory to just allocate a maximum-sized frame for every packet (since small packets which just co

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-19 Thread Marco Jakobs
Good morning, Simon Am 20.07.2010 07:36, schrieb Simon Goldschmidt: That's rather a driver question, not an lwIP question: the driver should make sure that it only delivers complete packets to lwIP. I.e. if some parts of the packet are missing due to the MAC trying to split it to multiple buff

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-19 Thread Simon Goldschmidt
Marco Jakobs wrote: > Question one: > What is the behaviour of LwIP in that case, if there are still some > frames of the packet in the EMAC buffers but some other frames are > missing due to the EMAC threw them away because of an overflow? That's rather a driver question, not an lwIP question:

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-19 Thread Marco Jakobs
Hi all, i reverted in having some looks to it again. Having a deeper look at the EMAC driver task (Richard ;-) ), i see really nothing which may cause the system to hang. The interrupt just sets the semaphore, and the EMAC task reads out all the EMAC buffers if it is triggered by the semaphore

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-18 Thread Marco Jakobs
Dear Bill and all, of course i'm *not* really satisfied with that. But actually i need to continue some application work, i still lost a bunch of time with that. I will return investigating this for sure ... but a bit later. @Richard: For my understanding the interrupt mechanism with the sema

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-17 Thread FreeRTOS Info
bounces+bauerbach=arrayonline@nongnu.org >>> [mailto:lwip-users-bounces+bauerbach=arrayonline....@nongnu.org] On >>> Behalf Of Marco Jakobs >>> Sent: Thursday, July 15, 2010 3:10 PM >>> To: lwip-users@nongnu.org >>> Subject: Re: [lwip-users]

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-17 Thread Simon Goldschmidt
> -Original Message- >> From: lwip-users-bounces+bauerbach=arrayonline@nongnu.org >> [mailto:lwip-users-bounces+bauerbach=arrayonline@nongnu.org] On >> Behalf Of Marco Jakobs >> Sent: Thursday, July 15, 2010 3:10 PM >> To: lwip-users@nongnu.org >> S

RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-15 Thread Bill Auerbach
ehalf Of Marco Jakobs >Sent: Thursday, July 15, 2010 3:10 PM >To: lwip-users@nongnu.org >Subject: Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS > >Dear all, > >to finalize this with a status: After changing the EMAC initialization >to non-promiscuous mo

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-15 Thread Marco Jakobs
Dear all, to finalize this with a status: After changing the EMAC initialization to non-promiscuous mode (MAC filtering enabled at EMAC level, broadcasts enabled), the problem did not occur on all devices for a week now. Seems to be solved (or better: avoided) with this setting. Actually i c

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-08 Thread Marco Jakobs
Hi, thanks David for the detailed explanation. But also interesting, as my system communicates (at the moment) with only 3 other devices permanently at least every 200ms (So these MACs are well known all the time). It will send back to the PC after establishing the Telnet access (i.e. for que

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-07 Thread David Empson
08, 2010 4:42 AM Subject: Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS Hi, i have set up the discussed environment and have put it on my main network. Of course it survived my first restart, but i have taken the IPStats after the startup of my PC. The only difference i

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-07 Thread Marco Jakobs
Hi, i have set up the discussed environment and have put it on my main network. Of course it survived my first restart, but i have taken the IPStats after the startup of my PC. The only difference i see after the PC startup is a high number of errors in the "MEM ARP_QUEUE" ... whatever this

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-07-07 Thread Marco Jakobs
Hi, sorry for the missing action last week ... i was pretty busy and had no time for my project. As i have a defined place running in when this happens (my watchdog task), i'll put out the LwIP stats on the debug interface if this happens. If i will catch it, i'll post the stats here. Will

RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-30 Thread Pettinato, Jim
@nongnu.org] On Behalf Of Marco Jakobs Sent: Wednesday, June 30, 2010 2:30 AM To: lwip-users@nongnu.org Subject: Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS Addendum: Reviewing the effect, i've proved that all lower priorized tasks than LwIP are not running anymore.

RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-30 Thread Bill Auerbach
>I may try to disable my watchdog functions so i'll get no reset and >maybe i can get in this state with the JTAG attached and debugger >running. Or make the watchdog unreasonably long for a test to see really if it's hanging, or only 'getting stuck' somewhere a lot longer than you anticipated. B

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread Marco Jakobs
Addendum: Reviewing the effect, i've proved that all lower priorized tasks than LwIP are not running anymore. These functions are completely frozen. Higher priorized tasks like my watchdog task are still running fine. So i'm really sure that LwIP somehow loops somewhere, not making a task yie

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread Marco Jakobs
Dear Kieran, you may be right - with the debug function, the packets are still arriving in that way, but the timing inside the stack differs and some packets may be lost due to full buffers. So this is no way to get behind the problem. I may try to disable my watchdog functions so i'll get n

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread Kieran Mansley
On 29 Jun 2010, at 17:45, Marco Jakobs wrote: > Dear all, > > i can't get a LwIP debug log out of it. Enabling the debug output seems to > alter the condition - on the debug enabled device it did not happen, but on > the others. Debug output makes LwIP incredible slow when a bunch of packets

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread goldsi...@gmx.de
Pettinato, Jim wrote: I don't see anything amiss... but I must admit I am not a FreeRTOS user so probably not the best set of eyes to be performing code reviews. Same for me here: there are some tiny things I would have done differently, but I wouldn't suspect any of them leading to a reboot..

RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread Pettinato, Jim
g] On Behalf Of FreeRTOS Info Sent: Tuesday, June 29, 2010 2:04 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS On 29/06/2010 18:31, Marco Jakobs wrote: > Hi Jim, > > here is an alternative to the dropbox, if you have some m

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread FreeRTOS Info
On 29/06/2010 18:31, Marco Jakobs wrote: > Hi Jim, > > here is an alternative to the dropbox, if you have some minutes to look > :-): > > http://www.majak.de/downloads/EMAC.zip > > Kind regards > Marco > > Am 29.06.2010 19:08, schrieb Pettinato, Jim: >> Unfortunately dropbox.com is blocked by t

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread Marco Jakobs
Hi Jim, here is an alternative to the dropbox, if you have some minutes to look :-): http://www.majak.de/downloads/EMAC.zip Kind regards Marco Am 29.06.2010 19:08, schrieb Pettinato, Jim: Unfortunately dropbox.com is blocked by the corporate firewall here so I haven't been able to review your

RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread Pettinato, Jim
u.org [mailto:lwip-users-bounces+jim.pettinato=fmcti@nongnu.org] On Behalf Of Marco Jakobs Sent: Tuesday, June 29, 2010 12:45 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS Dear all, i can't get a LwIP debug log out of it. Enabling the debug ou

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-29 Thread Marco Jakobs
Dear all, i can't get a LwIP debug log out of it. Enabling the debug output seems to alter the condition - on the debug enabled device it did not happen, but on the others. Debug output makes LwIP incredible slow when a bunch of packets arrive (my Telnet server is nearly unuseable with the deb

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-24 Thread Marco Jakobs
Hi Simon, i may modify my watchdog task to prevent it from rebooting the system ... but for now i'm running the debug log recorded and a wireshark trace in parallel. I will see exactly the point where it restarts as i have the exact time in the protocol logger of my device, and also i'll see

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-24 Thread goldsi...@gmx.de
Marco Jakobs wrote: Wireshark is not what makes me headache about the size ... it's the debug output of LwIP, recorded with the terminal program. This will grow very fast, and the problem occurs not that often that i can reproduce it. But i'll set this up ... Can't you prevent your boards from

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-24 Thread Marco Jakobs
Hi Jim, no problem, but if you (or someone) wants to have a look on it - thank you very much! I've put the content of the \LwIP\port\EMAC directory in a zip file here: http://dl.dropbox.com/u/6370481/EMAC.zip Wireshark is not what makes me headache about the size ... it's the debug output o

RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-24 Thread Pettinato, Jim
e capture files. From: lwip-users-bounces+jim.pettinato=fmcti@nongnu.org [mailto:lwip-users-bounces+jim.pettinato=fmcti@nongnu.org] On Behalf Of Marco Jakobs Sent: Thursday, June 24, 2010 1:00 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] Windows 7 Startup crashes LwIP and F

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-24 Thread Marco Jakobs
e 22, 2010 3:56 PM *To:* lwip-users@nongnu.org *Subject:* [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS Hi all, i have noticed a really strange effect here. On my "home control project" i actually have 4 devices with Free RTOS and LwIP 1.31 running. They are communicating to

RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-24 Thread Kieran Mansley
On Wed, 2010-06-23 at 08:06 -0400, Pettinato, Jim wrote: > > > > I recommend that you 1) enable all the debug and statistics options in > the lwIP stack; and 2) use Wireshark to capture the network traffic so > when it happens again you can examine the actual activity that led to > the reboots

RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-23 Thread Pettinato, Jim
[mailto:lwip-users-bounces+jim.pettinato=fmcti@nongnu.org] On Behalf Of Marco Jakobs Sent: Tuesday, June 22, 2010 3:56 PM To: lwip-users@nongnu.org Subject: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS Hi all, i have noticed a really strange effect here. On my "home control proje

Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-22 Thread Marco Jakobs
Sorry, meant LwIP 1.3.2, not 1.3.1 Am 22.06.2010 21:56, schrieb Marco Jakobs: i have noticed a really strange effect here. On my "home control project" i actually have 4 devices with Free RTOS and LwIP 1.31 running. They are communicating together over a Ethernet Switch, which is also connecte

[lwip-users] Windows 7 Startup crashes LwIP and Free RTOS

2010-06-22 Thread Marco Jakobs
Hi all, i have noticed a really strange effect here. On my "home control project" i actually have 4 devices with Free RTOS and LwIP 1.31 running. They are communicating together over a Ethernet Switch, which is also connected to my home network. The system is running 24/7 in a test here on my