DMA S32K144

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

DMA S32K144

2,149 次查看
ambarish_hundek
Contributor II

Hello NXP team,

we are configuring DMA based Gpio pin for pulse counting.

We have referred NXP application note for configuration and reading the pulse.

if I use DMA Channel 0, then it is working fine.

for other channels , I am facing some issue. always pulse count (Transmission count ) is 0.

attached the Example code and pdf referred for the DMA configuration.

in main.c file , changing the channel by modifying the macro

#define Channel_DMA  0

Regards,

Ambarish

标签 (1)
0 项奖励
回复
1 回复

1,942 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Ambarish,

I have checked your code and could you please change

DMA_TCD_ATTR_SSIZE(Channel_DMA);

DMA_TCD_ATTR_DSIZE(Channel_DMA);

to 

DMA_TCD_ATTR_SSIZE(0);

DMA_TCD_ATTR_DSIZE(0);

The parameter is source data transfer size not a number of the channel.

I believe it helps.

Best Regards,

Diana

0 项奖励
回复