| 100 | 1. Rather strangely, the Xilinx SDK does not automatically know about software drivers to custom peripherals in your XPS project. You have to explicitly tell the SDK where to find your hardware project. This is a step you have to do with '''every''' new SDK workspace. In this exercise, we do not have any custom peripherals, but it is still a good habit to get into. Click on the "Xilinx Tools" menu item and select "Repositories." Here, you want to ensure two things: |
| 101 | * In Local Repositories, you want to point the SDK to the folder that contains the XPS project system.xmp file. Click on "New..." and navigate to and select this folder. |
| 102 | * In Global Repositories, you want the SDK to point to the edk_user_repository folder on your hard drive. Unlike the local repositories, the SDK does remember this setting across workspaces. You'll only need to manually add the edk_user_repository the first time you run the SDK. |
| 103 | 1. Click the "New" button in the top left of the window. |
| 104 | |
| 105 | [[Image(newbutton.jpeg)]] |
| 106 | |
| 107 | 15. Click on "Xilinx Board Support Package" and click "Next." |
| 108 | 1. Click "Finish." |
| 109 | 1. A new window will pop-up that allows you configure the BSP with various optional software packages. For the purposes of this exercise, the default settings are fine. Just click OK. You will see the console at the bottom of the screen start printing messages as the SDK compiles the BSP. It will end up with "Finished building libraries" printed to the console. |
| 110 | 1. We're now ready build the actual software project that will control our custom core. Click the same "new" button above the "Project Explorer." |
| 111 | 1. Click "Xilinx C Project" and then click "Next." |
| 112 | 1. Click "Empty Application" under the "Select Project Template" dialog. This will rename the project to "empty_application_0." Change that name to "example_project." Click "Next." |
| 113 | 1. We have already created a BSP, so we do not want this dialog box to make another one for us. Click the radio button next to "Target an existing Board Support Package." Click "Finish" |
| 114 | 1. In the Project Explorer on the left side of the SDK, you will see the example_project_0 project. Click the + next to it and it will reveal a "src" folder. |