AnsweredAssumed Answered

HSI Power Down

Question asked by descombes.quentin on Jun 10, 2013
Latest reply on Nov 1, 2013 by John Flood
Hello everybody,
I'm programming a STM8L152C6 on the STM8L-discovery. Wanting to improve the consomption I tri to power down the HSI. For that I use the instruction
  // Clock source
       while(((CLK->ICKCR) && CLK_ICKCR_LSIRDY)==0);

What seems to work for some people according to the topics I read on this site. I'm switching the clock source perfectly and the HSION bit in the CLK_ICKCR is 0. But the HSIRDY in the CLK_ICKCR is steel to 1 and the HSIPD in the CLK_REGCSR is to 0. I'm not using any peripheral for the moment.
Am I doing something wrong? What could avoid the HSI to turn down?

I hope someone can help me. Thank you very much.