STM32L4R7 low-power, power cycling, and the backup domain
Hello,
I have some questions relating to STM32L4R7ZIT and the different ways to enter/exit low-power modes or to power cycle, in both cases without losing RTC and backup registers.
VBAT is always powered. There is an LSE.
I need to understand which boot-up paths exist and which parts of the MCU must be (re-)initialized in each path. Please see if you can help. Citations from RM0432 v8.
Best regards
Niclas
---
Questions:
A. Is it true that STM32L4R7 shutdown mode cannot handle loss of VDD without losing the backup domain (mainly RTC and backup registers)? (See citations 1 and 2.)
B. Is citation 3 the complete list of what is powered from VBAT? Figure 9 is more of a conceptual-level block diagram than a detailed specification. Is there a more formal listing?
C. Similarly, figure 9 also names "VDD domain" with subsystem "VCORE domain", "VDDA domain", "VDDIO2 domain", and suggests that there might also be a "VDDUSB domain". What, in detail, do these domains consist of? Together with the "Backup domain", do they encompass every part of the MCU or is anything missing?
D. What is the relationship between power reset and system reset (or what do they comprise)? In 6.1.1 - 6.1.2 (p238) it says that a brown-out reset causes both a power reset and a system reset. A system reset resets all registers except the backup domain and RCC_CSR. A power reset caused by exiting shutdown mode or a brown-out reset both reset all registers except the backup domain. A power reset caused by exiting standby mode preserves slightly more, but is there a detailed listing somewhere?
E. What is the "Standby/Shutdown modes control" referred to in citation 4?
F. Assuming that RCC_CSR is lost in a power reset (including a power cycle), is there any other way at boot time to find out what caused the latest power-off? Or, is your only option to write the power-off reason to one of the backup registers and make sure that you are not in shutdown mode when your battery power source is finally depleted?
---
Citations:
1: "The BOR is not available in Shutdown mode. No power voltage monitoring is
possible in this mode, therefore the switch to Backup domain is not supported."
(p215)
2: "In Shutdown mode, the following features can be selected by programming individual
control bits:
* real-time clock (RTC): this is configured by the RTCEN bit in the Backup domain
control register (RCC_BDCR). Caution: in case of VDD power-down the RTC content will be lost."
(p215)
3. "Backup domain
* LSE crystal 32 K osc
* BKP registers
* RCC BDCR register
* RTC"
(fig 9, p183)
4. "When exiting Standby mode, all registers in the VCORE domain are set to their reset value.
Registers outside the VCORE domain (RTC, WKUP, IWDG, and Standby/Shutdown modes control) are not impacted." (p238)