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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

simple socket server problem

Altera_Forum
Honored Contributor II
1,202 Views

Hi 

 

i am trying to build the simple socket server example but i have got the following error when i doing this in nios2ide version 9.0 

Severity and Description Path Resource Location Creation Time Id 

system_description/alt_sys_init.c error: `UART1_IRQ_INTERRUPT_CONTROLLER_ID' undeclared (first use in this function) simple_socket_server_1 line 106 1265647964234 32 

system_description/alt_sys_init.c error: `UART1_IRQ_INTERRUPT_CONTROLLER_ID' undeclared (first use in this function) simple_socket_server_1_syslib line 106 1265647907092 29 

 

but i don't have any idea what i can do 

 

 

can any one tell me what i can do to solve this problem
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
457 Views

This is an odd problem. You've obviously got a uart in the system. alt_sys_init.c generated code in it to initialize the UART but it can't find a MACRO definition that it expects. Look in your "system.h" file to see if the macro "UART1_IRQ_INTERRUPT_CONTROLLER_ID" indeed does or does not exist. 

 

Did you make changes to your system recently. Have you tried a "Clean Project" of both your project and system library before rebuilding? 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
457 Views

hi  

 

i look in system.h and i don't find UART1_IRQ_INTERRUPT_CONTROLLER_ID 

 

what is the meaning of that value and how i can set it 

 

thank yow jak for your help
0 Kudos
Altera_Forum
Honored Contributor II
457 Views

Your SoPC system must have a component called UART1 in it. It's very odd that it's getting added to the alt_sys_init but not to system.h. Did you try cleaning the project. None of the project's files are accidentally write-protected are they? 

 

Jake
0 Kudos
Reply