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
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!
-----------------------------------------------------------------------------------------------------------------------
Did you ever find out if this is the actual issue? I am having the same problem with my project
Hi edwinrim,
please do you use the latest KSDK version? I mean KSDK 1.3 ?
Thank you.
Best Regards,
Iva
I am using v 1.2