Changes between Version 16 and Version 17 of OFDMReferenceDesign/SDK


Ignore:
Timestamp:
Aug 29, 2012, 10:35:06 PM (12 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OFDMReferenceDesign/SDK

    v16 v17  
    11{{{
    22#!div class=important style="border: 1pt solid;"
    3 These are preliminary instructions for re-creating a working SDK workspace for the OFDM Reference Design. These are subject to change, maybe significantly, as we (and other WARP users) learn the nuances of  the SDK. We're eager to hear feedback- ideas to improve these instructions, better ways to package/distribute SDK projects, etc. Please head to [//forums/viewtopic.php?id=1379 the forums] to discuss.
     3These are preliminary instructions for re-creating a working SDK workspace for the OFDM Reference Design. These are subject to change, maybe significantly, as we (and other WARP users) learn the nuances of  the SDK. We're eager to hear feedback- ideas to improve these instructions, better ways to package/distribute SDK projects, etc. Please head to [//forums the forums] to discuss.
    44}}}
    55
     
    2020 |- SDK_Export/
    2121SDK_Workspace/
    22 data/
    23 etc/
    24 pcores/
    25 platgen.opt
    26 system.make
     22bit/       <- pre-compiled .bit and .bin files
     23data/     <- design constraints
     24etc/       <- build configuration
     25pcores/  <- custom PHY peripherals
    2726system.mhs
    2827system.xmp
    29 system_incl.make
    3028}}}
    3129
     
    5149'''Creating the workspace'''
    5250 * Launch the Xilinx SDK
    53    * If prompted to select a workspace, choose {{{<xps_proj>/SDK/SDK_Workspace}}}
    54    * If not, choose File->Switch Workspace, then choose {{{<xps_proj>/SDK/SDK_Workspace}}}
     51   * If prompted to select a workspace, choose {{{<xps_proj>/SDK_Workspace}}}
     52   * If not, choose File->Switch Workspace, then choose {{{<xps_proj>/SDK_Workspace}}}
    5553 * Choose Xilinx Tools->Repositories
    5654   * Verify the WARP edk_user_repository is listed in the Global Repositories section
     
    5856   * Click OK
    5957 * Choose File->Import, expand General, choose Existing Projects into Workspace, click Next
    60    * For 'Select root directory:', click Browse and navigate to {{{<xps_proj>/SDK/SDK_Workspace}}} (this path is probably already selected by default)
    61    * Make sure four projects are checked (CSMAMAC, NoMAC, OFDM_RefDesign_FPGAv2_bsp, OFDM_REfDesign_FPGAv2_v17.0_hw_platform)
    62    * Make sure "Copy projects into workspace" is unchecked
     58   * For 'Select root directory:', click Browse and navigate to {{{<xps_proj>/SDK_Workspace}}} (this path is probably already selected by default)
     59   * Make sure five projects are checked (CSMAMAC, NOMAC, WARPNET_Example, OFDM_RefDesign_FPGAv2_bsp, OFDM_REfDesign_FPGAv2_v17.0_hw_platform)
     60   * Make sure "Copy projects into workspace" is '''unchecked'''
    6361   * Click Finish
    6462 * SDK will begin building the software projects. If everything works, this process will finish with a log message {{{'elfcheck passed'}}}.
    65  * Choose File->Import again, expand Run/Debug, chose Launch Configurations, click Next
    66    * Click Browse and navigate to {{{<xps_proj>/SDK/SDK_Workspace/launch-configs}}}
    67    * Check launch-configs
    68    * Check CSMAMAC.launch and NoMAC.launch
    69    * Click Finish
    7063 * In the Project Explorer tab right-click the CSMAC project and choose Generate Linker Script
    71    * Assign Code Sections to iocm, Data sections to docm, Heap/Stack to xps_bram_if_cntlr_1
     64   * Assign:
     65    * Code Sections to iocm (Virtex-4) or ilmb (Virtex-6)
     66    * Data sections to docm (Virtex-4) or xps_bram_if_cntlr_0 (Virtex-6)
     67    * Heap/Stack to xps_bram_if_cntlr_1
    7268   * In both the Basic and Advanced tabs confirm nothing is assigned to xps_bram_if_cntlr_2 (this memory maps to the PHY packet buffers)
    7369   * Change Heap/Stack sizes to 4096 (4K)
    7470   * Click Generate; click Yes to overwrite existing linker script
    75  * Repeat the linker script generation for NoMAC
     71 * Repeat the linker script generation for NoMAC and WARPNET_Example
    7672
    7773
     
    8076 * Connect the JTAG cable
    8177 * Xilinx Tools->Program FPGA
    82    * Choose bootloop
     78   * Choose your desired software project (the .elf corresponding to the MAC you want to run)
    8379   * Click Program
    84  * Wait ~20 seconds; FPGA Board should now be configured (green DONE LED on, red Radio Board PLL unlocked LEDs on)
    85 
    86 
    87 Download the software program:
    88  * Click on the NoMAC project in Project Explorer
    89  * Choose Run->Run
    90  * Software should now be running (FPGA Board hex displays on, Radio Board Rx LEDs on, PLL unlocked LEDs off)
    91  * Connect serial cable (57600bps) to monitor STDOUT
    92 
    93 '''Iterating on software''' ''Brief instructions, to be elaborated soon''[[BR]]
    94 FPGA only needs to be configured once; software iterations only require re-running the code[[BR]]
    95  * Make desired changes to source code
    96  * Verify compilation succeeds (watch for {{{'elfcheck passed'}}})
    97  * Click on the desired project, Run->Run; if prompted "Target processor is currently in use", click Yes.
    98 
    99 '''Debugging software''' ''Brief instructions, to be elaborated soon''[[BR]]
    100  * Same preparation as running software
    101  * Choose Run->Debug (instead of Run->Run) to enter debug mode
     80 * Wait ~20 seconds; FPGA Board should now be configured (green DONE LED on, hex displays lit)
    10281
    10382----