Skip to main content
Visitor II
April 27, 2024
Question

STM32F103C9T6 cant use Multi channel ADC with DMA

  • April 27, 2024
  • 1 reply
  • 707 views

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

    Graduate II
    April 27, 2024

    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]