Skip to main content
Vel
Associate III
December 11, 2019
Question

Why the LSERDY FLag is not getting set in RCC_BDCR resistor??

  • December 11, 2019
  • 1 reply
  • 1008 views

HI,

In my design, i am using stm32h7 micro controller. I am using RTC clock using LSE clock source.

in LSE_READY_BIT was not set. How to debug the issue..

I am generating the code from CubeMX. The LSE crystal was selected in Crystal/Ceramic Resonator. while running the program, RCC clock config is not getting completed due to LSERDY_FLAG not getting set in RCC_BDCR registor.

1) How to know and how to verify the LSERDY_FLAG is set or not??

2) How to find whether the problem is in software or Hardware and how to validate??

 Thanks,

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 11, 2019

Likely not starting due to characteristics of circuit as built. Check or change loading capacitors.

Route LSE clock to PA8 MCO so you can scope signal without altering loading with scope probe.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Vel
VelAuthor
Associate III
December 12, 2019

Hi,

we measured the LSE clock in PA8 port using MCO1. We did not get the expected clock .

Attached the waveform we got.

0690X00000BuWs1QAF.png

We have calculated and used load capacitors as per STM32 crystal guidelines. We assumed stray capacitance to be 0.5.

Attached the crystal circuit.

0690X00000BuWskQAF.png