I have trouble getting low current in stop mode.
I'm using a 32L152C DISCOVERY board.
I have trouble getting really low current in stop mode (< 10µA).
This is the simple code I test with:
int main(void)
{
PWR_UltraLowPowerCmd(ENABLE);
PWR_FastWakeUpCmd(DISABLE);
// Enters STOP mode
PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);
while(1);
}I have have removed the jumper from JP1 and connected a current measurement device between JP1.1 to JP1.2 (this measures the current going in to VDD_MCU.
The current is about 4.6mA when entering main() and 1.0 mA in stop mode. Am I doing something wrong?
Just for reference: If I hold down the RESET button the current is 1.2mA.