Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

simple project with DMA

Altera_Forum
Honored Contributor II
1,281 Views

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
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
532 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
532 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
532 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
532 Views

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?
0 Kudos
Reply