Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
703 Views

NIOS2 MMU uCLinux + LEDs

Hi 

 

I'm trying to use LEDs on my DE2-70 board. When I add LED NIOS2 driver in menuconfig of uCLinux I get error during compilation.  

 

/home/lukasz/workspace/nios2-linux/linux-2.6/arch/nios2/drivers/pio.c: In function 'pio_led_init': 

/home/lukasz/workspace/nios2-linux/linux-2.6/arch/nios2/drivers/pio.c:81: error: 'USER_LED_PIO_8OUT_BASE' undeclared (first use in this function) 

/home/lukasz/workspace/nios2-linux/linux-2.6/arch/nios2/drivers/pio.c:81: error: (Each undeclared identifier is reported only once 

/home/lukasz/workspace/nios2-linux/linux-2.6/arch/nios2/drivers/pio.c:81: error: for each function it appears in.) 

/home/lukasz/workspace/nios2-linux/linux-2.6/arch/nios2/drivers/pio.c: In function 'pio_init': 

/home/lukasz/workspace/nios2-linux/linux-2.6/arch/nios2/drivers/pio.c:117: error: 'USER_LED_PIO_8OUT_BASE' undeclared (first use in this function) 

/home/lukasz/workspace/nios2-linux/linux-2.6/arch/nios2/drivers/pio.c: In function 'pio_exit': 

/home/lukasz/workspace/nios2-linux/linux-2.6/arch/nios2/drivers/pio.c:142: error: 'USER_LED_PIO_8OUT_BASE' unde 

 

How I have to define in nios.h my LEDs and how name it in SOPC to work with them?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
44 Views

You can make it by using this way in the URL below: 

http://www.alterawiki.com/wiki/u-boot_config
Reply