2023-07-16 11:27 AM
Hello
I want to update my variable continuously on Memory, so whenever bootup and power loss I can read that Value.
So which is the best way to store variable and read when MCU bootup.
2023-10-18 06:04 AM
Hello @AJeth.2,
The best option is to store your variable in the main flash because it's a non-volatile memory BUT
Best Regards,
Pierre
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-10-18 06:50 AM
2023-10-18 07:16 AM
If you have a battery backup for the RTC you can use the general purpose data registers (I believe there are 20 bytes in the G0 series) to save a few variables across resets and power loss.
Jack Peacock
2023-10-18 08:08 AM
You've meant the Backup registers, I presume, TAMP_BKPxR.
JW