Altera_Forum
Honored Contributor
14 years agoDMA problem
why when i use my dma, the program stucks here: --- Quote Start --- while (!rx_done); printf ("Transfer successful!\n"); --- Quote End --- pls help! thanks!
you know when rx_done is changed?
it is changed in an interrupt logic. (I'm not quite sure your source code). find function which set "rx_done = 1". basically, the function is called when rx-dma is done. but rx_done is note turned into 1. so, which means dma is not done. why it is not done is ... DMA may not started. DMA may stuck in somewhere in your FPGA.