On 02-05-19, 11:28, Arnaud Pouliquen wrote: > In double buffer mode, during residue calculation, the DMA can > automatically switch to the next transfer. Indeed the CT bit that > gives position in the double buffer can has been updated by the > hardware, during calculation. > In this case the SxNDTR register value can not be trusted. > If a transition is detected we consider that the DMA has switched to > the beginning of next sg. Applied, thanks -- ~Vinod