Specifications

--sopc_system_name
--profiling_enabled
--simulation_enabled
Description
Extracts metadata from a .elf file intended for the Nios II soft-core processor. This tool allows
downstream tools to extract information that was inserted in a .elf file by nios2-elf-insert. The main
motivation for this tool is to make the .elf file the single handoff file that all downstream embedded tools
can agree on.
For example, the Nios II SBT build flow will use nios-elf-insert to insert the cpu name and the sysid
information into the .elf file at build time. Later on downstream, the eclipse debugger can use nios2-elf-
query to extract this information to auto-populate all the various GUI settings with the correct default
values.
If no command-line arguments are specified, this command returns an exit value of 1 and sends a help
message to stderr.
Related Information
nios2-elf-insert on page 15-15
nios2-flash-programmer-generate
Usage
nios2-flash-programmer-generate [--accept-bad-sysid]
[--add-bin <fname> <flash-slave-desc> <offset>]
[--add-elf <fname> <flash-slave-desc> <extra-elf2flash-arguments>]
[--add-sof <fname> <flash-slave-desc> <offset>
<extra-sof2flash-arguments>]
[--cable <cable name>] [--cpu <processor_name>] [--debug]
[--device <device name>] [--erase-first] [--extended-help]
--flash-dir <directory> [--go] [--help] [--id <address>]
[--instance <instance value>] [--log <filename>] [--mmu]
[--program-flash] [--script-dir <directory>] [--sidp <address>]
[--silent] --sopcinfo <filename> [--verbose] [--version]
NII5V2
2015.05.14
nios2-flash-programmer-generate
15-17
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback