I have written an example usign the libopencm3 library in C++ to read 3 ADC channels on an STM32 Maple Mini (STM32F1) and store it into an array using the DMA.

The whole code is here and the output can be seen on the serial port 1.

-> Send a comment: Unless requested otherwise I may add it, or some extract, to this page.