Hi all, I need to implement a dma transfer from memory to a register, triggered by a timer. The platform is a S32K146 with S32DS 3.4 and SDK 4.0.2. I tried to modify the "edma_transfer_s32k146" example in order to setup the FlexTimer FTM1 - channel 1 as a PWM generator (checking the "External Trigger" box) and setting the EDMA field "Channel Request" on EDMA_REQ_FTM1_CNANNEL_1 value.
In the source code I simply added a call to start the DMA channel
EDMA_DRV_StartChannel(dmaControllerChn0_Config.virtChnConfig);
Could someone give me any advice to make this working? Is there, on the Net, any example on using DMA driven by a timer? Should I use the TRGMUX module?
Thank you all in advance.
Alberto
Hello @albertoferrero,
You can refer to this example:
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K118-FTM-PWM-DMA-S32DS-2-2/ta-p/1342183
Regards,
Daniel