cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_ADC_ConvCpltCallback not firing after wakeup from STOP2

surumadurum
Associate III

For burst sampling, want to go to STOP2, wakeup, start an ADC conversion in DMA mode, go to SLEEP and wait for the conversion complete interrupt as wakeup source.

This works without problems if I only go to SLEEP in both steps.

If I initiate ADC conversion after SLEEP wakeup and have been in STOP2 before, interrupt is never fired.

Even if i run all CubeMx generated Init functions after STOP2 wakeup, the interrupt does not fire.

1 REPLY 1
surumadurum
Associate III

Ok, it looks like I have to DeInit the ADC (before or after wakeup) and Init it again after wakeup from STOP modes.

Why is that so?

Where can I find documentation about things like that?

Is it advised to DeInit other peripherials like DMA as well before going to STOP?