STM32L4P5CET ADC freezes at high noise environment
I'm using an STM32L4 for a solar inverter control project to control some H-bridges and sense some voltage and current. I run into this particular issue that when the environment is noisy (the DC input to the H-bridge is high), the ADC sometimes will freeze. I setup the ADC in DMA mode and the DMA buffer will be filled with the same value despite changes in the analog pin voltage. Interestingly, no error flags of the ADC has been raised and the ADC complete interrupt is still entered regularly. Moreover, all the rest of the program seems to be executing just fine, just that the ADC no longer updates it value. And if I reset the ADC with HAL_ADC_Start_DMA, the ADC will resume the normal updating.
I tried to look at the ADC documentation and GPIO input protection schemes, but nothing seems to point to what I'm seeing. Any thoughts?
Thanks,
Francis
