Specifications

Description
When invoked with no arguments, nios2-bsp-console starts an interactive command-line Tcl interpreter
for creating, editing, and generating Altera BSPs.
Related Information
Tcl Commands for BSP Settings on page 15-64
alt-file-convert
Usage
alt-file-convert -I <input_type> -o <output_type> [option(s)] --input=<input_file>
--output=<output_file>
Options
-h, --help - prints usage
-I - input type
-O - output type
--base - base address (in hex) f target memory (default 0x0)
--end - end address (in hex) of target memory (default 0xFFFFFFFF)
--reset - reset address (in hex) of target memory (default None)
--input - path to input file
--output - path to output file
--in-data-width - data width of inputfile [8, 16, 32, 64, 128, 256] (default 8)
--out-data-width - data width of target memory [8, 16, 32, 64, 128, 256] (default
None)
--boot - location of boot file to be appended (srec format)
Description
The alt-file-convert tool is a general file conversion tool that allows you to create a flash image for the
MAX10 device with a bootloader.
Examples
Converting from Intel Hex (IHEX) to a Quartus Hex (HEX) for a memory with a 32-bit data width:
alt-file-convert –I ihex –O
hex out-data-width 32 in.ihex out.hex
Converting from an .elf file to a flash and appending a bootcopier given as a srec file:
alt-file-convert –I elf32-littlenios2 –O flash in.elf out.flash –-have-boot-copier
–-boot boot.elf
Converting from an HEX file for a 16-bit data width memory to a DAT file:
alt-file-convert –I hex –O
dat in-data-width 16 in.hex out.dat
15-22
alt-file-convert
NII5V2
2015.05.14
Altera Corporation
Nios II Software Build Tools Reference
Send Feedback