2021-10-04 05:03 AM
We have connected 7 channels in ADC2 to a STM32F769II processor. The DMA to ADC is enabled and the rank for conversion too is configured. But on testing, the ADC values are being shown in buffer location very different from its rank.
This happened in debug mode. But when turned off optimization, those values are shown as per the rank of the ADC channels. The DMA buffer acts differently to different compilation configurations, and to different optimizations.