SRAM battey backup for STR9

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.

Parents Reply Children
No data
More questions in this forum