Hi jingpan,
thanks for pointing me to this demo which seems an excellent starting point:
SDK_2_11_0_MIMXRT1062xxxxA/boards/evkbmimxrt1060/driver_examples/edma/ping_pong_transfer/edma_ping_pong_transfer.c
I'm not trying to use XBAR to trig DMA transfer; I'm fearing having to mess with it to create a data path from GPIOs to RAM thru eDMA. If somewhat I do not, or some existing code does it form me, that's best.
One thing I do not get is how I synchronize the DMA. I need a 50 or 48 MHz clock generated by the CPU, and sample the GPIOs at the rising edge of that (the data is valid except from 2 to 10 ns after the rising edge).
Regards, fgrieu