2022-08-10 11:21 PM
100khz Oscillator for LSE input. The OSCillator works right bcz I test the waveform by scope.
but stm32h7b0vb cannot get lserdy bit set.
Seems I m the 1st Person meet the situation.
plz help me. Thanks.
Solved! Go to Solution.
2022-08-15 02:01 AM
no, the problem still exist.
new info: I change the Oscillator to 32.768Khz and it works well.
so conclusion is the STM32H7B0 LSE cannot use freq other than 32k768. the datasheet is wrong about it.
2022-08-11 02:29 AM
Oscillator or crystal? How is LSEBYP set?
@Uwe Bonnes has reported problems with LSEBYP/LSERDY in the past, I don't know whether and how this relates to the 'H7 too.
Please note that this is a primarily user-driven forum, so we don't have insider information. You may want to contact ST directly, through FAE or web contact form. If you do so, please come back with the findings.
JW
2022-08-11 06:33 AM
Thank u first!
it is sure Oscillator , Not crystal. I set the bypass
I guess it is bcz ST not test LSE by freq other than 32768hz.
I also try call the function LL_RCC_LSE_SelectDigitalClock() but no effect
I will check the link u mentioned from now. hope I can find some points.
2022-08-11 06:47 AM
The primary purpose of LSERDY is to make sure the crystal starts to oscillate before proceeding with setting up other things. If you are sure your external oscillator is oscillating, you can simply avoid testing LSERDY.
JW
2022-08-11 07:35 PM
Thank u anyway!
but things are not that simple. Look at the pic below. I will explain it.
the "ready logic" module inside the red circle is very important, bcz follow it there is an "AND" gate, while the "ready logic" or "LSERDY Bit" output 0 then we will get CKLSE out always 0.
so we cannot ignore the Ready bit.
2022-08-14 08:18 PM
who can help me? IS this the bug of stm32?
2022-08-15 12:19 AM
I fix the problem. THANKS
the Reason is I must call LL_RCC_SelectDigitalClock after EnableBypass.
now work well.
2022-08-15 02:01 AM
no, the problem still exist.
new info: I change the Oscillator to 32.768Khz and it works well.
so conclusion is the STM32H7B0 LSE cannot use freq other than 32k768. the datasheet is wrong about it.