i use the NVRAM to save some data on my Digi Connect Wi-EM.
1/What is the size of the NVRAM ?
2/Maybe i should use th Flash Memory : what is the beginning and the end address of the Flash memory ?
When it is written 100,000 cycles of xriting, is it 100,000 of each writing not depending of the size of the writing (one character written or 2 characters written represents one writing or not?)
So a reading won’t be count as a cycle ?
3/I set the first location i write like this :
#define START_OF_FREE_NVRAM (START_OF_DEV_BOARD_PARAMETERS+sizeof (devBoardParamsType))
What i want to do is to write at each end of written data.
Then next time i will write at the end of what i wrote before.
4/I wanted to store a data that would be the last location, but i don’t know how to declare it, is it an int or a long int or a char ?
5/And the most important thing, what is the end’s location of the NVRAM ? Because when writing and reaching this end of NVRAM, i should come back to beginning and then erase the old data to write as a cycle.
6/If i write one characte, assume it is char data, does it take one location, and how “big” is it in memory ?
thank you very much for your answers ! This is really great !
But now i try, to be simple, to write and read in Flash Memory but it seems not to work by simply doing this :
int j = 0;
NAFlashWrite(0x2000000, 0, sizeof(data), data, ALWAYS_ERASE);
1/ What i try to do is to write at the beginning of the first free flash memory flash (is it 0x2000000 ?) an array of char data.
for (j = 0; j < 700; j++)
NAFlashRead(0x2000000, 0, sizeof(data), data[j]);
2/ Then i try to read it but i wondered if i can read all the array once and put it in an other array, or should i read each address at az time ?
Here i tried to read the entire array but no success.
I read that if i xanted to write or read the entire array, i should put zeros in the first two parameters of the 2 functions … It seems not to work …
3/Could you just show me an example using NAFlashWrite() and NAFlashRead() functions to show me how i can manage this ?
4/How long dos it take ? Is it depending on the size of the array ?
Some help would be welcome.
Please take some time to review and understand the Flash API. The API document is provided as part of the development kit. Based on your example usage of the NAFlashWrite and NAFlashRead functions I get the distinct impression that you have either not read this documentation or do not understand it.
As to an example of the usage of this API, please refer to the naflash example provided with the development kit.
Additionally, this forum thread has certainly expanded beyond the specified scope of this forum. For continued assistance on this issue please submit an online support request via our support web site at: http://www.digi.com/support/eservice/eservicelogin.jsp.
i a m sorry, i know all that, but i try to make things work, so i asked some help after many tries, if you could answer to my questions it would be great …
I’ll try to contact the support as well.
Message was edited by: global