The contents of a SRAM bank are lost only when the bank is powered off, which can happen only when it is explicitly disabled in the BANKEN register, when it is explicitly configured to be powered off during LPM3/4 in the BANKRET register, or if the entire chip loses power. Any other actions will retain SRAM. (And the C startup code will re-initialize everything in the .data and .bss sections.)
↧