Are much RAM are you using. When you compile your tinyos app it tells you how much you are using. At least with the Mica2/Mica2Dot/MicaZ motes that doesn't actually tell you how much free space you have left. The compiler often takes some liberty with how it lays out your variables and so you might be much closer to the edge than you think. You can use avr-objdump to make sure. Without actually seeing your code, that would be my first guess.
Hope that helps, Jacob On 2/21/07, Abhishek Jain <[EMAIL PROTECTED]> wrote:
Hi, I encountered this problem. I am passing a pointer (to a structure) to a function along with some other parameters. I print that structure before making the function call, inside that function, and after making that function call. The 1st and 3rd values are identical, as they should be, but somehow, the value printed inside the function is bogus! And there is absolutely no code that is changing the value. However, when i comment out some of the local variables inside the function, i.e. I effectively free some stack space, then the value printed inside the function is no more bogus and is perfectly alright! Has someone encountered this problem before?? Could someone suggest some way to solve it? thanks, Abhishek -- All you need in life is ignorance and confidence, and then success is sure. _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
