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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

885 Views
mauricelauze
Contributor III

Hello,

 

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,

Maurice

Labels (1)
Tags (3)
0 Kudos
4 Replies

666 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Maurice,

Thanks for sharing this bug issue, I'll contact with the SDK tech supporter to focus on the issue and update you ASAP after check.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

666 Views
edwinrim
Contributor I

Did you ever find out if this is the actual issue? I am having the same problem with my project

0 Kudos

666 Views
ivadorazinova
NXP Employee
NXP Employee

Hi edwinrim,

please do you use the latest KSDK version? I mean KSDK 1.3 ?

Thank you.

Best Regards,

Iva

0 Kudos

666 Views
edwinrim
Contributor I

I am using v 1.2

0 Kudos