Hi,
I'd like to store the non-volatil password data in FRAM or possible another areas of RF430FRL152H by custom command.
Would it be possible to use this?
If yes, please provide the sample code how to adapt it?
Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'd like to store the non-volatil password data in FRAM or possible another areas of RF430FRL152H by custom command.
Would it be possible to use this?
If yes, please provide the sample code how to adapt it?
Thanks.
Alex,
When the "password_register" was declared by "const u16_t password_register", there was a compile error happened like "#138-D expression must be a modifiable lvalue" So I couldn't test.
When the "password_register" was declared by "u16_t password_register", there was no compile error. But the "password_register" value was '0' after power off and on.
What do I miss?
Yes the const should have not been included.
However to make a variable not be initialized on startup, use this pragma directive:
#pragma NOINIT( password_register);
Include it somewhere before you declare the password register.