[Tinyos-help] Tinyos Ram shortage

2012-06-03 Thread Oldrine Lewis
I am currently working on the Iris motes and running very low on RAM. I added a new command to one of the modules and noticed the RAM usage (reported at the end of the make process) increased by abt 40 bytes even though I did not have any local variables in the function. I checked app.c and found t

Re: [Tinyos-help] Tinyos Ram shortage

2012-06-03 Thread Oldrine Lewis
I also noticed that all my const array of structs are being stored in RAM. Is there any way to force const them into program memory ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listi

Re: [Tinyos-help] Tinyos Ram shortage

2012-06-03 Thread Johny Mattsson
On 4 June 2012 09:09, Oldrine Lewis wrote: > I also noticed that all my const array of structs are being stored in RAM. > Is there any way to force const them into program memory > Yes, but that might not be what you really want. Since the Iris uses an AVR chip, you have a Harvard memory archite

Re: [Tinyos-help] Tinyos Ram shortage

2012-06-03 Thread Eric Decker
send me the program and I'll look at it. Not sure about what exactly you are doing, but normally const do get put into ROM Why do you think they are in RAM? Need more information about toolchain, cpu, etc. On Sun, Jun 3, 2012 at 4:09 PM, Oldrine Lewis wrote: > I also noticed that all my const

Re: [Tinyos-help] Tinyos Ram shortage

2012-06-05 Thread Oldrine Lewis
Hi Johny, Thanks for the insight. I have moved all consts to pgm memory and accessed them with macros, so able to liberate a few hundred bytes of RAM I also noticed that all my const array of structs are being stored in RAM. Is there any way to force const them into program memory Yes, bu