Hello Prashant,
I modified your original code with the info you gave to enable the 2D mode.
I modified the function Init_Sport() with the following:
*pDMA4_CONFIG = FLOW_SMALL | NDSIZE_4 | SYNC | DMA2D | WDSIZE_16 | WNR;
*pDMA4_X_COUNT = 0x0002;
*pDMA4_Y_COUNT = BUFF_SIZE/2;
*pDMA4_X_MODIFY = (BUFF_SIZE/2)*2;
*pDMA4_Y_MODIFY = -((BUFF_SIZE)/2)*2+2;
and enabled the sport secondary channel, but I can't read any data anymore from the Rx_Data_BUFFx.
I guess I am doing something wrong.
I can't wrap my head around the method used for the interleaving.