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

How to definition"SYSTEM_BUS_WIDTH"?

Altera_Forum
Honored Contributor II
1,000 Views

Hi,everybody: 

I'm write a custom logic on DE2 board. 

 

Within IO header file for the NIOS toolchain there is a definition 'SYSTEM_BUS_WIDTH'.  

 

Can anybody tell me where this is defined, I have done a search for the string and found nothing so far. 

 

PS: The message as following: 

 

NiosQ@localhost ~/NiosQ_program $ nios2-linux-uclibc-gcc hello_altera_avalon_pwm.c 

-o hello_altera_avalon_pwm -elf2flt 

hello_altera_avalon_pwm.c: In function `main': 

hello_altera_avalon_pwm.c:42: error: `SYSTEM_BUS_WIDTH' undeclared (first use in 

this function) 

hello_altera_avalon_pwm.c:42: error: (Each undeclared identifier is reported onl 

y once 

hello_altera_avalon_pwm.c:42: error: for each function it appears in.) 

hello_altera_avalon_pwm.c: In function `print_error': 

hello_altera_avalon_pwm.c:86: error: `SYSTEM_BUS_WIDTH' undeclared (first use in 

this function) 

NiosQ@localhost ~/NiosQ_program $  

 

Thank you for your help. 

 

Regards 

 

NiosQ
0 Kudos
0 Replies
Reply