PLUS+1 Software > General controls

Save an array to non-volatile memory


What is the best way to save an array to non-volatile memory? Is there an easy way?

I suggest to split the arrray in U8.
(To save memory it might be better to combine 2 U8 to 1 U16. Test this.)
then save each Byte (or Word) to 1 NV.
To read the array, you should combine all NVs to an array.

Write is one by one to NV_ROM. And your array should avoid usin 'Insert' Function if your array is very long. Otherwise the each time a new value come in, all the elements will be wirte again otherwise only the new coming one. This will consuming a long time.


[0] Message Index

Go to full version