2023-05-22 01:22 PM
I have setup ADC conversion to be triggered by Timer 3 and DMA is configured [in NORMAL Mode] to transfer data from ADC to a buffer. I am able to get this to work and I call HAL_ADC_START_DMA() from the HAL_ADC_Conv_cmplt_callback() to restart the DMA transfer.
When DMA is configured in CIRCULAR MODE, the Conv_cmplt callback is only called once and the buffer doesn't get updated either.
The idea is to kick of peridic DMA transfers and use half_cmplt and cmplt interrupts to use the buffer in a pingpong manner. Is there any other configurations to take care of to achieve this?
2023-05-23 01:42 AM
Hi @JHari.1
Can you precised the STM32 you are using ?
Regards
DianeP
2023-05-23 02:03 AM - edited 2023-11-20 04:52 AM
It is an STM32G474. The config screenshots are attached here. I am using the nucleo board NUCLE-G474RE