Page 1 of 1

MOD54415 random C/C++ question

Posted: Thu Jan 10, 2013 10:55 am
by jediengineer
I've never had to do this before, so I need a little help. I'm writing a piece of code that has "default" variables stored in array A[x] and I need to store used defined variables in array B[x]. But once the power is terminated, I lose all variables in array B[x] because they are user defined. Is there a way to define an array, write to it, and have it retain it's data even after restart or power-off? I realize that this may mean writing into the program memory - is that possible? Thanks

Tony

Re: MOD54415 random C/C++ question

Posted: Thu Jan 10, 2013 11:02 am
by Ridgeglider
See the C:\nburn\examples\SaveUserParameters example for using onboard flash.

Re: MOD54415 random C/C++ question

Posted: Thu Jan 10, 2013 11:07 am
by jediengineer
Oh! The flash is non-volatile?

Re: MOD54415 random C/C++ question

Posted: Thu Jan 10, 2013 11:08 am
by jediengineer
Thanks!! I can't believe I didn't see that!!