cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L43xxx adc failure after woke up from low power mode (stop2 mode)

es.18
Associate II

Hi,

We are using STM32L43xxx controller (in a custom design board) with ADC and low power mode functions. In normal operation, ADC is working fine (before entering into sleep mode).

ADC_FLAG_RDY is failing in ADC_Enable function (stm32l4xx_hal_adc.c) after device woke up from sleep mode (stop2 mode). We are disabling ADC using HAL_ADC_Deinit() before entering into sleep mode and enabling it back through HAL_ADC_Init(). No idea, why ADC_FLAG_RDY is not set after wakeup... Can you help us on this?

Thanks in advance.

Elavarasan

1 REPLY 1
Mohamed Aymen HZAMI
ST Employee

Hello,

Make sure that after wake up from stop mode, the ADC clock is enabled.

Best Regards,

Mohamed Aymen.