Import xuartps_polled_example.c into a Xilinx SDK project.


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


Assumptions


You've created a helloworld.c project. If you need help creating a helloworld project in the Xilinx SDK see https://www.centennialsoftwaresolutions.com/post/run-hello-world-on-a-zc702.


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:


References


Xilinx logo from https://twitter.com/xilinxinc

60 views

©2018 by Centennial Software Solutions LLC. Proudly created with Wix.com