STM32F4 RTC ISSUE WHEN COINCELL [VBAT] IS REMOVED
Hi community,
I'm having a STM32F407VET6 PCB board where VBAT is connected to a 10 uF decoupling capacitor [Instead of recommended 100 nF capacitor].
in order to achieve some backup time when both the coin cell and 3.3V are not connected.
My RTC is working fine when a coin-cell or 3.3V supply is available in VBAT. But when I remove the coin cell while performing a power cycle, I'm facing some issues, as listed below.
[Note: RTC is initialized properly with the time 2023-11-07T08:31:20Z [YYYY-MM-DDTHH:MM:SSZ]]
[Note: Coin cell is removed from the board]
| Case | Power cycle duration | Voltage level in VBAT Decoupling Capacitor | Result | Observation |
1 | 7 Seconds | 3.16V to 0.86V | Working fine | RTC Accumulated entire power cycle duration properly |
| 2 | 8 Seconds | 3.15V to 0.77V | RTC Init failed - goes to error handler mode | RTC Accumulated entire power cycle duration properly |
| 3 | 30 Seconds | 3.16V to 0.46V | RTC Init failed - goes to error handler mode | RTC Accumulated only first 12 Seconds of the power cycle |
| 4 | 5 minutes | 3.16V to 0.15V | RTC Init failed - goes to error handler mode | RTC Accumulated only first 12 Seconds of the power cycle |
| 5 | 6 minutes | 3.16V to 0.10V | RTC de-initialized | RTC de-initialized doesn't goes to error handler mode |
The issue is RTC is working fine till 7 seconds with the backup of decoupling capacitor, after that it goes to error handler mode but still accumulating time for first 12 seconds of power cycle [8 Seconds to 5 minutes].
After 6 minutes it de-initialized RTC and doesn't goes to error handler mode. I wanted to de-initialize RTC after the RTC accumulates the first 12 seconds of power cycle in order to avoid error handler mode.
Anyone please explain does the decoupling capacitor affects this behavior in hardware perspective or should I need to use any register to tackle this issue in software perspective.
