2024-01-29 9:51 AM
Hello everyone, I hope you are well.
I'm working with the STM32WB55. I'm having difficulty getting RTC to work correctly.
The VBat is always powered by 3v3, I have an on/off switch that only removes the power from the VDD, however, when I turn it off and on the microcontroller is stuck in the routine: "while (LL_RCC_LSE_IsReady() == 0U)". I noticed that when CFG_HW_RESET_BY_FW is 1, the board continues to function, but it resets the RTC registers and the time is lost and when CFG_HW_RESET_BY_FW = 0, the firmware is stuck in the "while (LL_RCC_LSE_IsReady() == 0U)" routine. Looking through the oscilloscope, the clock is all right.
Can anyone help me? Thank you very much!
Solved! Go to Solution.
2024-02-07 4:25 AM - edited 2024-02-07 4:27 AM
Hello @ffjunq,
Kind Regards,
Pierre
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-02-06 2:33 AM
Hello @ffjunq,
Thank you for your question !
Here some remarks :
Best Regards,
Pierre
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-02-06 5:42 AM
Hi Pierre, thank you very much for your support.
- I need to make my RTC never reset, so the VBAT is always in 3v3, remembering that I am using a V3 stlink to power the circuit. I have an on/off switch that only interferes with VDD, that is, VBat always 3v3.
- Following are the values of the registers:
- I don't need to charge the battery using VBat, as in the hardware I will use a specific chip to do this.
- In this case, I understand that the CFG_HW_RESET_BY_FW for my application always needs to be 0, so that it does not reset my RTC.
- Yes, I'm using CSS, but I've already tested with CSS off. And I'm not monitoring the VBat with the ADC, because I don't see the need for it at the moment, it may be that in the future I can use it to read the battery level, but I would have to check the possibility, since my battery is 4.2 V to 3V
- Yes, I have already read this document. However, I am performing again.
Thank you very much!
2024-02-06 10:30 AM
Taking advantage, I would like to know if there is a schematic of the ST, using a super capacitor so that the VBat is always at 3v3.
Thanks in advance!
2024-02-07 4:25 AM - edited 2024-02-07 4:27 AM
Hello @ffjunq,
Kind Regards,
Pierre
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.