Dear NXP Support Team,
I.m trying now approach, where GPIO PTD6 has setting as EIRQ14 ,rising edge detection and I want to map this pin signal to the DMA channel, where I try get current value from PIT_1 Timer[0]. This is setup as FreeRunning.
Seems that SIUL2 is set correctly for PTDA and I can see toggling on this pin when signal (1Hz) from signal generator is connect on related MCU pin.
But DMA not working for me
My guess here is that I have problem with finding proper chain from PTD6 ->DMAMUX-> DMA channel 4. and find where exactly I can find these information.
From S32K3xx_DMAMUX_map.xlsx I got this:
so here is my first issue: Which source->request is dedicated for PTD6(EIRQ14) ?
And how is related Table 44 from RM manual?
Here is fragments of my code which I working on now:
Setup PTD6
Hi@OndrejK
"Is this meaning, that MCU have 32 TCD channels and TCD 0 to 15 is valid for DMAMUX_0 and TCD 15 to31 is for DMAMUX_1 ?"
yes, you can find these info in the datasheet, I copy it for your reference.
Hi Senlent,
thank you for your answer.
please, can you pointed me from where popup your meaning about TCD mapping?
Is this meaning, that MCU have 32 TCD channels and TCD 0 to 15 is valid for DMAMUX_0 and TCD 15 to31 is
for DMAMUX_1 ?
So I'm still little bit confused about information regarding DMAMUX and eDMA.
Best regards
Ondrej
Your understanding is correct:
PTD6->EIRQ14->DMAMUX1.SOURCE 7.
IP_DMAMUX_1->CHCFG[4] = DMAMUX_CHCFG_ENBL_MASK | DMAMUX_CHCFG_SOURCE(7u); // EIRQ14 is source 7 for DMAMUX_1
However, the TDC settings are incorrect.
My understanding is that they should be as follows:
IP_DMAMUX_1->CHCFG[0] ->TCD 16
IP_DMAMUX_1->CHCFG[4] -> TCD 20 instead of TCD4