Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

simple socket server problem

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

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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