Specifications

Utility Description
elf2dat Converts a .elf file to a .dat file format appropriate for Verilog
HDL hardware simulators.
elf2flash Converts a .elf file to a .flash file for programming to flash
memory.
elf2hex Converts a .elf file to a Hexadecimal (Intel-format) File (.hex).
elf2mem Generates the memory contents for the memory devices in a
specific Nios II system.
elf2mif Converts a .elf file to a Quartus
®
II Memory Initialization File
(.mif).
flash2dat Converts a .flash file to the .dat file format appropriate for
Verilog HDL hardware simulators.
sof2flash Converts an SRAM Object File (.sof) to a .flash file.
The file format conversion tools are in the <Nios II EDS install path>/bin/ directory.
Other Command-Line Tools
Note:
For usage information, enter "--help" after the command and a list of options for the command
appears.
Table 4-15: Altera Command-Line Tools for Developing Nios II Programs
Tool Description
nios2-download Downloads code to a target processor for debugging or
running.
nios2-flash-programmer-generate Allows multiple files to be converted to .flash files, and
optionally programs each file to the specified location
on a flash device.
nios2-flash-programmer Programs data to flash memory on the target board.
nios2-gdb-server Translates GNU debugger (GDB) remote serial
protocol packets over Transmission Control Protocol
(TCP) to JTAG transactions with a target Nios II
processor.
nios2-terminal Performs terminal I/O with a JTAG UART in a Nios II
system
validate_zip Verifies if a specified zip file is compatible with Altera’s
read-only zip file system.
nios2-debug Downloads a program to a Nios II processor and
launches the Insight debugger.
nios2-configure-sof Configures an Altera configurable part. If no
explicit .sof file is specified, it tries to determine the
correct file to use.
4-46
Other Command-Line Tools
NII5V2
2015.05.14
Altera Corporation
Nios II Software Build Tools
Send Feedback