Skip to main content
ASiva.1
Associate III
Jan 8, 2021 6:23 PM UTC
Question

STM32WB RTC LSI RTC Init Timeout

I programmed the RTC to work on LSI for this application. When I use LSI for the RTC the RTC init goes into timeout, but RTC works fine with LSE. I am using P-Nucleo-WB55 board to test this. Can anyone explain the reason behind this?

This topic has been closed for replies.

6 replies

Mecanix
Associate III
Jan 25, 2021 3:43 PM UTC

Sorry for the intrusion, wish I'd be able to help but got the same problem as you have. Unable to use the LSI as part of my BLE application.

Just wanted to drop by to ask if you've had any success and what is it that you did to resolve it, if you did.

Thanks

ASiva.1
ASiva.1Author
Associate III
Jan 26, 2021 5:08 AM UTC

LSI can be used with HSE as a part of BLE application. when using LSI I added HAL_PWR_EnableBkUpAccess(); after SystemClock_Config(); and it worked. I also still have not found out the exact reason yet.

RMiot.1
Visitor II
Jul 2, 2021 9:08 AM UTC

Thank you ! Got the same problem with STM32WB35CC, noticed that RTC fails to init when debug probe is connected (I use SWD) but works normally when SWD is unplugged.

Mecanix
Associate III
Jan 26, 2021 8:12 AM UTC

Appreciate the response. Although your solution didn't worked for my application it does gives me pointers as to where to start looking for, thanks! I've neglected looking into power modes so I'll have a look at this and let you know if I come across anything relevant to what you are looking for.

In a meantime I've started a thread on the subject of HSE & LSI config "workflow". Although un-popular to this day I hope it may clear-out why this HSE & LSI hardware set-up works for some and doesn't for both the custom and Nucleo WB55 boards I'm using here. *Note everything works perfectly fine with a NX2012SA part (NDK's 32.768KHZ) so I might just stick to this solution if no answer is provided.

All the best of luck to you and thanks again.

Dec 29, 2022 12:24 PM UTC

And the most interesting thing is that STM employees have not yet answered this question.

Guys, thank you very much for solving the problem.