How to get ADC to work after STOP0 Mode STM32WB5
Using an STM32WB5. Using the ADC for some slow periodic measurements. Its working fine. Then added in STOP0:
LL_PWR_SetPowerMode( LL_PWR_MODE_STOP0 )The ADC does not recovered on STOP exit. Value of:
hadc->Instance->ISRis causing a hang in:
HAL_ADC_PollForConversion() in stm32wbxx_hal_adc.cValue is 0x03 whereas before STOP mode it was 0x0F.
Tried to do a
HAL_ADC_DeInit()Followed by:
MX_ADC1_Init()either before going into STOP mode or after. Either way results in ISR goes to 0 and still hangs.
Doing a Sleep,
LL_LPM_EnableSleep()instead of a STOP and ISR value is good and no hangs.
Any suggestions for getting STOPx to work with ADC?