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

1,735件の閲覧回数
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 返答(返信)

1,516件の閲覧回数
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 件の賞賛
返信

1,516件の閲覧回数
edwinrim
Contributor I

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

0 件の賞賛
返信

1,516件の閲覧回数
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 件の賞賛
返信

1,516件の閲覧回数
edwinrim
Contributor I

I am using v 1.2

0 件の賞賛
返信