Is there a way to count the number of bytes received via the UART DMA channel in a given transfer for this controller?
The number of transfer is configured in the "n_minus_1" field of the CtrlCfgBits structure.
It should be possible to read back this parameter to know how many transfers have occurred.
The DMA technical reference manual from ARM (DDI0417A_udmac_pl230_r0p0_trm.pdf) indicates that:
"The controller updates this field immediately prior to it entering the arbitration process. This enables the controller to store the number of outstanding DMA transfers that are necessary to complete the DMA cycle."
Retrieving data ...