Changes between Version 16 and Version 17 of OFDMReferenceDesign/SDK
- Timestamp:
- Aug 29, 2012, 10:35:06 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OFDMReferenceDesign/SDK
v16 v17 1 1 {{{ 2 2 #!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=1379the forums] to discuss.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 the forums] to discuss. 4 4 }}} 5 5 … … 20 20 |- SDK_Export/ 21 21 SDK_Workspace/ 22 data/ 23 etc/ 24 pcores/ 25 platgen.opt 26 system.make 22 bit/ <- pre-compiled .bit and .bin files 23 data/ <- design constraints 24 etc/ <- build configuration 25 pcores/ <- custom PHY peripherals 27 26 system.mhs 28 27 system.xmp 29 system_incl.make30 28 }}} 31 29 … … 51 49 '''Creating the workspace''' 52 50 * 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}}} 55 53 * Choose Xilinx Tools->Repositories 56 54 * Verify the WARP edk_user_repository is listed in the Global Repositories section … … 58 56 * Click OK 59 57 * 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 f our projects are checked (CSMAMAC, NoMAC, OFDM_RefDesign_FPGAv2_bsp, OFDM_REfDesign_FPGAv2_v17.0_hw_platform)62 * Make sure "Copy projects into workspace" is unchecked58 * 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''' 63 61 * Click Finish 64 62 * 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 Next66 * Click Browse and navigate to {{{<xps_proj>/SDK/SDK_Workspace/launch-configs}}}67 * Check launch-configs68 * Check CSMAMAC.launch and NoMAC.launch69 * Click Finish70 63 * 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 72 68 * 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) 73 69 * Change Heap/Stack sizes to 4096 (4K) 74 70 * 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 76 72 77 73 … … 80 76 * Connect the JTAG cable 81 77 * Xilinx Tools->Program FPGA 82 * Choose bootloop78 * Choose your desired software project (the .elf corresponding to the MAC you want to run) 83 79 * 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) 102 81 103 82 ----