Vikram,
Well, I guess you can do this without matchbox.
<avr/pgmspace.h> declares pointer types prog_int, prog_char, prog_void,
etc. that reference program memory. They get included via tos.h, so you
can access them from your modules.
For example, you can create an array in program memory like this:
const prog_char array[]={0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
Try to modify BlinkM.nc to see how the ROM/RAM size changes if you add
this line to the module implementation. Oh yes, and do use it somewhere,
otherwise avr-gcc will optimize it out...
Janos
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vikram
Munishwar
Sent: Monday, November 21, 2005 6:07 PM
To: [email protected]
Subject: [Tinyos-help] Size of RAM for Mica2 motes.
Hi,
The information that I got from the mailing list archieves (and also
from crossbow mica2 mannual) depicts that Mica2 motes have 4K of RAM
and 128K of program memory. So if I have my arrays greater than 4K
then is it possible to store them on program memory instead of RAM?
Could I know how to do that if it is possible? Any pointers regarding
this would be greatly appreciated.
Thanks & Regards,
Vikram
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help