WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2014-Jul-07 05:53:40

varung90
Member
Registered: 2014-Jul-07
Posts: 12

802.11 MAC problem

Hi,

I am trying to get started with WARP v3 hardware and I am using the 802.11 design v0.91 on Xilinx 14.7. I am able to successfully compile the project. But when I try to run the wlan_mac_high_ap project on my board, I get the following message on loop on my terminal:

Waiting on CPU_LOW to boot

I am not understanding what I am missing here. Any ideas? Thanks for your help.

Offline

 

#2 2014-Jul-07 09:59:51

welsh
Administrator
From: Mango Communications
Registered: 2013-May-15
Posts: 612

Re: 802.11 MAC problem

Within the 802.11 framework, there are two CPUs (see 802.11 framework architecture).  Currently, something has not appropriately initialized in CPU low and CPU high is waiting for CPU low to send an IPC message to allow it to proceed.

First, you can change the position of dip switch zero to low.  This will print CPU low messages to the UART.  This will allow you to see if CPU low is printing any debug messages.

Second, if you are just getting started with the 802.11 reference design, please update to the latest version.  There have been many improvements between 0.91 and 0.93 and

Thanks.

Offline

 

#3 2014-Jul-08 00:30:37

varung90
Member
Registered: 2014-Jul-07
Posts: 12

Re: 802.11 MAC problem

I have tried using v0.93 but I get the following errors in wlan_mac_high_sta package:

c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/ld.exe: wlan_mac_high_sta.elf section `.text' will not fit in region `mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0'
c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/ld.exe: section .ctors loaded at [00020000,00020007] overlaps section .text loaded at [00000050,00023633]
c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/ld.exe: section .init loaded at [00023634,0002366f] overlaps section .rodata loaded at [00020010,000244bf]
c:/xilinx/14.7/ise_ds/edk/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/bin/ld.exe: region `mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0' overflowed by 13968 bytes
collect2: ld returned 1 exit status
make: *** [wlan_mac_high_sta.elf] Error 1

I searched on other forums and checked that the BSP settings in wlan_bsp_cpu_high say ETH_A_uses_xilnet is set to 0. This error is not coming in v0.91.

Offline

 

#4 2014-Jul-08 08:50:29

chunter
Administrator
From: Mango Communications
Registered: 2006-Aug-24
Posts: 1212

Re: 802.11 MAC problem

That error means that the code is too big to fit into the allotted BRAM. I just downloaded a fresh copy of the v0.93 design and didn't have any problems compiling it and making it fit. Have you made your own changes to the code? There are a variety of reasons this can happen. For example, accidentally using "printf()" instead of "xil_printf()" will cause the much larger printf() function to get pulled into the design.

Offline

 

#5 2014-Jul-08 08:52:39

welsh
Administrator
From: Mango Communications
Registered: 2013-May-15
Posts: 612

Re: 802.11 MAC problem

Did you use the project in the 0.93 release; update the code in an existing project; or create a new project?

One of the changes we had to make for the 0.93 release was to use the -Os flag in the AP and STA projects because we exceeded the memory space without optimization due to the linker naively importing libraries that were not necessary.  If you right click on the "wlan_mac_high_ap" or "wlan_mac_high_sta" projects and select "Properties".  Then under "C/C++ Build" --> "Settings" --> "Microblaze gcc compiler" --> "Optimization", please make sure that "Optimize for size (-Os)" is set for the "Optimization Level".

When you upgrade to a new version, the easiest path to get started is:

1) Unpack the release (both the top level zip file and the zip file in "EDK_Projects")
2) When launching the Xilinx SDK, select the workspace that you just unzipped (for example:  "...\Mango_802.11_RefDes_v0.93_beta\EDK_Projects\w3_802.11_EDK_v0.93_beta\SDK_Workspace").  This will launch a blank SDK.
3) Terminate the "Welcome" tab; Setup your Local Repository to "...\Mango_802.11_RefDes_v0.93_beta\EDK_Projects\w3_802.11_EDK_v0.93_beta"
4) Select "File" --> "Import";  Select "General" --> "Existing Projects in to Workspace"
5) Follow the dialog steps; the root directory is the same as the SDK_Workspace from step 2 (ie "...\Mango_802.11_RefDes_v0.93_beta\EDK_Projects\w3_802.11_EDK_v0.93_beta\SDK_Workspace")
6) This should populate the "Projects" window with all the 802.11 projects
7) This should re-compile the workspace and should have all the project settings that are necessary. 

Let us know if you are able to resolve the error.

Offline

 

Board footer