This will open the software platform settings form

  • No School
  • AA 1
  • 17

This preview shows page 13 - 17 out of 17 pages.

This will open the Software Platform Settings form showing the OS and libraries selections. 5-1-3. Click OK to accept the default settings as we want to create a standalone_bsp_0 software platform project without any additional libraries. 5-1-4. The library generator will run in the background and will create the xparameters.h file in the lab1.sdk\standalone_bsp_0\ps7_cortexa9_0\include directory. 5-2. Create an empty application project, named lab1, and import the provided lab1.c file. 5-2-1. Select File > New > Application Project. 5-2-2. In the Project Name field, enter lab1 as the project name. 5-2-3. Select the Use existing option in the Board Support Package field and then click Next.
Image of page 13

Subscribe to view the full document.

Figure 17. Create a Blank Application Project 5-2-4. Select the Empty Application template and click Finish. The lab1 project will be created in the Project Explorer window of SDK. 5-2-5. Select lab1 > src directory in the project view, right-click, and select Import. 5-2-6. Expand the General category and double-click on File System. 5-2-7. Browse to the {sources}\lab1 folder. 5-2-8. Select the lab1.c source file and click Finish. A snippet of the source code is shown in the following figure. Note the greyed out code will be used in Lab5. The code reads from the switches, and writes to the LEDs. The BTN is read, and written to the LED.
Image of page 14
Figure 18. Snippet of Source Code
Image of page 15

Subscribe to view the full document.

Test in Hardware Step 8 6-1. Connect and power up the board. Establish serial communications using the SDK’s Terminal tab. Verify the design functionality. 6-1-1. Connect and power up the board. 6-1-2. Select the tab. If it is not visible then select Window > Show view > Other > Terminal > Terminal . 6-1-3. Click on and select appropriate COM port (depending on your computer), and configure the terminal with the parameters as shown below. Figure 19. SDK Terminal Settings 6-1-4. Select Xilinx Tools > Program FPGA and then click the Program button. 6-1-5. Select the lab1 project in the Project Explorer , right-click and select Run As > Launch on Hardware(System Debugger) to download the application, execute ps7_init, and execute lab1.elf. 6-1-6. You should see the following output on the Terminal console.
Image of page 16
Figure 20. SDK Terminal Output 6-1-7. Press the BTNR (Zedboard) or BTN3 (Zybo) and see the LED light up. 6-1-8. Change the slide switches and see the corresponding LED turning ON and OFF. 6-1-9. Set the four (right-most for ZedBoard, all for Zybo) slide switches to the ON position to exit the program. 6-1-10. Close SDK and Vivado programs by selecting File > Exit in each program. 6-1-11. Turn OFF the power to the board. Conclusion In this lab, you created an ARM Cortex-A9 processor based embedded system using the Zynq device for the Zybo/ZedBoard. You learned how to route the GPIO connected to the PS section to the FPGA (PL) pin using the EMIO. You instantiated the Xilinx standard GPIO IP to provide input and output functionality. You also saw that whenever the dedicated pins are not used, you need to provide pin constraints through the user constraints file (xdc). You created the project in Vivado, created the hardware system using IPI, implemented the design in Vivado, exported the generated bitstream to the SDK, created a software application in the SDK, and verified the functionality in hardware after programming the PL section and running the application from the DDR memory.
Image of page 17
  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes