Skip to main content
Visitor II
Apr 27, 2024 2:37 PM UTC
Question

STM32F103C9T6 cant use Multi channel ADC with DMA

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!! 

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
Apr 27, 2024 9:55 PM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..