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!why when i use my dma, the program stucks here:
--- Quote Start --- while (!rx_done); printf ("Transfer successful!\n"); --- Quote End --- pls help! thanks!So is it ok if i use performance counter? or maybe the function alt_ntick?
You can use either.
Or you can simply set/reset a spare PIO and measure the elapsed time with an oscilloscope; that's what I usually do, without need of adding any timer.OK, i will give it a try. besides, i wanna ask regarding SRAM. I cannot find a suitable SRAM module in SOPC for DE2 Board. where can i get the SRAM 512KB module?
Take a look at this thread I answered a few time ago
http://www.alteraforum.com/forum/showthread.php?t=26487yes, i saw that but the model is different from mine. i used IS61LV25616 SRAM 512KB. pls help. thanks.
Your model is different but the solution I wrote there still applies.
You only need to duplicate the standard component definition (the tcl file) and modify a few parameters in order to match your SRAM characteristics.I already changed the port but I am not sure about the timing. will the timing affect a lot if i just leave it as in your code?