We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, I'm using STR9 microcontroller and I want to give SRAM the battery backup. I've configured the PWR bit in RTC control register accordingly and selected NoInit mode in the project->options->target menu. I've tried both types of variable decalrations as given below: 1. __attribute((zero_init)) int i; 2. #pragma NOINIT int j; But both the variables are initialized to zero after power reset. Morever I'm getting a warining as "unrecognized pragma" when I use the 2nd type of declaration mentioned above. Can anybody solve this issue for me? Please, its very urgent. Regards, Neelima.
I have found that file but it is not of much use for me. Iam not able to check whether the Battery is giving backup to SRAM. "coz all the variables declared using the #pragma NOINIT and the method given in the RVI.CHM are getting reinitialized after reset. Plz tell me in detail the procedure for giving battery back up to SRAM and declaring the variables so that they will not be reinitialized at the power reset. Regards, Neelima.