Hi All,
I am trying to pass a variable value to be written to my
internal flash memory during a brownout situation; however the value always
gets passed as 0 or a junk value (possibly because they are stored in RAM).
I have tried various ways of trying to get this variable value passed to my
flash write function as soon as the brownout is detected however nothing
seems to work. To clarify, my flash write function and brownout detectors
work fine, however the only values I seem to be able to write to my internal
flash during brownout seem to be static values.
Is there any method that I should try in order to get the variable value
passed properly? I have tried static addresses, get and set functions,
passing by reference, by value plus several more.
I'm not an experienced programmer and I would really appreciate
anyone's
help in getting this matter sorted out.
Thank you,
Kamal