Hi, I am using the below function to enter low power mode in STM32L152, but yet the current consumption of MCU is about 4 mA. is there other configurations?
RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR,ENABLE); PWR_EnterLowPowerRunMode(ENABLE);
As noted, the low power current should not be measured with any JTAG interface connected.
Next thing is that it's important to select a proper voltage regulator. A normal voltage regulator can have quite high idle current because it's designed to have good load regulation, i.e. very little output voltage variation if you draw 1mA or if you draw 1000mA. A voltage regulator for low-energy battery operation need not have as good load regulation - but must instead have a very, very low idle current so you don't get the majority of the power consumption in the regulator itself.