Hello,
I have configured the BCTU to trigger ADC conversion from the EMIOs timer. Additionally, I need to configure the DMA to transfer the sampled value in ADC1DR of BCTU to a buffer defined in memory. After configuring, if I trigger the DMA using a software trigger, EDMA_DRV_TriggerSwRequest(0), the DMA transfer works. But, it does not get triggered by the BCTU even after setting the trigger source as EDMA_REQ_BCTU_0. I have also set the DMA enable mask in the BCTU MCR register.
Is there some configuration that I am missing?
Thanks,
Saurabh
Solved! Go to Solution.
Hi,
I think EDMA_REQ_BCTU_1 should be selected for ADC1DR in DMA setting. IN BCTU try to set both DMA1 and IEN1 mask bits in MCR.
BR, Petr
Thanks @PetrS, selecting EDMA_REQ_BCTU_1 as the source in DMAMUX1 worked! In BCTU I still just have the DMA_EN and not the IE1 mask in MCR.
Hi,
I think EDMA_REQ_BCTU_1 should be selected for ADC1DR in DMA setting. IN BCTU try to set both DMA1 and IEN1 mask bits in MCR.
BR, Petr