Hello, my name is Motsu.
This time, I would like to introduce a feature called "Nios® II Command Shell" that I learned about during my production training.
The Nios II Command Shell is a tool that allows you to configure the device by entering commands.
It is very convenient because it allows you to perform configuration without having to start up Quartus® II!
Let's take a look at how to do this.
Launch Command Shell
First, press the Windows Start button, select All Programs, and you will find the Altera folder. In that folder, in the Nios II EDS folder, you will find Command Shell. (see figure below).
Moving Directories
When Command Shell is launched, the following window appears.
The current directory is shown in the area circled by a line.
Move this directory to the directory where the sof file is stored.
Use the Cygwin-based command cd to move.
Configuration
Enter the configuration command [nios2-configure-sof filename.sof].
If there is only one sof file in the current directory, you can also use [nios2-configure-sof].
If the configuration is successful, the message "Successfully" will be displayed in green text, along with configuration information.
If it fails, an Error is printed.
Conclusion
The Command Shell allows configuration without launching the Quartus II Programmer's GUI or the Nios II SBT.
The Nios II Command Shell can also do the following
・Detect JTAG chain and set up download hardware configuration
・Start debugger
・Create and update BSPs, etc.
For more information on how to do these things, please see Altera's document " Nios II Command-Line Tools ".
New Engineer's Blush Blog Articles