Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSPI with DMA is not working?
Hi, everyone I am using SPI Master Core on FPGA to transmit data to SPI slave (offboard device). I want to use DMA to free my NIOS for other tasks during SPI data transfer. My Idea is NIOS...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- It doesn't. The MM interface hasn't got a waitrequest to hold the DMA off, effectively resulting in a TXOverrun at the second write. The dataavailable and readyfordata are internally connected only and read as 'status' signals by a Nios II CPU. Maybe you can try inverting the readyfordata and use that as a waitrequest. --- Quote End --- In V file I found // Ready to accept streaming data. assign readyfordata = TRDY; the signal readyfordata indicates if Transmit ready bit is set. Inverting the readyfordata/TRDY for every write prevents my NIOS from doing other tasks. Or do U mean I should change hardware to do it? thanks