Specifications
For more information about preserving all settings, including the default settings, use the DONT_CHANGE
keyword, described in the “Top Level Tcl Script for BSP Defaults” chapter.
Alternatively, you can provide nios2-bsp with command-line options or Tcl scripts to override the default
settings.
For more information about using the nios2-bsp script, refer to the "Nios II Software Build Tools
Reference" chapter.
Related Information
• Specifying BSP Defaults on page 4-34
• Top Level Tcl Script for BSP Defaults on page 4-35
• Nios II Software Build Tools Reference on page 15-1
For more information about the nios2-bsp-update-settings command and using the nios2-bsp script.
Recreating Your BSP
When you recreate your BSP, you start over as if you were creating a new BSP.
Note: After you recreate your BSP, you must always regenerate it.
What Happens
Recreating a BSP has the following effects:
• System-dependent settings are created based on the current hardware system.
• Non-system-dependent settings can be selected by the default Tcl script, by values you specify, or both.
For more information about actions taken when you generate the BSP after recreating it, refer to the
“Regenerating Your BSP” chapter.
Related Information
Regenerating Your BSP on page 4-30
When to Recreate Your BSP
If you are working exclusively in the Nios II SBT for Eclipse, and you modify the underlying hardware
design, the best practice is to create a new BSP. Creating a BSP is very easy with the SBT for Eclipse.
Manually correcting a large number of interrelated settings, on the other hand, can be difficult.
How to Recreate Your BSP
You can recreate your BSP in the Nios II SBT for Eclipse, or using the SBT at the command line.
Regardless which method you choose, you can use Tcl scripts to control and reproduce your BSP settings.
This section describes the options for recreating BSPs.
Using Tcl Scripts When Recreating Your BSP
A Tcl script automates selection of BSP settings. This automation ensures that you can reliably update or
recreate your BSP with its original settings. Except when creating very simple BSPs, Altera recommends
specifying all BSP settings with a Tcl script.
To use Tcl scripts most effectively, it is best to create a Tcl script at the time you initially create the BSP.
However, the BSP Editor enables you to export a Tcl script from an existing BSP.
For more information about exporting Tcl scripts, refer to Using the BSP Editor in the "Getting Started
with the Graphical User Interface" chapter.
NII5V2
2015.05.14
Recreating Your BSP
4-33
Nios II Software Build Tools
Altera Corporation
Send Feedback