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

Error while buiilding in NiosII Eclipse EDS

Altera_Forum
Honored Contributor II
1,899 Views

Hi,  

I am trying to run a simple hello world application by using New Nios II Application and BSP from template option in NiosII EDS. After selecting my sopcinfo file, choosing my sample project (hello world) when I click on build project to generate my elf file, I get the following error :  

 

alt_sys_init.c.text+0xb8): undefined reference to `__alt_invalid' 

collect2: error: ld returned 1 exit status 

make: *** [Test_on_actual_design.elf] Error 1 

 

How can I solve this error? 

 

Thanks.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
783 Views

 

--- Quote Start ---  

Hi,  

I am trying to run a simple hello world application by using New Nios II Application and BSP from template option in NiosII EDS. After selecting my sopcinfo file, choosing my sample project (hello world) when I click on build project to generate my elf file, I get the following error :  

 

alt_sys_init.c.text+0xb8): undefined reference to `__alt_invalid' 

collect2: error: ld returned 1 exit status 

make: *** [Test_on_actual_design.elf] Error 1 

 

How can I solve this error? 

 

Thanks. 

--- Quote End ---  

 

 

 

Try right clicking on your XXX_bsp folder and selecting NIOS 2, then generate BSP. Following, clean the project. 

 

-Matt
0 Kudos
Reply