PLUS+1 Software > General controls

Save an array to non-volatile memory

(1/1)

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

Marbek_Elektronik:
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.

kdcommon:
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.

Navigation

[0] Message Index

Go to full version