lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Porting LWIP into TI C6203 bug fix


From: Andreas Stenius
Subject: Re: [lwip-users] Porting LWIP into TI C6203 bug fix
Date: Tue, 23 Dec 2003 10:32:56 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2

Jörg Kesten wrote:

Andreas Stenius wrote:

Amit Kristal wrote:
[snip]
 > Questions:
 >
> 1. I get strange values when looking at stats.mem.used, is there a problem
 > using it?
 >

I've seen weird values for stats.mem, but thought it had to do with my
implementation doing bad stuff to the stack. Haven't got the time to
investigate it yet, though.


I think this is because the stats structure is not initialized at startup and therefore contains random data. On the 6203 variables are not initialized to zero automatically! (There is a compiler/linker option to enable this, but for some reason I don't remember right now using it wasn't a good idea ..)


In my case this wasn't the problem. I had reasonable values, then after a while, it got all funky.. (very large number of allocated blocks, jumping randomly, etc., and the stack didn't work very well then either :) But since it was when I was using an experimental branch of my project, I haven't looked into it yet..

//Andreas






reply via email to

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