Skip to main content
Graduate II
February 2, 2024
Question

STM8L101F2 consumption in Halt mode

  • February 2, 2024
  • 0 replies
  • 826 views

Hi,
i have STM8L101F2 at breadboard. Decoupling capacitors 100nF+22uF, supply voltage 3.3V from linear lab.power supply, nothing connected to any pin. Simple firmware (Cosmic compiler)

void main(void){
 GPIO_Init(GPIOA, GPIO_Pin_All,GPIO_Mode_In_PU_No_IT);
	GPIO_Init(GPIOB, GPIO_Pin_All,GPIO_Mode_In_PU_No_IT);
	GPIO_Init(GPIOC, GPIO_Pin_All,GPIO_Mode_In_PU_No_IT);
	GPIO_Init(GPIOD, GPIO_Pin_All,GPIO_Mode_In_PU_No_IT);
	halt();
 while (1)
 {

 }
}

and i've measured consumption about 16uA. Datasheet claims that MCU should take under 1uA. 
I've tried to remove electrolytic 22uF - no effect (its leakage current is negligible in this case)
I've also set option byte "IWDG stoped in halt", as expected it have also no effect (i did not start IWDG)
Am i missing something in SW ?

    This topic has been closed for replies.