Forum Discussion
Altera_Forum
Honored Contributor
16 years agoproblem of DMA(Momery to memory)
#include"system.h"# include<stdio.h># include"altera_avalon_dma_regs.h"# include"altera_avalon_pio_regs.h"# include"alt_types.h" alt_u8 tab[8]={'a','b','c','d','e','f','g','h'},des[8]; alt_u32 f...
Altera_Forum
Honored Contributor
16 years agoyes,i have data cache.if i amend the code like this:
if(0X01&IORD_ALTERA_AVALON_DMA_STATUS(DMA_BASE)) { IOWR_ALTERA_AVALON_PIO_DATA(PIO_BASE,tab[1]); } the IO is working. thanks.