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

tutorial on uClinux hardware peripheral access ?

Altera_Forum
Honored Contributor II
1,049 Views

Hello I would like to make a simple program to use LEDs, 7seg... running under uClinux on my 3c120 devboard. But i don't know how to do that , i have already realized some Nios II programs with eclipse for NiosII dowload .elf ...used HAL drivers to control my PIO. But it's not the same under uClinux. 

Does somebody know how to do that or know where I can found a tutorial. 

Thanks. 

:confused:
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
306 Views

You'll need to write a Linux device driver, userspace won't be allowed to access IO locations. 

Any book on Linux device drivers should do :-)
0 Kudos
Altera_Forum
Honored Contributor II
306 Views

Thanks i will try.  

 

No exemple on altera wiki?
0 Kudos
Altera_Forum
Honored Contributor II
306 Views

Ooops ?!?!?  

 

The NIOS Linux distribution comes with lots of device drivers in source code. 

 

Moreover: search the Wikis for tricks and tips.  

 

-Michael
0 Kudos
Reply