You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<td width="16%" align="center"><a href="Lab1-Creating-DSA-for-Zynq-7000-SoC-Processor-Design.md">Lab1: Creating the DSA for a Zynq-7000 SoC Processor Design</a></td>
13
-
<td width="17%" align="center"><a href="Lab2-Creating-Software-Components.md">Lab 2: Creating Software Components for the Platform</a></td>
14
-
<td width="17%" align="center">Lab 3: Creating a Custom Platform Using the SDx IDE</td>
12
+
<td width="16%" align="center"><a href="Lab1-Creating-DSA-for-Zynq-MPSoC-Processor-Design.md">Lab1: Creating the DSA for a Zynq UltraScale+ MPSoC Processor Design</a></td>
13
+
<td width="17%" align="center"><a href="Lab2-Creating-Software-Components.md">Lab 2: Creating the SDSoC Platform</a></td>
14
+
<td width="17%" align="center">Lab 3:Using Your Custom Platform</td>
15
15
</tr>
16
16
</table>
17
17
</div>
18
18
19
19
20
-
## Lab 3: Creating a Custom Platform Using the SDx™ IDE
20
+
## Lab 3: Using Your Custom Platform
21
21
22
-
<details><summary><big><strong>Step 1: Invoking the SDx IDE and Creating a Platform Project</strong></big></summary>
22
+
1. On the SDx IDE menu, select **File \> New \> SDx Application Project** to begin creating a new Application project.
The first command sets the environment variables prior to launching the SDx IDE and the second command launches the SDx IDE.
47
-
48
-
SDx IDE prompts you to set a directory location for an SDx workspace. The SDx workspace contains the platform and application projects developed by you.
49
-
50
-
1. For this lab enter `/tmp/sdx_workspace` for the Workspace as shown in the following figure.
51
-
52
-

53
-
54
-
>:pushpin:**NOTE:**
55
-
>We are re-using the same SDx workspace as in Lab 2.
56
-
57
-
1. Click **OK**.
58
-
59
-
1. In the SDx IDE Welcome screen, select **Create SDx Project**.
60
-
61
-
As an alternative, the SDx IDE menu selection **File \> New \> SDx Project** can be used.
62
-
63
-
1. Select **Platform** on the Project Type dialog.
64
-
65
-

66
-
67
-
You will create an SDSoC™ platform and populate it with the hardware and software components created in the earlier labs.
68
-
69
-
1. Click **Next**.
70
-
71
-
1. On the Platform Specification dialog.
72
-
73
-
1. Click **Browse** to select **/tmp/sdx\_workspace/zynq7\_board.dsa** for the Hardware specification file.
74
-
75
-
1. Leave the default to select Import software platform components.
76
-
77
-
1. Click **Finish**.
78
-
79
-

80
-
</details>
81
-
82
-
<details><summary><big><strong>Step 2: Defining System Configuration</strong></big></summary>
83
-
84
-
The zynq7\_board project is created and can be accessed through the Project Explorer or Assistant windows. The Editor Area window shows the four steps that we will use to generate the zynq7\_board platform.
85
-
86
-

87
-
88
-
1. Click **(1) Define System Configuration**.
89
-
90
-
1. Enter **standalone** in the Name text box.
91
-
92
-
2. Display Name will be auto-filled with same name.
93
-
94
-
3. Enter **standalone configuration for the zynq7\_board** in the Description text box.
95
-
96
-
4. For Boot Directory, click **Browse** to navigate to the **/tmp/sdx_workspace/boot** folder.
97
-
98
-
5. For Bif File, click **Browse** to navigate to the **/tmp/sdx_workspace/boot/platform.bif** file path.
<summary><big><strong>Step 5: Adding Custom Platform to Repository</strong></big></summary>
143
-
144
-
145
-
1. Click **(4) Add to Custom Repositories**.
146
-
147
-
This will add the newly created platform to the list of platform choices we can use to build SDSoC applications.
148
-
149
-

150
-
151
-
2. Project Explorer and Assistant windows show the new zynq7_board platform.
152
-
153
-

154
-
155
-
</details>
156
-
<details>
157
-
<summary><big><strong>Step 6: Creating an SDx Application Targeting the Custom Platform</strong></big></summary>
158
-
159
-
1. On the SDx IDE menu, select **File \> New \> SDx Project** to begin creating a new Application project.
160
-
161
-
1. Select **Application** on the Project Type dialog.
162
-
163
-
You will now create an SDx application for the custom SDSoC platform we generated.
164
-
165
-

166
-
167
-
1. Click **Next**.
168
-
169
-
1. In the Create a New SDx Project dialog, type **sdx\_app1** as the Project name.
24
+
1. In the Create a New SDx Application Project dialog, type **sdx\_app1** as the Project name.
170
25
171
26
1. Click **Next**.
172
27
173
28

174
29
175
-
1. In the Platform dialog, select **Platform**.
30
+
1. In the Platform dialog, select **Add Custom Platform** command (the '+' icon).
31
+
32
+
This opens the Specify Custom Platform Location dialog box, letting you navigate to the platform folder. If you were following the instructions in this tutorial, you will find the platform at /tmp/sdx_workspace/zcu102_board/export/zcu102_board.
176
33
177
-
1. Click the **zynq7_board [custom]** platform name.
34
+

178
35
179
-

36
+
1. After adding the **zcu102_board** platform, select it in the Platform dialog box, and click **Next**.
180
37
181
-
1. Accept the default settings in the System configuration dialog box.
38
+
1. Accept the default settings in the System Configuration dialog box:
182
39
183
-
- System configuration: **standalone**
40
+
- System configuration: **sysconfig1**
184
41
- Runtime: **C/C++**
185
-
- Domain: **a9_standalone**
186
-
- CPU: ps7_cortexa9_0
42
+
- Domain: **standalone on psu_cortexa53**
43
+
- CPU: psu_cortexa53_0
187
44
- OS: standalone
188
-
- Output type: **Executable (elf)**
189
-
- Check **Allow hardware acceleration**
190
45
46
+

47
+
To generate a Linux application, the LinuxConfig system can be selected.
191
48
1. Click **Next**.
192
49
193
-

194
-
195
-
1. On the Templates dialog, click the **SDx Examples** button to update available templates.
50
+
1. On the Templates dialog, select **Array Partitioning** and click **Finish**.
196
51
197
52

198
53
199
-
1. On the SDx Examples dialog, you can browse the available examples. Downloaded templates will be available as templates while creating a new project.
200
-
201
-

202
-
203
-
1. Click **Download** to download the **SDSoC Examples** from a repository.
204
-
205
-

206
-
207
-
1. Click **OK**.
208
-
209
-

210
-
211
-
1. Select **Array Partitioning** and Click **Finish**.
212
-
213
-

54
+
**Note:** To get or update the example applications, you can click click the **SDx Examples** button. Refer to the *SDSoC Develpment Environment User Guide* (UG1027) for more information.
214
55
215
56
The newly created SDSoC application `sdx_app1` is shown in the Project Explorer view and the Assistant view.
216
57
217
58
>:pushpin:**NOTE:**
218
59
>The Assistant view shows a hardware accelerated function named `matmul_partition_accel` which is part of the Array Partitioning example.
219
60
220
-

221
-
222
-
1. The Editor view show settings for `sdx_app1` in the Application Project Settings window.
61
+
1. The Editor view shows settings for `sdx_app1` in the Application Project Settings window.
223
62
224
63

225
64
226
-
1. In the Assistant view, expand **sdx_app1 [SDSoC]**.
227
-
228
-
1. Right-click **Debug [Hardware]** and select **Build**.
65
+
1. In the Assistant view, expand **sdx_app1 [SDSoC]**, and right-click **Debug [Hardware]** and select **Build**.
229
66
230
-

231
-
232
-
1. Assistant view provides build results through links to the following:
67
+
1. The Assistant view provides build results through links to the following:
233
68
234
69
- Compilation log
235
70
@@ -239,23 +74,24 @@ The zynq7\_board project is created and can be accessed through the Project Expl
239
74
240
75

241
76
242
-
1. You can also scroll through the Console window to view the individual build steps which are captured in the **sds.log**.
77
+
1. You can also scroll through the Console window to view the transcript of the build process which is captured in the **sds.log**.
243
78
244
79

245
80
246
81
1. In the Assistant view, right-click **SD Card Image** and select **Open > Open in File Browser** to open a view to the SD Card contents on the disk. The `sd_card` directory is located in the SDx workspace at `/tmp/sdx_workspace/sdx_app1/Debug/sd_card`.
247
82
248
-
1. Copy SD card directory contents to the root directory of a FAT32 formatted SD card and boot a ZC702 board using this SD card to run and view the sdx\_app1 UART output on a terminal program.
249
-
250
-
1. You can use the same board setup and boot procedure as in the hello\_world example in Lab 2.
83
+

251
84
252
-

253
-
</details>
85
+
You can copy the SD card directory contents to the root directory of a FAT32 formatted SD card and boot a ZCU102 platform using this SD card to run and view the sdx\_app1 UART output on a terminal program.
254
86
255
87
### Conclusion
256
88
257
-
In completing Lab 3, you have successfully created a custom SDSoC platform that targets the ZC702 board with a standalone software runtime environment. You have also built the SDSoC array partitioning example on top of the custom SDSoC platform (zynq7\_board). A ZC702 board was used to validate the array partitioning hardware accelerator by booting the board from an SD card and observing the application output messages.
89
+
In completing Lab 3, you have successfully created a custom SDSoC platform that targets the Zynq UltraScale+ MPSoC with a standalone software runtime environment. You have also built the SDSoC array partitioning example on top of the custom SDSoC platform (zcu102_board).
258
90
91
+
### End Tutorial
259
92
93
+
## Related information
94
+
- <ahref="Lab1-Creating-DSA-for-Zynq-MPSoC-Processor-Design.md">Lab1: Creating the DSA for a Zynq UltraScale+ MPSoC Processor Design</a>
95
+
- <ahref="Lab2-Creating-Software-Components.md">Lab 2: Creating the SDSoC Platform</a>
0 commit comments