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.
12748 Discussions

NIOS II IDE Error 2 on Hello World

Altera_Forum
Honored Contributor II
2,076 Views

I seem to be having a weird error with the NIOS II IDE 9.0. When I try to build/run the hello world example, I get this: 

 

**** Build of configuration Debug for project hello_world_0 **** make -s all includes make: *** Error 2 Build completed in 11.295 secondsAnd get the following in the log: 

 

!ENTRY com.altera.nj.launch 4 104 2009-11-21 16:37:25.627 !MESSAGE The Nios II ELF executable does not exist. Please verify that the project hello_world_0 built successfully. !STACK 0 java.io.FileNotFoundException: D:/Documents/School/ece332/Final_Project/hello_world_0/Debug/hello_world_0.elf not found. at com.altera.nj.launch.internal.Nios2LaunchConfigurationDelegate.getProgramFile(Nios2LaunchConfigurationDelegate.java:1424) at org.eclipse.cdt.launch.AbstractCLaunchDelegate.verifyProgramFile(AbstractCLaunchDelegate.java:378) at com.altera.nj.launch.internal.Nios2LaunchConfigurationDelegate.syncLaunch(Nios2LaunchConfigurationDelegate.java:377) at com.altera.nj.launch.internal.Nios2LaunchConfigurationDelegate.launch(Nios2LaunchConfigurationDelegate.java:342) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:754) at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:944) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) !SUBENTRY 1 com.altera.nj.launch 4 104 2009-11-21 16:37:25.636 !MESSAGE D:/Documents/School/ece332/Final_Project/hello_world_0/Debug/hello_world_0.elf not found. !STACK 0 java.io.FileNotFoundException: D:/Documents/School/ece332/Final_Project/hello_world_0/Debug/hello_world_0.elf not found. at com.altera.nj.launch.internal.Nios2LaunchConfigurationDelegate.getProgramFile(Nios2LaunchConfigurationDelegate.java:1424) at org.eclipse.cdt.launch.AbstractCLaunchDelegate.verifyProgramFile(AbstractCLaunchDelegate.java:378) at com.altera.nj.launch.internal.Nios2LaunchConfigurationDelegate.syncLaunch(Nios2LaunchConfigurationDelegate.java:377) at com.altera.nj.launch.internal.Nios2LaunchConfigurationDelegate.launch(Nios2LaunchConfigurationDelegate.java:342) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:754) at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:944) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) I'm not sure why it's not generating an ELF file. There are no errors in the example that I can see, and it's linked properly to a syslib project generated by the correct PTF file. I'm really at a lose as to why this isn't working.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
911 Views

How i see you didn't build your project. See on the first code example, you have two errors. In the NIOSII IDE click on "problems" tab(it's located above the message "Build completed in 11.295s"). When you click that tab you will se log errors. Send that if you can't solve your problem.

0 Kudos
Altera_Forum
Honored Contributor II
911 Views

hi, 

my self trying to build simple projects in nios 2 while building it is showing the fallowing warning message can u please give me the solution 

"**** Build of configuration Debug for project count_binary_1 **** 

 

make -s all includes  

make: *** No rule to make target `E:/ec8427vhdl', needed by `/cygdrive/e/ec8427vhdl/Debug/system_description/../obj/generated_app.mk-t'. Stop. 

Build completed in 267.302 seconds" 

when i tried to run on nios 2 hard ware it giving error"elf file does not exist make sure that ur project is build successfully thank you
0 Kudos
Altera_Forum
Honored Contributor II
911 Views

hi, 

my self trying to build simple projects in nios 2 while building it is showing the fallowing warning message can u please give me the solution 

"**** Build of configuration Debug for project count_binary_1 **** 

 

make -s all includes  

make: *** No rule to make target `E:/ec8427vhdl', needed by `/cygdrive/e/ec8427vhdl/Debug/system_description/../obj/generated_app.mk-t'. Stop. 

Build completed in 267.302 seconds" 

when i tried to run on nios 2 hard ware it giving error"elf file does not exist make sure that ur project is build successfully thank you
0 Kudos
Reply