|
From: | Vincent Cui |
Subject: | [lwip-users] lwip tcpip_input cause hardfault |
Date: | Fri, 6 Sep 2013 21:55:42 +0000 |
All: I use STM32 with lwip1.4.1 to run, sometimes it cause hardfault after running some days or some hours. I dump CPU PC register to know that it happen in tcpip_input function some code about memp. #define MEM_SIZE (7*1024) #define MEMP_NUM_PBUF 20 /* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One per active UDP "connection". */ #define MEMP_NUM_UDP_PCB 3 /* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP connections. */ #define MEMP_NUM_TCP_PCB 8 /* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections. */ #define MEMP_NUM_TCP_PCB_LISTEN 8
/* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments. */ #define MEMP_NUM_TCP_SEG 10 /* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts. */ #define MEMP_NUM_SYS_TIMEOUT 10 /* ---------- Pbuf options ---------- */ /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ #define PBUF_POOL_SIZE 12 /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ #define PBUF_POOL_BUFSIZE 512 Does those define in lwipopt.h mean memp size is not enough for running ? Vincent
Vincent Cui Firmware Engineer Leader
Room1106, Building A, New Caohejing Business Centre, No.391, Guiping Road, Xuhui District, Shanghai, P.R.China T: +86 21 34612525, M: +86 13482482211 www.enlogic.com P please consider the environment before printing this email This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. Any views and/or opinions expressed in this e-mail are of the author only and do not necessarily represent the views of Enlogic. |
[Prev in Thread] | Current Thread | [Next in Thread] |