Can the definition of a HAL_ADC_ConvCpltCallback interfere with the DAC/DMA?
I am experimenting with an STM32F3348-DISO board. A waveform is generated using the timer TIM6 update event and DMA channel 3 (cyclic mode). At the same time, I am using an ADC to read the same waveform into a dedicated buffer (DMA channel 1), and the events are triggered by the same timer, TIM6. I run the HAL_DAC_Start_DMA() only once and the HAL_ADC_Start_DMA() in a loop, every two seconds.
So far so good. The only problem is that as soon as I even just define the HAL_ADC_ConvCpltCallback(), the DAC stops outputting the waveform, and I can just see a constant DC value. Could it be that defining (and consequently calling) the callback interferes with the DMA, even on other DMA channels? Does the HAL_ADC_Start_DMA() "think" something like: All right, we call back the function (because it is defined) and have done the job sampling all data, so let's stop the DMA globally?
I wonder what is happening here...
