Specifications

By recreating the BSP settings file with a Tcl script that specifies all BSP settings, you can reproduce the
original BSP while ensuring that system-dependent settings are adjusted correctly based on any changes in
the hardware system.
For more information about Tcl scripting with the SBT, refer to the “Tcl Scripts for BSP Settings”.
Related Information
Tcl Scripts for BSP Settings on page 4-26
Getting Started with the Graphical User Interface on page 2-1
Recreating Your BSP in Eclipse
The process for recreating a BSP is the same as the process for creating a new BSP. The Nios II SBT for
Eclipse provides an option to import a Tcl script when creating a BSP.
For more information, refer to “Getting Started with Eclipse” and “Using the BSP Editor” in the Getting
Started with the Graphical User Interface chapter of the Nios II Software Developer’s Handbook.
Related Information
Getting Started with the Graphical User Interface on page 2-1
Recreating Your BSP at the Command Line
Recreate your BSP using the nios2-bsp-create-settings command. You can use the --script option to
define the BSP with a Tcl script.
The nios2-bsp-create-settings command does not apply default settings to your BSP. However, you can
use the --script command-line option to run the default Tcl script.
For more information about the default Tcl script, refer to the “Specifying BSP Defaults” chapter.
For more information about using the nios2-bsp-create-settings command, refer to the "Nios II Software
Build Tools Reference" chapter.
Related Information
Specifying BSP Defaults on page 4-34
Nios II Software Build Tools Reference on page 15-1
Specifying BSP Defaults
The Nios II SBT sets BSP defaults using a set of Tcl scripts. These scripts specify default BSP settings. The
scripts are located in the following directory:
<Nios II EDS install path>/sdk2/bin
Table 4-8: Default Tcl Script Components
Script Level Summary
bsp-set-defaults.tcl Top-level Sets system-dependent settings to default values.
bsp-call-proc.tcl Top-level Calls a specified procedure in one of the helper
scripts.
bsp-stdio-utils.tcl Helper Specifies stdio device settings.
4-34
Recreating Your BSP in Eclipse
NII5V2
2015.05.14
Altera Corporation
Nios II Software Build Tools
Send Feedback