Changes between Version 25 and Version 26 of Exercises/13_4/IntroToSDK


Ignore:
Timestamp:
Sep 7, 2012, 1:12:00 PM (12 years ago)
Author:
chunter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Exercises/13_4/IntroToSDK

    v25 v26  
    11= Introduction to the Xilinx Software Development Kit (SDK) =
    2 ''(compatible with WARP v2 and WARP v3)''
     2''(compatible with WARP v3)''
    33
    44In this exercise, users will be introduced to a tool that is used heavily in WARP development: the Xilinx Software Development Kit (SDK). Users will use these tools to construct a simple "Hello World" software project that prints messages via UART to a terminal running on the user's PC and controls the User I/O on the board to run on and off LEDs and display numbers on the hexadecimal displays.
     
    77
    88== Prerequisites ==
    9  * You have a WARP v2 or WARP v3 board
     9 * You have a WARP v3 board
    1010 * ESD protection for the WARP board (wrist strap, etc)
    11  * WARP v2: USB cable for programming and USB cable for UART
    1211 * WARP v3: External USB JTAG cable and a micro USB cable for UART
    1312 * Complete installation of ISE System Edition 13.4
     
    1716== Instructions ==
    1817
    19 1. Download either the [wiki:HardwareUsersGuides/WARPv3/TemplateProjects WARP v3 Template Project] or the [wiki:HardwareUsersGuides/WARPv2/TemplateProjects WARP v2 Template Project] according to the which hardware you are using. Note: any template for your version of the hardware will work fine for this exercise as only the SDK is necessary. In general, when FPGA hardware designs must be generated, the "lite" template will build the quickest, but it lacks peripherals like Ethernet that may be necessary for the design.
     181. Download either the [wiki:HardwareUsersGuides/WARPv3/TemplateProjects WARP v3 Template Project]. Note: any template for your version of the hardware will work fine for this exercise as only the SDK is necessary. In general, when FPGA hardware designs must be generated, the "lite" template will build the quickest, but it lacks peripherals like Ethernet that may be necessary for the design.
    20191. Extract the archive into a folder on your hard drive. Note: this folder '''must not''' contain any spaces in the path (this includes the the Windows desktop, as that lives in a folder known as "Documents and Settings").
    21201. Launch the Xilinx SDK from the Start Menu. It will ask you to select a workspace. Click "Browse ..." and navigate to the "SDK_workspace" folder in the archive you just extracted. Do '''not''' check the box for "Use this as the default and do not ask again." We recommend the convention of using a single workspace per hardware project; checking this box will make this difficult. More useful tips for using the SDK are available [wiki:XilinxSDK here]. Click OK.
     
    40391. Click the "Xilinx Tools" menu item and then "Program FPGA." Then click Program. This will load the hardware design onto the board. It will not load the software project.
    41401. Open up a terminal emulator on your computer and configure it to accept your COM port with speed 57600 baud.
    42 At this point, the software project is complete and ready to be tested on the hardware. Unfortunately, there are bugs in the SDK for designs that use a PowerPC instead of a Microblaze, so the instructions for the WARP v2 and WARP v3 hardware diverge at this point.
    43 
    44 === WARP v3 ===
    45 
    46 16. The SDK is somewhat sensitive on what project has "focus" when you tell it to do something like load a design onto the board. Make sure the helloworld_0 project is highlighted. If it is not, click on it so that it will be.
     411. The SDK is somewhat sensitive on what project has "focus" when you tell it to do something like load a design onto the board. Make sure the helloworld_0 project is highlighted. If it is not, click on it so that it will be.
    47421. Click the menu item "Run" and then click "Run." A window will pop up asking you to select a way to run your helloworld_0 program. Click "Launch on Hardware" and then okay.
    48431. The project is now running! You should see the LEDs and hexadecimal displays on the board incrementing twice a second. Furthermore, your terminal should be printing.
    49441. Try to modify any of the prints in the code with your own custom strings. Click save. The SDK will automatically recompile the project. Download it again through the "run" menu.
    50451. Also, find the usleep(500000) line inside the userio_example() function. This line is telling the processor to wait for half a second before incrementing the displays upwards. Replace this with usleep(250000) and you should see the board count twice as fast.
    51 === WARP v2 ===
     46
    5247
    5348