Question
STM32L Stop Mode
Posted on February 05, 2013 at 20:46
I cannot get stop mode current below 1.1 mA in the IAR STM32L152VB eval board. This is the code to prep and then go to stop mode:
lowPowerConfigGPIO(); (this configures all GPIO pins as ADC inputs)
PWR_FastWakeUpCmd(DISABLE);PWR_PVDCmd(DISABLE);PWR_UltraLowPowerCmd(ENABLE);RCC->AHBENR = 0;RCC->AHBLPENR = 0; RCC->APB1ENR = RCC_APB1ENR_PWREN;RCC->APB2ENR = 0;SysTick->CTRL = 0;PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);while(1){ __no_operation();}The code is based on the STM32L Discovery firmware in STM32L_Discovery_Firmware_Pack_V1.0.2Stop mode on the STM32L Discovery board is about 47 uA. But on the IAR board it does not go below 1.1 mA.Any help seeing what I am doing wrong is much appreciated!Terry