ADC DMA Doesnt Read Properly [Need Help and Advice]
Hi, so previously on other post I've been getting trouble with Poll Conversion of ADC using STM32F4 Discovery Board. Therefore i decided to use DMA instead.
I made the program using STM32CUBEMX and Keil uVision to read 5 different channels. All data then transmitted via USART.
The problem now is my array (uint16_t adcvalarr[5]) only got the 1st index filled with value. Shown below is the result of transmitted data from Watch window and printf debug window.
Watch Window:
Debug printf viewer (from left to right: iteration number, array[0], array[1], array[2], array[3], array[4])
I have also tried using potentiometer to alter ADC values of each channel but none of it seems to change the value in the array either. Is my ADC fried up or is it just something wrong with my code?
My main.c code is too long so i'll try to put it in the comment instead
===================================================================================
Thanks in advance! Any kind of info/insight will help me greatly.
