Try using the BlockStorageC or LogStorageC components. Also you may want to take a look at http://www.tinyos.net/tinyos-2.x/doc/html/tep103.html for more information on how to use the Permanent Data Storage (Flash) on your platform. What Platform are you using? Mica2?

Ian

---------- Forwarded message ----------
From: "Jooyoung Lee" <[EMAIL PROTECTED]>
To: < [email protected]>
Date: Tue, 7 Nov 2006 14:09:12 +0900
Subject: [Tinyos-help] Question on necC - storing an array in the internal flash memory
Hi,
 
I am a beginner at tiny-OS/nesC, and I have a question in nesC language.
I need an array in my code, but the size is too large to be stored in data memory of 4KB.
Fortunately, the values need not be changed during execution, so they can be regarded
as constants. However, the keyword "const" doesn't work. Somebody suggests
that I use some components from "TestEEPROM", which is not even compiled. 
 
So I am wondering how I can store an (constant) array of a large size into a flash memory(128 KB). I would very appreciate any advice or comments from you. Thank you.
 
Best Regards,
 
Jooyoung Lee
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to