Skip to main content
lzyos
Associate II
January 3, 2019
Question

How to sure LSI of stm32f103 started?

  • January 3, 2019
  • 2 replies
  • 975 views

My product has a 5% chance of that LSI didn't start when system Power up. So IWDG not functional due to LSI missed.

Here is my code to start LSI

******************************

LSI_CNT = 0;

RCC_LSICmd(ENABLE);

while( RCC_GetFlagStatus(RCC_FLAG_LSIRDY) == RESET )

{

LSI_CNT++;

if( LSI_CNT > 100) break;

}

*******************************

Is there any software solution (code segment ) for suring LSI start perfectly at system power up?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
January 3, 2019

100 iterations a 8 MHz+ is probably not enough to quantify if the 40 KHz signal started properly.

If the LSI really doesn't start in STM32 parts you'd need to discuss that with an FAE associated with your account as you're using bad or damaged parts.

Time the actual start time, specs say it should be 85us or faster.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
lzyos
lzyosAuthor
Associate II
January 4, 2019

I've got , It's kind of U​