The telosB uses the MSP430F1611 processor which has 48 KB of flash ("ROM")
for
code space and 10KB of RAM. The 1 MB of external flash is implemented on
the TelosB
as an external part that I beleive is on the SPI bus. Razvan set a pointer
to its interface.
When you build your application the compiler will tell you how much code
space the application is taking up. This needs to be <48KB. The RAM number
is only globally allocated variables. It doesn't include stack. The
globals live starting in the lower addresses of RAM and grow up. The stack
starts at the top of RAM and grows down. If they collide your program will
do interesting things that will be hard to figure out (some form of memory
dump would be helpful).
Sorry, I'm running off. You want to make sure that the dynamic behaviour of
your program with respect to RAM usage (stack + globals, TinyOS is mostly
static allocation) doesn't exceed the 10KB. For most applications (simple
ones) this shouldn't be a problem and you won't have to worry about it
unless the RAM usage number from the compiler exceeds 8KB or so.
eric
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
On Mon, May 19, 2008 at 12:37 PM, tarun sharma <[EMAIL PROTECTED]> wrote:
> hi
>
> My question is more related to TelosB motes then TinyOS as such. In
> the datasheet of the motes it is mentioned that it has 10KB of RAM and
> 1 MB external flash and 48 KB of program flash memory. I was jus
> wondering which of these memories is actually used to store the
> program i install and which one is used to run it. I jus wanted to
> know this so as to make sure that the programs that I code can fit in
> the available memory and run successfully.
>
> Could you please help me out with it.
>
> Thank you very much
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help