Nios® II Software Developer Handbook

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

5.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 Create 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.