Specifications

If no command-line arguments are specified, this command returns an exit value of 1 and sends a help
message to stderr.
create-this-app
Each application subdirectory contains a create-this-app script. The create-this-app script copies the C/C
++ application source code to the current directory, runs nios2-app-generate-makefile to create a
makefile (named Makefile), and then runs make to build the Executable and Linking Format File (.elf) for
your application. Each create-this-app script uses a particular example BSP. For further information,
refer to the script to determine the associated example BSP. If the BSP does not exist when create-this-
app runs, create-this-app calls the associated create-this-bsp script to create the BSP.
The create-this-app script takes no command-line arguments. Your current directory must be the same
directory as the create-this-app script. The exit value is zero on success and one on error.
create-this-bsp
Each BSP subdirectory contains a create-this-bsp script. The create-this-bsp script calls the nios2-bsp
script to create a BSP in the current directory. The create-this-bsp script has a relative path to the
directory containing the .sopcinfo file. The .sopcinfo file resides two directory levels above the directory
containing the create-this-bsp script.
The create-this-bsp script takes no command-line arguments. Your current directory must be the same
directory as the create-this-bsp script. The exit value is zero on success and one on error.
Tcl Commands
Tcl commands are a crucial component of the Nios II SBT. Tcl commands allow you to exercise detailed
control over BSP generation, as well as to define drivers and software packages.
Tcl Scripts
The SBT provides powerful Tcl scripting capabilities. In a Tcl script, you can query project settings,
specify project settings conditionally, and incorporate the software project creation process in a scripted
software development flow. The SBT uses Tcl scripting to customize your BSP according to your
hardware and the settings you select. You can also write custom Tcl scripts for detailed control over the
BSP.
The Nios II Command Shell
The Nios II Command Shell is a bash command-line environment initialized with the correct settings to
run Nios II command-line tools. The Command Shell supports the GCC toolchain.
For more information about GCC toolchains, refer to “Altera-Provided Development Tools” in the Nios II
Software Build Tools chapter of the Nios II Software Developer’s Handbook.
Related Information
Nios II Software Build Tools on page 4-45
GNU Compiler Tool Chain on page 4-44
Overview of Nios II Embedded Development on page 1-1
Starting the Nios II Command Shell
To open the Nios II Command Shell, perform the following steps, depending on your environment:
3-4
create-this-app
NII5V2
2015.05.14
Altera Corporation
Getting Started from the Command Line
Send Feedback