|
From: | Andrew Foster |
Subject: | RE: [lwip-users] Re: lwip-users Digest, Vol 88, Issue 17 |
Date: | Wed, 15 Dec 2010 10:41:32 -0500 |
First off, sorry for jumping in mid thread.
Chen, have you defined
LWIP_PLATFORM_DIAG(x) to redirect to your projects “debug_printf”
method? Without this, you aren’t going to get much feedback from
stats_display. Andrew From: Chen
[mailto:address@hidden The reason stat_display
is not working is because DBG_OFF (maybe more) @lwipopts.h is not defined
anywhere in lwip's files. Which is not a problem until I added #define
LWIP_DEBUG to debug.h > 1) I am using TCP API.
That isn't quite what I meant. To send data do you call tcp_write() or netconn_write() or send() for example? If you use tcp_write() directly then MEMP_NUM_NETBUF will have no effect and is not your problem.
If you call the function to display that stats and it shows nothing then something is wrong: it should print statistics about the resources used. You'll have to debug what's gone wrong.
Kieran
|
[Prev in Thread] | Current Thread | [Next in Thread] |