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++

How use DMA under uClinux ?

Altera_Forum
Honored Contributor II
1,051 Views

Hi all, I want to use the dma controller under my programm in uClinux. Do I use this (http://www.altera.com/literature/hb/nios2/n2sw_nii52010.pdf) ? Doesn't uClinux offer any functions ? If I'll have to use the HAL API, I 'm forced to use nios-ide ? Thanks in advice.

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
371 Views

DMA can only be used in a Kernel driver, but not in a userland program. AFAIK, the Altera HAL stuff can't be used with Linux. 

 

Of course there are the appropriate macros/functions that allow for easily handling DMA. Same provide a portable access to DMA data memory (non cached, ...), quite independently of the architecture. Maybe you can use the TSA Ethernet driver sourcecode as a reference.  

 

-Michael
0 Kudos
Reply