DMA S32K144

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

DMA S32K144

1,560 Views
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

Labels (1)
0 Kudos
1 Reply

1,353 Views
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 Kudos