Specifications

--program-flash: Providing this flag causes calls to nios2-flash-programmer to be generated and
executed. This results in flash targets being programmed.
--script-dir <directory>: Path to the directory where a shell script of this tool’s executed
command lines is generated. This script can be used in place of this nios2-flash-programmer-
generate command. Use . for the current directory. This command overwrites pre-existing files in
<directory> without warning.
--sidp <address>: Base address of system ID peripheral on the target. Not used without --program-
flash option.
--silent: Suppresses information about the command's operation normally sent to stdout.
--sopcinfo <filename>: The .sopcinfo file.
--verbose: Sends verbose output, and default information about the command’s operation, to stdout.
--version: Displays the version of this command and exits with a zero exit status.
Description
The nios2-flash-programmer-generate command converts multiple files to a .flash in Motorola S-record
format, and programs them to the designated target flash devices (--program-flash). This is a
convenience utility that manages calls to the following command line utilities
bin2flash
elf2flash
sof2flash
nios2-flash-programmer
This utility also generates a script that captures the sequence of conversion and flash programmer
commands.
If no command-line arguments are specified, this command returns an exit value of 1 and sends a help
message to stderr.
Example
nios2-flash-programmer-generate --sopcinfo=C:\my_design.sopcinfo \
--flash-dir=. \
--add-sof C:\my_design\test.sof 0x0C000000 memory_0 compress save \
--add-elf C:\my_app\my_app.elf 0x08000000 memory_0 \
--program-flash
nios2-bsp
Usage
nios2-bsp <bsp-type> <bsp-dir> [<sopc>] [<override>]...
Options
<bsp-type>: hal or ucosii.
<bsp-dir>: Path to the BSP directory.
<sopc>: The path to the .sopcinfo file or its directory.
<override>: Options to override defaults.
NII5V2
2015.05.14
nios2-bsp
15-19
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback