2021-09-10 12:05 AM
Hi.
Can you tell me, why I don't get interrupt from completed measure of ADC.
I need to make 200 measeurements using DMA. I have configured settings in CubeMX. You can find them on the screenshot and the part of the code where I run and call it. The line startinf reading ADC is called but then it still waiting for measure and don't receive interrupt.
2021-09-10 12:15 AM
Could you post the CubeMx file?
Also show me how ccd is declared
2021-09-10 12:35 AM
2021-09-10 12:43 AM
I see in this file that I've set circular in DMA settings and DMA One Shot Mode in Parameter Settings what doesn't make sense, but I've also checked other settings of that.
2021-09-10 08:25 AM
Monitor the return value from HAL_*. Possibly the peripheral is still busy with the last call.
2021-09-12 11:57 PM
HAL_ADC_Start_DMA is expecting ccd to be a uint32_t array so maybe try change that
HAL_StatusTypeDef HAL_ADC_Start_DMA (ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)