STM8 low power wait mode HSIRDY never unset
we are trying tio put the micro in low power wait mode.
But the software stops at : while((CLK->ICKCR & CLK_ICKCR_HSIRDY) == CLK_ICKCR_HSIRDY);
see file drv_sleep
STM8 low power wait mode HSIRDY never unset
we are trying tio put the micro in low power wait mode.
But the software stops at : while((CLK->ICKCR & CLK_ICKCR_HSIRDY) == CLK_ICKCR_HSIRDY);
see file drv_sleep
You are not following the instructions to switch clock, see RM0031 pages 93 and 94. CLK_SWCR is not used in you code. It seems current system clock is still HSI.