Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

5.11.3.4.7. nios2-configure-sof

Description

This tool configures an Intel configurable part. If no explicit SOF file is provided then it tries and work out the correct file to use.

Usage

nios2-configure-sof [-h/--help] [-C/--directory <dir name>]
       [-c/--cable <cable name>] [-d/--device <device index>]
           [ <filename.sof> ]

Options

-h/--help                   Prints this message.

 -C/--directory <dir name>   Change to this directory before running

 -c/--cable <cable name>     Specifies which JTAG cable to use (not needed if
                             you only have one cable).
 -d/--device <device index>  Specifies in which device you want to look for the
                             
               Nios® II CPU (1 = device nearest TDI etc.)

 <filename.sof>              The SOF file you want to download

If you have exactly one cable attached then nios2-configure-sof uses this cable by default. If you have more than one cable attached then you must specify one. Use `jtagconfig` to find out which cables you have available. If a SOF file is specified, then that file is configured into the part. If no file is specified, or if the specified filename does not have a path associated with it then the tool searches for matching SOF files, first in the current directory and then in the directory which contains the PTF file for the project in the current directory.