ADC with DMA: Watchdog interrupt and DMA values
Hi everyone!
I want to read 2 channels with an ADC via DMA using circular buffer. So far so good. Now I want to use a watchdog for both channels when a certain threshold is reached. However, when the watchdog is triggered and I read the values in the DMA buffer, none of them are above the threshold, meaning they are probably old values.
So the question is: How do I get the ADC value that triggered the watchdog interrupt (values for all channels)?
I am using STM32F746 DISCO with CubeMX, CubeIDE.
Thanks!
Peter