Skip to main content
es.18
Associate
October 8, 2020
Question

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

  • October 8, 2020
  • 1 reply
  • 768 views

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

This topic has been closed for replies.

1 reply

Mohamed Aymen HZAMI
ST Employee
October 21, 2020

Hello,

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

Best Regards,

Mohamed Aymen.