2017 views|0 replies

56

Posts

0

Resources
The OP
 

Playing with Zynq Serial 27 - Exporting PS hardware configuration and creating a new SDK project [Copy link]

1 Overview

After configuring the PL project of the PS and completing the compilation, you need to export the hardware configuration of the PS as the BSP ( Board Support Package ) of the SDK . Then you can create a new software project on the SDK and write applications to implement the development of Cortex A9 on Zynq . This section takes the zstar_ex50 project as an example to demonstrate how to export the PS hardware configuration of the PL project and create a simplest HelloWorld template project in the SDK .

2Export PS hardware configuration

After the PL project is compiled, click the menu File --> Export --> Export Hardware as shown in the figure .

A dialog box as shown in the figure pops up, set the default settings, and click OK .

3 SDK new project

Click File --> Launch SDK to start SDK to create software project.

The following dialog box pops up. Use the default settings and click OK to continue.

The SDK interface is shown below.

Click File --> New --> Application Project on the menu bar to create a new project.

The New Project interface pops up. Enter the project name as Helloworld . Use the default settings for other options. Click Next to proceed to the next page.

On the Templates page, you can select the template project preset by the SDK and select Hello World under Available Templates . Click Finish to complete the project creation.

Then, as shown in the figure, two new projects Helloworld and Helloworld_bsp appear under Project Explorer . Helloworld is an application project, where user source codes are edited and generated. The bsp of Helloworld_bsp stands for board support package . As the name implies, it stores the hardware driver support required for the current software project. All application projects need to be supported by a bsp project. Of course, if we create another application project, we can uncheck the option to generate a new bsp project by default, and it is no problem to point to the current Helloworld_bsp as the bsp project. Expand the application structure Helloworld , and helloworld.c under src is the main C source code file of this application project . This C source code is also very simple, which is to initialize the Zynq system at power-on ( init_platform() ), then print Hello world on the serial port ( print("Hello World\n\r") ), and shut down the system after completion ( cleanup_platform() ).

If you make any changes to the C source code of the Helloworld project, EDK will usually compile it automatically after saving. Of course, if you are not sure, you can select the Helloworld project, right-click it, and click Build Project in the pop-up menu to compile the project.



This content is originally created by EEWORLD forum user ove . If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

This post is from FPGA/CPLD
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list