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

problem with read the avlon bus

Altera_Forum
Honored Contributor II
1,106 Views

my extern device's physical address is start from 0x010008F0 , what address should i read in the uclinux kernel ?  

 

someone can help me ?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
409 Views

Hi rawbeer, 

 

> what address should i read in the uclinux kernel ?  

 

Use the same address. If you are using a data cache, you should use the readx/writex 

macros [i.e. - readb()/writeb(), readw()/writew() etc.] to bypass the cache. They 

are defined in asm/io.h. 

 

You might want to look at the following thread as well if you plan on trying to 

access the device from a user application (rather than a driver): 

 

http://forum.niosforum.com/forum/index.php?showtopic=3084 (http://forum.niosforum.com/forum/index.php?showtopic=3084

 

Regards, 

--Scott
0 Kudos
Reply