Hi soledad !
For my undestanding that parameters means what kind of SRAM areas should retain during PowerDown
POWER_EnterPowerDown(APP_EXCLUDE_FROM_POWERDOWN, 0x7FFF,
WAKEUP_GPIO_GLOBALINT0 | WAKEUP_GPIO_GLOBALINT1, 1);
mask 0x7FFF means thats whole SRAM should be retain and we use this mask as well.
Of course SRAMx3 should be set to be retained if it used.
"3 - In case of CPU retention, it is the responsability of the user to make sure that SRAM instance containing the stack used to call this function WILL BE preserved during low power (via parameter "sram_retention_ctrl")"
But how-to redirect CPU retention dump to this area is not clear at all.
"cpu_retention_ctrl: 0 = CPU retention is disable / 1 = CPU retention is enabled, all other values are"
Retention parameter enable retention but not specify if it SRAMX2 or 3.
Regards,
Eugene