2020-10-08 05:47 AM
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
2020-10-21 07:04 AM
Hello,
Make sure that after wake up from stop mode, the ADC clock is enabled.
Best Regards,
Mohamed Aymen.