Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi,
--- Quote Start ---
pio_green_led: BASE = 0x0000_00a0, END = 0x0000_00af
pio_red_led: BASE = 0x0000_00b0, END = 0x0000_00bf
pio_button: BASE = 0x0000_00d0, END = 0x0000_00df
lcd: BASE = 0x0000_00e0, END = 0x0000_00ef
Is it correct addresses? --- Quote End --- These peripherals are connected to the Nios2 CPU via a "clock bridge". So the correct physical addresses are
pio_green_led: BASE = 0x0800_00a0, END = 0x0800_00af
pio_red_led: BASE = 0x0800_00b0, END = 0x0800_00bf
pio_button: BASE = 0x0800_00d0, END = 0x0800_00df
lcd: BASE = 0x0800_00e0, END = 0x0800_00ef
. --- Quote Start --- Can you give me examples of working with It (for example how to switch on/off leds, use button, e.t.c.)? --- Quote End --- These peripherals are connected via Altera's PIO IP cores, so you can control those only by reading and writing their registers. But to do so in your Linux system, you need appropriate drivers. --- Quote Start --- There is also an issue with eth0 interface. It works only in half duplex mode even when i write "ethtool -s eth0 autoneg off speed 100 duplex full ". --- Quote End --- Maybe it's your PC side problem. Please check that your PC's phy is set in autonegotiation mode. Kazu