S32k396 DREQ setup problem when using bctu_fifo and dmasoftware environment
s32ds3.62, RTD6.0.0
Reference Routines
S32K39-37-36 - eFlexPWM/TRGMUX/BCTU/SAR-ADC/DMA - [RTD600]
Demand:
eFlexPWM trigger- >bctu- >adc- >bctufifo- >dma
I don't want to use interrupts for the whole process, I'll periodically go read the dma results
Question:
The test can only trigger the DMA once, troubleshooting code found that RTD Bctu_FifoSetupDma set DREQ, dma will automatically turn off the hardware trigger dma after completion of the dma!
Is there any way not to set DREQ, or is there any other way to realize my needs, please NXP experts look at it!
Re: S32k396 使用bctu_fifo和dma时,DREQ置位问题Hi,
if you keep Result FIFOs config then Bctu_FifoSetupDma is called and driver sets a DMA channel with DREQ=1. For this case DMA config contains just a Global config and callback must be one of below function
in this function BCTU watermark notification is called and DMA request reenabled again.
If you want to have custom DMA setting for reading result FIFO, you will need to remove Result FIFOs config from BCTU module and do necessary setting on BCTU and DMA by own.
The DMA channel setting should have Transfer config as well and DMA callback can be any one or not ISR not used at all. Transfer config contains option to disable HW request (DREQ)
BR, Petr
Re: S32k396 使用bctu_fifo和dma时,DREQ置位问题Hi Petr,
Knew it.Thank you.