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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

890 次查看
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

标签 (1)
标记 (3)
0 项奖励
4 回复数

671 次查看
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 项奖励

671 次查看
edwinrim
Contributor I

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

0 项奖励

671 次查看
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 项奖励

671 次查看
edwinrim
Contributor I

I am using v 1.2

0 项奖励