hello i have to do some dma transfer for this i have to flush the dma before transaction. i read some tutorials about it and also got an instruction but still i am not able how to do it.
the instruction which i found is
" Xil_DCacheFlushRange((u32)TxBufferPtr, MAX_PKT_LEN); "
can anybody guide me how to use it. my dma transfer code is given below
void StartDMATransfer ( unsigned int dstAddress, unsigned int len ) {
// write destination address to register.
Xil_Out32 ( XPAR_AXI_DMA_0_BASEADDR + 0x48 , dstAddress );
// write length to register.
Xil_Out32 ( XPAR_AXI_DMA_0_BASEADDR + 0x58, len );
}
Thank you