lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] HardFault with lwip


From: address@hidden
Subject: [lwip-users] HardFault with lwip
Date: Thu, 14 Apr 2016 03:44:38 -0700 (MST)

Hello,
I'm using the lwip stack in combination with FreeRTOS for a http server and
modbus TCP.
The modbus TCP part makes no Problems.
But after some page hits the lwip stack crashes with a HardFault.
The crashes happens in the tcp_output and tcp_input function.
The HardFault comes from a unaligned memory access.
I tested different lwipopts.h and nothing helped. Using the
MEMP_OVERFLOW_CHECK make it worse.
Noticeable are the mbox errors.
If the MEMP_OVERFLOW_CHECK isn't setI get some errors at the memp[6] but the
HardFault comes approximately ten times later.
Where can the problem come from?
What are god ways to find such a fault?
Here are my lwip_stats:
link = {xmit = 0, recv = 0, fw = 0, drop = 0, chkerr = 0, lenerr = 0, memerr
= 0, rterr = 0, proterr = 0, opterr = 0, err = 0, cachehit = 0}
etharp = {xmit = 1, recv = 37, fw = 0, drop = 48, chkerr = 0, lenerr = 0,
memerr = 0, rterr = 0, proterr = 48, opterr = 0, err = 0, cachehit = 13515}
ip = {xmit = 13515, recv = 25585, fw = 0, drop = 0, chkerr = 0, lenerr = 0,
memerr = 0, rterr = 0, 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 = 0, recv = 8, fw = 0, drop = 0, chkerr = 0, lenerr = 0, memerr
= 0, rterr = 0, proterr = 0, opterr = 0, err = 0, cachehit = 0}
tcp = {xmit = 13050, recv = 25574, fw = 0, drop = 66, chkerr = 0, lenerr =
0, memerr = 0, rterr = 0, proterr = 66, opterr = 0, err = 0, cachehit = 0}
mem = {avail = 20480, used = 184, max = 372, err = 0, illegal = 0}
memp = {{avail = 4, used = 0, max = 0, err = 0, illegal = 0},
                {avail = 10, used = 0, max = 0, err = 0, illegal = 0},
                {avail = 40, used = 40, max = 40, err = 0, illegal = 0},
                {avail = 30, used = 2, max = 2, err = 0, illegal = 0},
                {avail = 34, used = 2, max = 4, err = 0, illegal = 0},
                {avail = 2, used = 0, max = 1, err = 0, illegal = 0},
                {avail = 4, used = 1, max = 4, err = 0, illegal = 0},
                {avail = 8, used = 0, max = 0, err = 0, illegal = 0},
                {avail = 8, used = 0, max = 7, err = 0, illegal = 0},
                {avail = 20, used = 4, max = 4, err = 0, illegal = 0},
                {avail = 200, used = 0, max = 2, err = 0, illegal = 0},
                {avail = 10, used = 0, max = 7, err = 0, illegal = 0}}
sys = {sem = {used = 2, max = 5, err = 0}
mutex = {used = 0, max = 0, err = 0}
mbox = {used = 3, max = 6, err = 9} 



--
View this message in context: 
http://lwip.100.n7.nabble.com/HardFault-with-lwip-tp26174.html
Sent from the lwip-users mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]