cancel
Showing results for 
Search instead for 
Did you mean: 

Sometimes after exiting stop mode, the ADC continuous conversions are stopped on STM32F103

OPas74
Associate

Hi,

We are facing a strange behaviour with our product (using a STM32F103 MCU):

An ADC channel is initialized at startup in continuous conversion mode and the last conversion result is read periodically by an OS task (without problem).

The product goes in stop mode when not moving, but the problem is that sometimes, when exiting stop mode, the flag EOC (End of Conversion) of the SR ADC register is stuck at 0. this problem occurs randomly (can be after the 10th running/stop mode cycle or 200th cycle...). 

When the problem occurs, every register of the ADC, PWR and RCC are normal. So from the registers, the ADC is running in continuous mode but in reality no conversions are done.

The workaround is that currently, when we observe that the EOC flags is stuck for a certain time, we reinitialize the ADC and it seems that the continuous conversions are started again. 

Have you an explanation of this behaviour, and how to correct it?

Thank you in advance!

Olivier

0 REPLIES 0