Whats a good way to do non volatile storage

4 posts / 0 new
Last post
mycal
mycal's picture
Whats a good way to do non volatile storage

 

I have an app to run on the MOR firmware, what is the best way to store some paramters in the flash?

Is there already some database tools to read and write to paramter flash?

-M

 

 

mycal
mycal's picture
Looks like there is a command

Looks like there is a command 'nvram' anyone know how to add a key to this database that survives reboot?

-M

mycal
mycal's picture
never mind, you have to

never mind, you have to 'commit' it

Nachi
Nachi's picture
Yes, nvram is the best option

Yes, nvram is the best option to store parameters.
nvram has get, set, show, commit commands - and usually good enough for storing most of the configuration parameters.

And yes you must remember to "commit".