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

NIOS2 MMU uCLinux + LEDs

Altera_Forum
Honored Contributor II
1,035 Views

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 II
376 Views

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

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