Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

DMA 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!

17 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    So is it ok if i use performance counter? or maybe the function alt_ntick?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    yes, i saw that but the model is different from mine. i used IS61LV25616 SRAM 512KB. pls help. thanks.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?