Forum Discussion
Altera_Forum
Honored Contributor
20 years agoAbout DMA problem..please help me
hi all I have try the altera memory test project with Nios II IDE.. but always display "-Testing memory using DMA"... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif the...
Altera_Forum
Honored Contributor
15 years agobesides , I changed the code to :
/* Post the transmit request */
if ((tc = alt_dma_txchan_send (txchan,
tx_data,
0x10,
NULL,
NULL)) < 0)
{
printf ("Failed to post transmit request, reason = %i\n", tc);
exit (1);
}
else
{
printf ("Succeed to post transmit request when tc = %i\n",tc);
//exit (1);
}
/* Post the receive request */
if ((rc = alt_dma_rxchan_prepare (rxchan,
rx_buffer,
0x10,
txrxDone,
NULL)) < 0)
{
printf ("Failed to post read request, reason = %i\n", rc);
exit (1);
}
else
{
printf ("Succeed to post read request when rc = %i\n",rc);
printf ("txrx_done = %d",txrx_done);
}