For educational purpose I'm trying to rewrite Application Note
AN4419 - Using DMA and GPIO to emulate time functionality on Kinetis (2012).
I use MCUXpresso 10.2 and KSDK FRDM-K64F_2.4.2
My configuration is empty board files (~20 MHz sys and bus clock)
In original implementation the GPIO PCR is configured as
PORTD->PCR |= PORT_PCR_MUX(1) | PORT_PCR_IRQC(1);
My solution it is working only when PCR is
PORTD->PCR |= PORT_PCR_MUX(1) | PORT_PCR_IRQC(3);
I believe that something is wrong with my DMA TCD setup but I can't fined what is wrong.
I'm attaching project zip file.