This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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.

0