When testing the MCAL DMA scatter-gather function , I found the following problems, I hope you can help answer the doubts:
①Disable the D-Cache and I-Cache, the DMA transfer result is correct, and can enter the interrupt normally;
②Enable D-Cache and I-Cache, DMA can not complete the transfer, only transfer completed ELEMENT_0, check the TCD0_DLAST_SGA register and find that the address is 0x00;
The RTD version tested is RTD2110, and the IP routine test DMA scatter-gather function did not find this problem. The attachment is a test routine. If your company can provide the MCAL routine of DMA scatter-gather, I would be very grateful. Then I can try to compare and find the error.
Thank you so much!