How to use FTM DMA function?

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

How to use FTM DMA function?

1,071 Views
海斌蔡
Contributor II

Hi,

How to use FTM DMA?

EDMA channels request have FTM1_CHANNEL_0 eg.

pastedImage_1.png

who can get me an example? thank you!

0 Kudos
1 Reply

949 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi 海斌蔡,

Unfortunately, we don't have such FTM example, the FTM driver does not support DMA transfers, you would need to enable the DMA in the corresponding CnSC register. The configuration that you highlighted basically sets the DMAMUX  when the EDMA_DRV_Init() function is called and the DMA driver is initialized. Then, you would need to configure a transfer as described in the EDMA SDK documentation based on your use case:

.../S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K1xx_RTM_3.0.0/doc/html_S32K144/Start_here.html

S32K144 / Modules / EDMA driver

There is a EDMA SDK example in the S32DS you can refer to.

pastedImage_2.png

BR, Daniel

0 Kudos