Specifications
Selecting the Correct Launch Configuration Type
If you try to debug a Nios II software project as a CDT Local C/C++ Application launch configuration
type, you see an error message, and the Nios II Debug perspective fails to open. This is expected CDT
behavior in the Eclipse platform. Local C/C++ Application is the launch configuration type for a standard
CDT project. To invoke the Nios II plugins, you must use a Nios II launch configuration type.
Note: If your project was created with version 10.1 or earlier of the Nios II SBT, you must re-import it to
create the Nios II launch configuration correctly.
Target Connection Options
The Nios II launch configurations offer the following Nios II-specific options in the Target Connection
tab:
• Disable 'Nios II Console' view
• Ignore mismatched system ID
• Ignore mismatched system timestamp
• Download ELF to selected target system
• Start processor
• Reset the selected target system
Renaming Nios II Projects
To rename a project in the Nios II SBT for Eclipse, perform the following steps:
1. Right-click the project and click Rename.
2. Type the new project name.
3. Right-click the project and click Refresh.
If you neglect to refresh the project, you might see the following error message when you attempt to
build it:
Resource <original_project_name> is out of sync with the system
Running Shell Scripts from the SBT for Eclipse
Many SBT utilities are implemented as shell scripts. You can use Eclipse external tools configurations to
run shell scripts. However, you must ensure that the shell environment is set up correctly.
To run shell scripts from the SBT for Eclipse, execute the following steps:
1. Start the Nios II Command Shell.
2. Start the Nios II SBT for Eclipse by typing the following command:
eclipse-nios2
You must start the SBT for Eclipse from the command line in both the Linux and Windows operating
systems, to set up the correct shell environment.
3. From the Eclipse Run menu, select to External Tools > External Tools Configurations.
4. Create a new tools configuration, or open an existing tools configuration.
5. On the Main tab, set Location and Argument.
NII5V2
2015.05.14
Selecting the Correct Launch Configuration Type
2-37
Getting Started with the Graphical User Interface
Altera Corporation
Send Feedback