2329388_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2329388_en-US

2329388_en-US

S32k396 DREQ setup problem when using bctu_fifo and dma

software 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
 

image.png

in this function BCTU watermark notification is called and DMA request reenabled again.
 
image.png
 
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)
image.png

BR, Petr

 
Re: S32k396 使用bctu_fifo和dma时,DREQ置位问题

Hi Petr,

Knew it.Thank you.

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎03-13-2026 05:25 AM
更新者: