Visible to Intel only — GUID: rxa1614017125228
Ixiasoft
Visible to Intel only — GUID: rxa1614017125228
Ixiasoft
2.1. Creating a BSP from Platform Designer
When you create a BSP from Platform Designer, the BSP Editor stores your BSP definition in a BSP Settings File (.bsp) for later retrieval. You can reopen an existing BSP by opening the .bsp file in Platform Designer. The BSP generally includes a .a file, header files (for example, system.h), and a linker script (linker.x). You use these BSP files when creating an application.
Launching BSP Editor in Integrated Mode
In integrated mode, BSP Editor automatically updates for any changes that you make to your system in Platform Designer. You launch BSP Editor in integrated mode by specifying your Platform Designer system's .qsys file as the main input to the BSP generation. Nios® V processor designs require integrated mode. Nios® II processor designs require stand-alone mode.
To launch BSP Editor in integrated mode:
- Open a Platform Designer system, as Creating or Opening a Platform Designer System describes.
- In Platform Designer, click File > New BSP.
- Specify the name and location for the new BSP settings file, and click the Create button. The Create New BSP dialog box opens.
- For System file, specify the .qsys file that defines the target hardware platform for the current Platform Designer system. The CPU name and BSP target directory reflect the values in the .qsys file.
Figure 71. Create New BSP Dialog Box (Integrated Mode)
- Specify options for the Operating System and BSP target directory, as Create New BSP Dialog Box describes.
- To create the BSP, click the Create button. The BSP Editor opens and displays the BSP Editor's Main tab in Platform Designer.
Figure 72. BSP Editor Main Tab
- To configure the BSP, specify settings and options on the BSP Editor tabs. Refer to BSP Editor GUI for details on these settings.
- To generate the files for the BSP according to your specifications, click the Generate BSP button in BSP Editor. BSP Editor files do not automatically generate when you generate Platform Designer system files.
Launching BSP Editor in Stand-Alone Mode
Platform Designer generates a <system_name>/ .sopcinfo file during HDL generation of the system. You can specify a .sopcinfo file and other BSP file saving options when defining a new BSP in stand-alone mode. Stand-alone mode is required for Nios® II processor designs, and is not supported for Nios® V processor designs.
- Open a Platform Designer system, as Creating or Opening a Platform Designer System describes.
- If generating a BSP for a Platform Designer system, click Generate HDL to generate the HDL and .sopcinfo files defining the target hardware for the system.
- In Platform Designer, click File > New BSP.
- Specify the name and location for the new BSP settings file, and click the Create button. The New Platform Designer BSP dialog box opens.
- For the SOPC Information File name option, specify the .sopcinfo file that step 2 generates. The CPU name and BSP target directory reflect the values in the .sopcinfo file.
Figure 73. Create New BSP Dialog Box (Stand-Alone Mode)
- You can specify options for the Operating System and BSP file output, as Create New BSP Dialog Box describes.
- To create the BSP, click the Create button. The BSP Editor opens and displays the BSP Editor's Main tab in Platform Designer.
- To configure the BSP, specify settings and options on the BSP Editor tabs. Refer to BSP Editor GUI.
- To generate the files for the BSP according to your specifications, click the Generate button in BSP Editor.