Altera_Forum
Honored Contributor
18 years agomy DMA controller doesn't works
I'm trying to integrate my custom hardware DSP blocks in my system using Cyclone III NIOSII evaluation kit (EP3C25). But I'm having some troubles by using DMA controllers for sending and receiving data from DDR memory to the DSP blocks.
I have my hardware configured in SOPC Builder such as image shows, compilation in QuartusII is free of errors. The system.h generated by SOPC and using from NIOSII is attached also. I've been using <alt_dma.h> in NIOS EDS in order to configure and send/receive data to/from hardware by using the Tx and Rx DMA controllers.
alt_dma_txchan txchan;
alt_dma_rxchan rxchan;
if ( (txchan= alt_dma_txchan_open ("dev/im_loader") ) == NULL )
printf ("Error");
if ( (rxchan= alt_dma_rxchan_open ("dev/im_store") ) == NULL )
printf ("Error");
My code was succesfully compilated but when the program is running the opening of both DMA channels always gets error. Any suggestion??