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!
-----------------------------------------------------------------------------------------------------------------------