Visible to Intel only — GUID: mwh1416946644433
Ixiasoft
Visible to Intel only — GUID: mwh1416946644433
Ixiasoft
3.13.7. Running Shell Scripts from the SBT for Eclipse
To run shell scripts from the SBT for Eclipse, execute the following steps:
- Start the Nios® II Command Shell.
- 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.
- From the Eclipse Run menu, select to External Tools > External Tools Configurations.
- Create a new tools configuration, or open an existing tools configuration.
- On the Main tab, set Location and Argument.
Table 6. Location and Argument to Run Shell Script from Eclipse Platform Location Argument Windows ${env_var:QUARTUS_ROOTDIR}\bin\cygwin\bin\sh.exe -c " <script name> <script args>" Linux ${env_var:SOPC_KIT_NIOS2}/bin/ <script name> <script args> Table 7. Location and Argument Values Used to Run elf2hex --help from Eclipse Platform Location Argument Windows ${env_var:QUARTUS_ROOTDIR}\bin\cygwin\bin\sh.exe -c "elf2hex --help" Linux ${env_var:SOPC_KIT_NIOS2}/bin/elf2hex --help - On the Build tab, ensure that Build before launch and its related options are set appropriately.
By default, a new tools configuration builds all projects in your workspace before executing the command. This might not be the desired behavior.
- Click Run. The command executes in the Nios® II Command Shell, and the command output appears in the Eclipse Console tab.