ADC with DMA fist time shows correct value, second time a lot lower. STM32L412 running on 1.8V
Hello,
I have ADC that reads battery voltage ( using 1024 samples with DMA, and after TC_IRQ I calculate average, it is stable to the bit !)
First time Trigger ADC i get 4.11V (perfect voltage), after 2s i trigger ADC gain, and i get 4.05V. and from that one it's stays at 4.05V. Voltage and reference is stable, i checked. (stepping with debugger)
DMA is in normal mode, so i get 1024 samples.
What is strange, if I use circular DMA, it holds value , but if I do any stop with debugger, anywhere , voltage goes to 4.05V.
Any idea why this can be happening?
