cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Adventurer
Adventurer
3,356 Views
Registered: ‎04-14-2015

how to flush dma cache

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

0 Kudos
Reply
0 Replies