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

Problem with developing custom device driver.

Altera_Forum
Honored Contributor II
946 Views

Hello, I have problem developing custom device driver. I've read the documentation, but I only got confused. Is there a simple tutorial on how to write device drivers ?  

My device has one write, one read register and it's capable of generating IRQ signal. It should work likt this: programmer writes data to write register using standard IOWR macro, my device processes data and returns it into read register generating interrupt. My question is how to write interrupt service routine ? Sorry for simple questions, but I'm beginner in NIOS II systems (I've created some systems based on Xilinx Microblaze processor only).
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
258 Views

For the documentation, you have information in Nios II Software Developer’s Handbook chapter 5, 6 and 7, and in Quartus II Handbook volume 4 : SOPC Builder chapter 9 and 10. 

In the chapter 10, you will find a design example, and the files associated can be found here (http://www.altera.com/literature/hb/qts/altera_avalon_checksum.zip) (http://www.altera.com/literature/hb/qts/altera_avalon_checksum.zip%29). 

 

I hope that will help you.
0 Kudos
Altera_Forum
Honored Contributor II
258 Views

Thanks, problem solved and everything works properly =)

0 Kudos
Reply