Hello, ST expert
I'm using the STM32G0B1RCT6 and have enabled the LSECSSON. I've discovered a rather incredible phenomenon. I'm using a 3.3V battery for VBAT. When I disconnect the VDD of the MCU, it abnormally triggers the LSECSS fault. As a result, after disconnecting the VDD of the MCU, the system uses the LSI as the RTC clock. However, the LSI cannot operate in the VBAT voltage domain.
Below is my log:
«
hello world!
DR:[0x2101] TR:[0x00] BDCR:[0x00]
DR:[0x2101] TR:[0x00] BDCR:[0x00]
DR:[0x2101] TR:[0x00] BDCR:[0x00]
not init backup domain! BDCR:[0x00]
Init LSE BDCR:[0x00]
Set RTC Source to LSE BDCR:[0x03]
Enable LSE CSS BDCR:[0x103]
Enable RTC BDCR:[0x123]
Backup register BDCR:[0x8123]
0: 0: 0 1- 1-2000RCC->BDCR is [0x8123]
0: 0: 1 1- 1-2000RCC->BDCR is [0x8123]
0: 0: 2 1- 1-2000RCC->BDCR is [0x8123]
0: 0: 3 1- 1-2000RCC->BDCR is [0x8123]
<<<Vdd is lost>>>
hello world!
DR:[0x2101] TR:[0x00] BDCR:[0x8200]
DR:[0x2101] TR:[0x03] BDCR:[0x8200]
DR:[0x2101] TR:[0x03] BDCR:[0x8200]
LSE is not enable! BDCR:[0x8200]
LSI is not Enable! BDCR:[0x8200]
Init LSI! BDCR:[0x8200]
Enable RTC BDCR:[0x8200]
Backup register BDCR:[0x8200]
0: 0: 3 1- 1-2000RCC->BDCR is [0x8200]
0: 0: 4 1- 1-2000RCC->BDCR is [0x8200]
0: 0: 4 1- 1-2000RCC->BDCR is [0x8200]