Forum Discussion

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

simple project with DMA

I've been working a long time with NIOS II Stratix edition.

I want to improve my system's performance by adding DMA. My problem is, that everything is working well. However if only add DMA to my system, even a simple printf instruction doesn't print on the screen hrough jtag.

As a target I want to copy data from custom peripheral to SDRAM memory. However at this time I just want my project to work with DMA instantiated.

If you have suggestions, please write. Or could give me a link to a simple project which uses DMA. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif

4 Replies

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

    Most (if not all) "Full Feature"ed designs have Avalon DMAs. There is nothing special about adding a DMA. It&#39;s just another Avalon master.

    I would double check your SOPC Builder design to make sure that your processor is still connected, correctly. Additionally, I would step through all of the code in alt_sys_init() to determine what (if anything) is failing to initialize.

    Cheers,

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

    --- Quote Start ---

    originally posted by slacker@Jun 19 2006, 12:19 PM

    most (if not all) "full feature"ed designs have avalon dmas. there is nothing special about adding a dma. it&#39;s just another avalon master.

    i would double check your sopc builder design to make sure that your processor is still connected, correctly. additionally, i would step through all of the code in alt_sys_init() to determine what (if anything) is failing to initialize.

    cheers,

    - slacker

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16253)

    --- quote end ---

    --- Quote End ---

    there is examples in the nios2 software development handbook
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Thank you for the advices

    I verified the cpu connections, alt_sys_init and I looked to the handbook. All of the devices are instantiated and initialized in the alt_sys_init (as those in full_featured system from design example from nios2 kit), the cpu is configured as before adding dma so it should be fine.

    HOWEVER it&#39;s NOT http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

    Do you know any other reason?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Thank you for the advices

    I verified the cpu connections, alt_sys_init and I looked to the handbook. All of the devices are instantiated and initialized in the alt_sys_init (as those in full_featured system from design example from nios2 kit), the cpu is configured as before adding dma so it should be fine.

    HOWEVER it&#39;s NOT http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

    Do you know any other reason?