top of page

Import xuartps_polled_example.c Into a Xilinx SDK project.

Updated: May 14, 2023

This post shows you how to import xuartps_polled_example.c into a Xilinx SDK Hello World project


You've created a helloworld.c project. If you need help creating a helloworld project in the Xilinx SDK see

Steps to Import xuartps_polled_example.c into a Xilinx SDK Project

Step #1: Right-click on src in your Hello World project

Step #2: Click Import

Step #3: Expand General

Step #4: Select File System

Step #5: Click Next

Step #6: Click Browse

Step #7: Browse to where the SDK is installed: D:\Xilinx\SDK\2016.4\data\embeddedsw\XilinxProcessorIPLib\drivers\uartps_v3_3\examples

Select the checkbox by xuartps_polled_example.c

The Import screen should look like:

Step #8: Click Finish

Step #9: Update the name of main() in xuartps_polled_example.c to xuartps_polled_example_main()

Step #10: Insert a call to xuartps_polled_example_main() in helloworld.c's main()

Step #11: Insert void xuartps_polled_example_main(void); above main()

Your editor should look like:



bottom of page