Forum Discussion
Altera_Forum
Honored Contributor
15 years agoStrange error with NIOS2 DMA ..
hello to everyone i am trying to make my DMA read from a PIO and write in a SDRAM This is my adapted code to do this Code: #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <s...
Altera_Forum
Honored Contributor
15 years agoI've changed
/* Post the transmit request */
if ((rc = alt_dma_txchan_send (txchan,
tx_data,
0x00,
NULL,
NULL)) < 0) And now it is reading, i guess since my PIO had no other adress after the base it got lost.. It isnt working as it should throught. My PIO has FF in all adresses and my SDRAM is changing the value only after the 7th adress! PIO: 1. ff 2.ff 3.ff SDRAM should be like the PIO but instead it is like that after the transaction: 1. old value 2.old value 3..4.. 5.33 6.33 7.33 8.33 .. untill 15.33 Any ideas? 33 may be correct if the width of the bits are different i guess.