DMA S32K144

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DMA S32K144

1,864件の閲覧回数
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,657件の閲覧回数
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 件の賞賛