How to use FTM DMA function?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use FTM DMA function?

1,279 次查看
海斌蔡
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 项奖励
回复
1 回复

1,157 次查看
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 项奖励
回复