cancel
Showing results for 
Search instead for 
Did you mean: 

How to sure LSI of stm32f103 started?

lzyos
Associate II

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?

2 REPLIES 2

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
Up vote any posts that you find helpful, it shows what's working..
lzyos
Associate II

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