Step 10: Create a “Peripheral Test” Application - 2024.2 English

Programming an Embedded MicroBlaze Processor (XD131)

Document ID
XD131
Release Date
2024-11-20
Version
2024.2 English
  1. Select File > New Component > From Examples or under Get Started click Examples. ../../_images/image38-1.png

  2. Select Peripheral Tests. ../../_images/image41-2.png

  3. Click on Create Application Component from Template. ../../_images/image42-1.png

  4. Click Next.

  5. In the Platform page, select the previously created platform. ../../_images/image43-1.png

  6. Click Next.

  7. In the Domain page leave all the fields at their default values and click Next. ../../_images/image43-2v.png

  8. Review the Summary and click Finish. ../../_images/image43-3v.png

  9. A new peripheral_tests application is created. If the testperiph.c file is not already open, select MICROBLAZE-V-SYSTEM/peripheral_tests [Application]/Sources/src/testperiph.c, and double-click to open the source file. Modify the source file by inserting a while statement at approximately line 18. Press Ctrl + S to save the file.

    a. In line 18, add while(1) above the curly brace as shown in the following figure. ../../_images/image51-1.png

  10. To build the application select peripheral_tests under Flow > Component and click on Build. Click OK on the pop-up window to build the associated platform.

    ../../_images/image44-1.png

  11. Wait for the application to finish compiling.