Alien Queen
Alien Queen
DIIDevHeads IoT Integration Server
Created by Sterling on 8/13/2024 in #firmware-and-baremetal
Why isn't my ADC with DMA setup updating the variable correctly on the STM32F407ZGT6?
To fix your ADC issue, ensure the ADC is properly configured for multi-channel conversion, and verify that the DMA is correctly set up to transfer data to sensor_val. Check that the DMA callback is linked to the interrupt handler and that interrupt's are enabled. If you're not using a timer, make sure the ADC starts conversions automatically. Finally, use debugging tools to confirm that the callback is triggering and data is being transferred as expected.
7 replies