Lab1: Creating the ZC702 Platform
This tutorial will recreate the base platform for the ZC702 platform that is delivered in the SDSoC installation. It demonstrates how to start and interact with the SDSoC Platform Utility GUI, and create a simple platform targeting Linux, FreeRTOS, and Standalone OSes. For more information on the SDSoC Platform Utility refer toCreating an SDSoC Platform.
- Launch an SDx Terminal window:
- From Windows, choose .
- From Linux, source thesettings.sh/cshfile as appropriate for the shell type you’re using.
- Launch the SDSoC Platform Utility GUI from the SDx Terminal:
Important:The SDSoC Platform Utility should be launched from the C:/ directory on the Windows OS, or an equivalent root directory, to avoid path name length limitations that can cause problems when generating the platform files on Windows.
- In your terminal or shell type
sdspfm -gui
to launch the GUI.
- In your terminal or shell type
- After the SDSoC Platform Utility GUI opens, enter the following info for the base platform information to match the following figure.
Figure:Specify Hardware Platform
- Platform Name: zc702
Important:The platform name must match the name of the Vivado Design Suite project that defines the hardware, as well as the IP Integrator block design contained in the project.
- Choose an appropriateOutput Directoryfor your system.
- TheVivado ProjectandPlatform Tclfiles can be found in the
/zc702/src/vivadodirectory.
- Platform Name: zc702
- Notice that after the Vivado project file,
zc702.xpr
, has been specified, theProcessor Typefield displaysARM Cortex-A9
. - Click theAddbutton in the Processor Information pane to add the A9 processor to the platform configuration.
Tip:Only one processor of each type is required for the platform configuration, although your platform will still be able to use all cores.
Figure:Add Processor
- In the Boot Information pane you will configure the Linux OS first, but the order you configure OSes is not important.
Figure:Linux Boot Information
- Click theAddbutton in the Boot Information panel to add a new configuration.
- Config ID:
a9_linux
, although this can be any name you want. - OS Type:
Linux
, selected from the drop down menu. - Config Name: This name is automatically generated, but can be edited as needed.
- BIF File:
/zc702/src/linux/linux.bif - Readme File:
/zc702/src/generic.readme - Boot Directory:
/zc702/src/boot - Image Directory:
/zc702/src/linux/image
Tip:OS settings are automatically saved to the selected configuration when a change is made to the settings on the right. - At this point you can save the platform configuration to a file by choosing
Figure:Save Configuration
Saving the platform configuration file lets you reload the details of the platform in the SDSoC Platform Utility and regenerate it as needed, or use it as the starting point for a new platform. You can load a saved configuration file using the
command.
from the menu at the top of the GUI. You’ll be prompted to enter a name and location for the configuration file. You can save the platform configuration file to whatever location you prefer, but you should not store it inside of the generated SDSoC platform as regenerating the platform may delete the configuration file.
- Add and configure FreeRTOS to the platform using the following settings:
Figure:FreeRTOS Configuration
- Click theAddbutton in the Boot Information panel to add a new configuration.
- Config ID:
a9_freertos
. - OS Type:
FreeRTOS
, selected from the drop down menu. - Config Name: Change this name to
FreeRTOS Config 1
. - BIF File:
/zc702/src/freertos/freertos.bif - Readme File:
/zc702/src/generic.readme - Boot Directory:
/zc702/src/boot - Linker Script:
/zc702/src/freertos/lscript.ld
- Add and configure Standalone OS to the platform using the following settings:
Figure:Standalone Configuration
- Click theAddbutton in the Boot Information panel to add a new configuration.
- Config ID:
a9_standalone
. - OS Type:
Standalone
, selected from the drop down menu. - Config Name: Change this name to
Standalone Config 2
. - BIF File:
/zc702/src/standalone/standalone.bif - Readme File:
/zc702/src/generic.readme - Boot Directory:
/zc702/src/boot - Linker Script:
/zc702/src/standalone/lscript.ld
- Save the configuration file again, using the command.
- Click theGeneratebutton at the bottom of the GUI. This causes the GUI to send your platform configuration settings to the
sdspfm
command line utility which creates your platform. You can see progress updates in the SDx Terminal from where you launched the GUI as your platform is created. When your platform is finished generating, you’ll see a popup message in the GUI with the output from the SDx Terminal if there are any error messages. ClickOkto close this message. - Exit the SDSoC Platform Utility by using the command.
With the platform created, you can navigate to the output directory to view the generated platform files. Notice that the Vivado project is included in thehwfolder, and the various OS configurations are included in theswfolder.
From within the SDx IDE you can use the
command to add the newly created platform to the library of platforms available for SDx projects. You can also move your platform anywhere on the file system, prior to adding it to the library.Figure:Add Hardware Platform