My Setup is as followed:
I have some specific variables, and I want to keep these variables that don't be initialized after wake-up from em4, just like the variables in battery_non_zero_vars.c using Z-Wave 500 series.
Is there any way to achieve this function?
You can write your values to NVM.
Refer to document INS14259, and see section "5.4 Setting Up Files in Non-Volatile Memory."
It maybe reduces the lifetime of NVM because I will write my values very frequently.
I find the RAM0 that could keep values, and it seems like AppTimerEm4PersistentSaveAll function in AppTimer.c.
How to use it?