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

what wrong with my nios ide build

Altera_Forum
Honored Contributor II
1,327 Views

when i test a simple c/c++ programe with hello_led_0 

but when i build ,two error appear ,the information is that: 

 

Error *** [obj/altera_avalon_sysid.o] Error 1 hello_led_0 

Error *** [system_project] Error 2 hello_led_0 

Error altera_avalon_sysid.h: No such file or directory[/cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL/src/altera_avalon_sysid.c] hello_led_0 line 33 

Error altera_avalon_sysid_regs.h: No such file or directory[/cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL/src/altera_avalon_sysid.c] hello_led_0 line 34 

Warning implicit declaration of function `IORD_ALTERA_AVALON_SYSID_ID'[/cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL/src/altera_avalon_sysid.c] hello_led_0 line 60 

Warning implicit declaration of function `IORD_ALTERA_AVALON_SYSID_TIMESTAMP'[/cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL/src/altera_avalon_sysid.c] hello_led_0 line 63 

 

it seem that the builder can not found altera_avalon_sysid.h and altera_avalon_sysid_regs.h 

how can i resolve this problem! 

thank you very much
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
645 Views

I'm new to NIOS II and still getting used to things. But I think you can solve you're problem in the Run menu, by disabling the "Vailidate NIOS II System ID before download" and just not using the core at all (this isn't helpful if you actually do need it though). 

 

On that subject what's the system ID useful for other then a time stamp? Does it get used by the OS as the CPU ID as well? (I'm more of a hardware guy so I'm a bit slow when it comes to OS programming).
0 Kudos
Altera_Forum
Honored Contributor II
645 Views

 

--- Quote Start ---  

originally posted by badomen@Aug 6 2004, 03:07 PM 

on that subject what's the system id useful for other then a time stamp?  does it get used by the os as the cpu id as well? 

--- Quote End ---  

 

One use is for the programmer to verify before you program the board that the syslib you've used to compile the design is for the same hardware design that is running on the board. This stops you generating a design, programming the hardware, writing the software, changing the design and reprogramming the hardware, forgetting to rebuild the syslib, programming the software, and then wondering why nothing works. 

I don't know whether the OS uses the system ID though.
0 Kudos
Altera_Forum
Honored Contributor II
645 Views

Ah. 

 

Well if it doesn't take up too many logic cells maybe I'll start using it. 

 

Cheers.
0 Kudos
Altera_Forum
Honored Contributor II
645 Views

It's implying that the ptf file has changed from what you are trying to download. 

Also, make sure that if you change something in Sopc Builder that affects the .sof file, that you re-compile in Quartus and download a new sof.
0 Kudos
Reply