S32K146 eDma transfer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K146 eDma transfer

625 Views
albertoferrero
Contributor I

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

Labels (1)
0 Kudos
1 Reply

616 Views
danielmartynek
NXP TechSupport
NXP TechSupport
0 Kudos