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 agoAfter reading your control register, I saw that you enabled the WCON bit. You shouldn't enable it, the DMA musn't always write to the same address. Try this:
IOWR_ALTERA_AVALON_DMA_CONTROL(DMA_BASE,0X89); If it stills doesn't work, you should put a signaltap probe and see what the controller is doing.