Forum Discussion
Altera_Forum
Honored Contributor
15 years agoWords are swapped after DMA transfer
Hello, I'm trying to copy data from one part of the DDR2 Memory via DMA to the other parts. First I fill a part of the DDR2 memory with data (a counter). Then I copy this part to a different...
Altera_Forum
Honored Contributor
15 years agoI fixed my problem by using the following addresses \o/:
dma_transfer_general((void*)ALTMEMDDR_1_BASE,(void*)(ALTMEMDDR_1_BASE+0x1500008),transfer_size); dma_transfer_general((void*)(ALTMEMDDR_1_BASE+0x1500008),(void*)(ALTMEMDDR_1_BASE+0x3000008),transfer_size); I'm not sure why it worked, but it did. Maybe it somehow uses 64 bits addressing in stead of 32, so I had to start at ALTMEMDDR_1_BASE+0x1500008 in stead of ALTMEMDDR_1_BASE+0x1500004. (ALTMEMDDR_1_BASE being address 0xC000000). Thanks for the ideas :).