Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

NIOS2 MMU uCLinux + LEDs

Altera_Forum
Honored Contributor II
752 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
93 Views

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

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