LCD Driver Consuming more power in stop 2 mode
Post edited by ST moderator to be inline with the community rules especially with the code sharing. In next time please use </> button to paste your code. Please read this post: How to insert source code
The LCD Driver in stm32u083rc is consuming more power in stop 2 mode, it is taking more current at every interval (interval is of refresh rate , if refresh rate is 128Hz then the spikes come at (1/128 = 7.8ms))
currently we are entering low power mode like this
void lowpwrmode_EnterLowPowerMode (void)
{
// LOG_INFO_UART("Entering Stopmode2 \r \n");
HAL_CRC_MspDeInit(&hcrc); //CRC
HAL_SPI_MspDeInit(&hspi1); //SPI
HAL_CRYP_MspDeInit(&hcryp); //AES
HAL_UART_MspDeInit(&hlpuart2); //LPUART
HAL_LPTIM_MspDeInit(&hlptim3); //Buzzer
HAL_DAC_MspDeInit(&hdac1); //DAC
HAL_I2C_MspDeInit(&hi2c2); //I2C
//SysTick Timer
HAL_SuspendTick();
//CLear Wakeup Flags
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU);
HAL_PWREx_EnablePullUpPullDownConfig();
//Disable Debug
HAL_DBGMCU_DisableDBGStopMode();
HAL_PWREx_EnableUltraLowPowerMode();
//Enter Stop2 Mode
HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);
HAL_ResumeTick();
// HAL_I2C_MspInit(&hi2c2);
custom_StopGpioInit();
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_3, GPIO_PIN_SET); // LDO Enable
// HAL_GPIO_WritePin(GPIOA, Flash_PWR_Pin, GPIO_PIN_SET); // Flash PWR
// HAL_GPIO_WritePin(GPIOB, WP_Pin, GPIO_PIN_SET); // WP Pin
} 