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
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