AnsweredAssumed Answered

KSDK 1.0.0: Bug report in fsl_edma_driver.c - Periodic Trigger Mode

Question asked by Maurice LAUZE on Jan 7, 2015
Latest reply on Oct 14, 2015 by edwinrim



I have been trying to use DAC - DMA with PIT trigger mode and I've found an issue with it.


In function :

edma_status_t EDMA_DRV_ClaimChannel(uint8_t channel, dma_request_source_t source, edma_chn_state_t *chn)


it is not possible to set the periodic trigger mode using PIT.

That is, DMAMUX_CHCFGn[TRIG] is never set, whatever the source selected for DMA (kDmaRequestMux0AlwaysOn63)


I fixed it with the following workaround, which is very bad but give the PIT trigger functionality available :


if (source> kDmaRequestMux0AlwaysOn60)


        DMAMUX_HAL_SetPeriodTriggerCmd(dmamuxRegBase, dmamuxChannel, true);



Hope this helps,