Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

4.6.1. Calling a Custom BSP Tcl Script

From the Nios II Command Shell, you can call a custom BSP Tcl script with any of the following commands:

nios2-bsp --script custom_bsp.tcl

nios2-bsp-create-settings --script custom_bsp.tcl

nios2-bsp-query-settings --script custom_bsp.tcl

nios2-bsp-update-settings --script custom_bsp.tcl

In the Nios II BSP editor, you can execute a Tcl script when generating a BSP, through the New BSP Settings File dialog box.

For more information about using Tcl scripts in the SBT for Eclipse, refer to Using the BSP Editor in the "Getting Started with the Graphical User Interface" chapter.

For more information, refer to an example of custom Tcl script usage in the “Creating Memory Initialization Files” chapter.

Note: Any settings you specify in your script override the BSP default values.

For more information about BSP defaults, refer to the “Specifying BSP Defaults” chapter.

Note: When you update an existing BSP, you must include any scripts originally used to create it. Otherwise, your project’s settings revert to the defaults.
Note: When you use a custom Tcl script to create your BSP, you must include the script in the set of files archived in your version control system.

For more information, refer to the “Using Version Control” chapter.