[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS
From: |
Marco Jakobs |
Subject: |
Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS |
Date: |
Thu, 08 Jul 2010 10:13:55 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 |
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 querying the LwIP stats), so this may be another query.
There is really a lot of broadcast and multicast packets in the network
during the Win7 startup - as i only can see the point where my watchdog
task detects the system not running anymore, there is a ~8 sec window
where it may happen. I saw nothing really special in the wireshark
traces at crash time (but i may post the trace here if someone is
interested).
I'm struggling again a bit as the LwIP_stats are showing nothing special
at crash time, no overflows etc. Maybe LwIP was not able to record what
happens into its stats before it crashes. I'll post the stats after a
night of running the system and after a PC start this morning. As you
can see in the log at the bottom, one of my RTU devices crashed during
the win7 startup at 7:12:33, but not the CPU device from where i pulled
the stats. So the CPU got all the X-cast packets at the startup and they
must be in the stats.
As a next step i've disabled IPv6 at my PC (there are a bunch auf IPv6
X-casts at startup and i did not see this with XP) to see if this is the
problem (what will LwIP do with IPv6 casts?). I may try to catch the
system to a breakpoint with the JTAG when it happens, but i need some
advice what i have to check then ...
BTW: What is the "memerr" count in the LwIP stats in "Link", "IP", "TCP"
etc... ?
>ipstats
--- IP stack statistics output ---
MEM UDP_PCB
avail: 64
used: 3
max: 5
err: 0
MEM TCP_PCB
avail: 32
used: 1
max: 1
err: 0
MEM TCP_PCB_LISTEN
avail: 32
used: 3
max: 3
err: 0
MEM TCP_SEG
avail: 16
used: 1
max: 3
err: 0
MEM NETBUF
avail: 16
used: 0
max: 3
err: 0
MEM NETCONN
avail: 16
used: 7
max: 8
err: 0
MEM TCPIP_MSG_API
avail: 8
used: 0
max: 0
err: 0
MEM TCPIP_MSG_INPKT
avail: 8
used: 0
max: 6
err: 0
MEM ARP_QUEUE
avail: 8
used: 0
max: 2
err: 0
MEM SYS_TIMEOUT
avail: 6
used: 2
max: 2
err: 0
MEM PBUF_REF/ROM
avail: 16
used: 0
max: 1
err: 0
MEM PBUF_POOL
avail: 64
used: 0
max: 33
err: 0
LINK
xmit: 26807
recv: 33069
fw: 0
drop: 0
chkerr: 0
lenerr: 0
memerr: 0
rterr: 0
proterr: 0
opterr: 0
err: 0
cachehit: 0
ETHARP
xmit: 8
recv: 2784
fw: 0
drop: 0
chkerr: 0
lenerr: 0
memerr: 0
rterr: 0
proterr: 0
opterr: 0
err: 0
cachehit: 17972
IP
xmit: 26752
recv: 29162
fw: 0
drop: 85
chkerr: 0
lenerr: 57
memerr: 0
rterr: 1
proterr: 0
opterr: 0
err: 0
cachehit: 0
ICMP
xmit: 0
recv: 0
fw: 0
drop: 0
chkerr: 0
lenerr: 0
memerr: 0
rterr: 0
proterr: 0
opterr: 0
err: 0
cachehit: 0
UDP
xmit: 26647
recv: 18910
fw: 0
drop: 0
chkerr: 0
lenerr: 0
memerr: 0
rterr: 1
proterr: 0
opterr: 0
err: 0
cachehit: 46
TCP
xmit: 106
recv: 111
fw: 0
drop: 0
chkerr: 0
lenerr: 0
memerr: 11
rterr: 0
proterr: 0
opterr: 0
err: 0
cachehit: 0
MEM HEAP
avail: 8192
used: 952
max: 1436
err: 0
SYS
sem.used: 0
sem.max: 0
sem.err: 0
mbox.used: 0
mbox.max: 0
mbox.err: 0
OK.
>plog
OK.
--------------- Protocol logger output started
07.07.10 23:00:38 Protocol logger cleared.
07.07.10 23:01:38 Telnet session ended.
08.07.10 07:12:33 IOU 2 is OFFLINE.
08.07.10 07:12:47 IOU 2 @ 192.168.2.11: RESET occured.
08.07.10 07:12:47 IOU 2 @ 192.168.2.11: Comm TIMEOUT occured, I/O were
set to default.
08.07.10 07:12:48 IOU 2 is online.
08.07.10 09:53:48 Telnet login by marco.
--------------- Protocol logger output ended
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Marco Jakobs, 2010/07/07
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Marco Jakobs, 2010/07/07
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, David Empson, 2010/07/07
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Marco Jakobs, 2010/07/15
- RE: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Bill Auerbach, 2010/07/15
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Simon Goldschmidt, 2010/07/17
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, FreeRTOS Info, 2010/07/17
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Marco Jakobs, 2010/07/19
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Marco Jakobs, 2010/07/19
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Simon Goldschmidt, 2010/07/20
- Re: [lwip-users] Windows 7 Startup crashes LwIP and Free RTOS, Marco Jakobs, 2010/07/20