cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103C9T6 cant use Multi channel ADC with DMA

NVNhan
Associate

Hi,

I am new to STM , I just cant use Multi Channel ADC to get data from 3 potentiometer, please anyone know what wrong?? I use Cube MX and code on Keil C

NVNhan_3-1714228508639.pngNVNhan_4-1714228519026.pngNVNhan_5-1714228531584.png

This is the debug

NVNhan_0-1714227952326.png

Thank you!! 

1 REPLY 1

The ADC returns 16-bit values, not 32-bit ones.

Not sure of the casting of the array to the DMA, but the array of values needs to be uint16_t adc_array[3]

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..