Question
STM32WB55 - SRAM2a not retained after reset from standby mode
Hi,
I would like to use StandbyMode + RTC + Sram2a (backup).
From the STM32WB55RG datasheet, the Sram2a can be retained after reset from standby mode.
"Standby mode with SRAM2a retention when bit RRS is set in the PWR control
register 3 (PWR_CR3). In this case, SRAM2a is supplied by the low-power"
Before low power mode, I have to do :
/* Enable SRAM2a retention */
HAL_PWREx_EnableSRAMRetention();
/* Set the lowest low-power mode for CPU2: shutdown mode */
LL_C2_PWR_SetPowerMode(LL_PWR_MODE_SHUTDOWN);
/* Enter the standbyMode mode for CPU1 */
HAL_PWR_EnterSTANDBYMode();and to place datas in sram2a :
static tDataFormat _t_Data __attribute__((section("MB_MEM2")));But when device reseting from standyMode, SRAM2a (and _t_Data) is empty.
Thank for your help.
