Reply by "Tom...@tomlogic.com [rabbit-semi]" September 2, 20162016-09-02
On Sep 1, 2016, at 11:53 AM, y...@omniverter.com [rabbit-semi] wrote:
> I have some parameters in BL4S200, user will change them from HMI, and I want to save this change, so program can use them after controller power on next time. I find bbram and protected, but I am not very clear how to use it? does anybody give me a sample for that?
Take a look at Samples/RestartVars/BatteryRAM/bbvars.c for an example of using battery-backed RAM to persist variables across reboots.

For configuration information, I prefer to use the UserBlock as mentioned by Mircea:

On Sep 2, 2016, at 12:29 PM, Mircea Neacsu m...@neacsu.net [rabbit-semi] wrote:
> You can use writeUserBlock and readUserBlock functions.
>
> Normally you would add a checksum to the values you save to verify their integrity. In case of failure you can restore some factory defaults.
-Tom
Reply by "yan...@omniverter.com [rabbit-semi]" September 1, 20162016-09-01
Hello, everybody:

I have some parameters in BL4S200, user will change them from HMI, and I want to save this change, so program can use them after controller power on next time. I find bbram and protected, but I am not very clear how to use it? does anybody give me a sample for that?