WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2014-Apr-17 14:17:07

jasper1107
Member
Registered: 2014-Apr-11
Posts: 28

Error while using 802.11 reference design

Hi,

I got a problem while using 802.11 reference design with ISE 14.7. I followed the step of http://warpproject.org/trac/wiki/802.11/Usage .
I try to build the project at the final step. This below error occurs for wlan_mac_high_ap. Other files are built successfully.

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_ap.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,00025097]
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 20724 bytes
collect2: ld returned 1 exit status
make: *** [wlan_mac_high_ap.elf] Error 1

Could someone give me some hint on how to solve this?

Offline

 

#2 2014-Apr-17 14:58:45

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

Re: Error while using 802.11 reference design

This is the SDK's way of telling you that you ran out of memory.  Basically, you tried to put 20724 more bytes in the memory than was allowed.

In the 0.9 Reference design, the free space for each memory is:

AP:
  mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0  -  27,271 bytes free
  mb_high_ilmb_bram_cntlr_1_mb_high_dlmb_bram_cntlr_1  -    3,463 bytes free
STA:
  mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0  -  29,539 bytes free
  mb_high_ilmb_bram_cntlr_1_mb_high_dlmb_bram_cntlr_1  -    3,143 bytes free


If you open up the lscript.ld (ie the linker command file), you can see what is allocated for each of the BRAMs.  In general (as of the 0.9 Reference design), we put the wlan_mac_high_framework, heap, stack, bss, rodata in mb_high_ilmb_bram_cntlr_1_mb_high_dlmb_bram_cntlr_1.  While we only put the wlan_mac_common, the Xilinx libraries, and the wlan_mac_ap.c / wlan_mac_sta.c in the mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0.  This division gives most of the free space to user modifications of wlan_mac_ap / wlan_mac_sta. 

If you open 'executable.map' in the Debug directory of each of the projects, you can see how all of the code is allocated and mapped to the address space of the processor. 

My guess, is that you accidentally imported a library that you did not mean to.  For example, if you use 'printf' instead of 'xil_printf', it pulls in all of the library code around printf which can cause your code size to grow much more than expected.  This is all visible in the executable.map file and if you hunt around in there, I'm sure you will see where you are pulling in something that you didn't mean to.

Offline

 

#3 2014-Apr-17 16:28:18

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Error while using 802.11 reference design

One question- did you make any changes to the C code for CPU High? Did you change any compiler settings (optimization, debug symbols, etc.)? The reference code and SDK projects should build successfully if unmodified.

Also, 20kB overflow of instruction memory is a lot. If you did modify the code, what were your modifications? For example, did you use 'printf()' somewhere? If so, try 'xil_printf()'. This is a version of printf without floating point support, which reduces its code footprint significantly.

Offline

 

#4 2014-Apr-17 19:52:21

jasper1107
Member
Registered: 2014-Apr-11
Posts: 28

Re: Error while using 802.11 reference design

Thanks for you guys reply!
My problem is that I did not modify any code. It is good to know I should not use printf().
I also did not change other settings for compiler.
I checked the lscript.ld for wlan_mac_high_ap, it shows:

Name                                                                             Base Address  Size
mb_high_ilmb_bram_cntlr_0_mb_high_dlmb_bram_cntlr_0 0x00000050    0x0001FFB0
mb_high_ilmb_bram_cntlr_1_mb_high_dlmb_bram_cntlr_1 0x00020000    0x00020000

Is this right? I can't get the number you showed.

Offline

 

#5 2014-Apr-17 20:59:16

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Error while using 802.11 reference design

I just noticed you said you're using SDK 14.7. I'll try to reproduce this tomorrow. The ref design is built in 14.4, though the software project should work without changes in SDK 14.7.

Which version of the 802.11 ref design are you using (hopefully v0.91, the latest)?

Offline

 

#6 2014-Apr-17 21:10:20

jasper1107
Member
Registered: 2014-Apr-11
Posts: 28

Re: Error while using 802.11 reference design

Yes, I used the latest version(v0.91).
Thanks a lot.

Offline

 

#7 2014-Apr-17 21:38:40

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

Re: Error while using 802.11 reference design

Just a quick follow up:  The numbers I gave above are the free space (i.e. unused memory) amounts for each of the memories.  The numbers you have are correct for the base address and size of each memory.  The way I calculated free space was to find the last item in the executable.map file before the end of each memory and then subtract. 

One thing that would help would be to attach the executable.map so that we have it for reference.  Thanks.

Offline

 

#8 2014-Apr-18 08:05:42

jasper1107
Member
Registered: 2014-Apr-11
Posts: 28

Re: Error while using 802.11 reference design

Thanks for your response.
It seems the file is too long and I can not post it all.
Is this the right part that I should post?
Looking forward to your respond!

Code:

 .text.XAxiCdma_SimpleTransfer
                0x0001ff6c      0x160 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxicdma.o)
                0x0001ff6c                XAxiCdma_SimpleTransfer
 .text.XAxiCdma_BdRingGetCurrBd
                0x000200cc       0x10 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxicdma_bdring.o)
                0x000200cc                XAxiCdma_BdRingGetCurrBd
 .text.XAxiCdma_BdRingNext
                0x000200dc       0x48 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxicdma_bdring.o)
                0x000200dc                XAxiCdma_BdRingNext
 .text.XAxiCdma_IntrGetEnabled
                0x00020124       0x10 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxicdma_intr.o)
                0x00020124                XAxiCdma_IntrGetEnabled
 .text.XAxiCdma_IntrDisable
                0x00020134       0x20 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxicdma_intr.o)
                0x00020134                XAxiCdma_IntrDisable
 .text.XAxiCdma_LookupConfig
                0x00020154       0x24 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxicdma_sinit.o)
                0x00020154                XAxiCdma_LookupConfig
 .text.XAxiEthernet_UpdateDepOptions
                0x00020178       0xe4 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
 .text.XAxiEthernet_Start
                0x0002025c       0xfc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x0002025c                XAxiEthernet_Start
 .text.XAxiEthernet_Stop
                0x00020358       0xc8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x00020358                XAxiEthernet_Stop
 .text.XAxiEthernet_SetOptions
                0x00020420      0x2b4 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x00020420                XAxiEthernet_SetOptions
 .text.XAxiEthernet_ClearOptions
                0x000206d4      0x2ac ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x000206d4                XAxiEthernet_ClearOptions
 .text.XAxiEthernet_SetOperatingSpeed
                0x00020980      0x180 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x00020980                XAxiEthernet_SetOperatingSpeed
 .text.XAxiEthernet_PhySetMdioDivisor
                0x00020b00       0xc8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x00020b00                XAxiEthernet_PhySetMdioDivisor
 .text.XAxiEthernet_Reset
                0x00020bc8      0x1b4 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x00020bc8                XAxiEthernet_Reset
 .text.XAxiEthernet_CfgInitialize
                0x00020d7c       0xc4 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x00020d7c                XAxiEthernet_CfgInitialize
 .text.XAxiEthernet_PhyRead
                0x00020e40      0x10c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet.o)
                0x00020e40                XAxiEthernet_PhyRead
 .text.XAxiEthernet_LookupConfig
                0x00020f4c       0x40 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxiethernet_sinit.o)
                0x00020f4c                XAxiEthernet_LookupConfig
 .text.XAxiDma_Reset
                0x00020f8c      0x110 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma.o)
                0x00020f8c                XAxiDma_Reset
 .text.XAxiDma_ResetIsDone
                0x0002109c       0x44 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma.o)
                0x0002109c                XAxiDma_ResetIsDone
 .text.XAxiDma_CfgInitialize
                0x000210e0      0x1e0 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma.o)
                0x000210e0                XAxiDma_CfgInitialize
 .text.XAxiDma_BdSetLength
                0x000212c0       0x34 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bd.o)
                0x000212c0                XAxiDma_BdSetLength
 .text.XAxiDma_BdSetBufAddr
                0x000212f4       0x60 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bd.o)
                0x000212f4                XAxiDma_BdSetBufAddr
 .text.XAxiDma_BdSetCtrl
                0x00021354       0x20 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bd.o)
                0x00021354                XAxiDma_BdSetCtrl
 .text.XAxiDma_UpdateBdRingCDesc
                0x00021374       0xf0 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x00021374                XAxiDma_UpdateBdRingCDesc
 .text.XAxiDma_BdRingCreate
                0x00021464      0x1d8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x00021464                XAxiDma_BdRingCreate
 .text.XAxiDma_BdRingClone
                0x0002163c       0xd8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x0002163c                XAxiDma_BdRingClone
 .text.XAxiDma_StartBdRingHw
                0x00021714      0x104 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x00021714                XAxiDma_StartBdRingHw
 .text.XAxiDma_BdRingStart
                0x00021818       0x3c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x00021818                XAxiDma_BdRingStart
 .text.XAxiDma_BdRingSetCoalesce
                0x00021854       0x6c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x00021854                XAxiDma_BdRingSetCoalesce
 .text.XAxiDma_BdRingAlloc
                0x000218c0       0x78 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x000218c0                XAxiDma_BdRingAlloc
 .text.XAxiDma_BdRingToHw
                0x00021938      0x230 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x00021938                XAxiDma_BdRingToHw
 .text.XAxiDma_BdRingFromHw
                0x00021b68      0x184 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x00021b68                XAxiDma_BdRingFromHw
 .text.XAxiDma_BdRingFree
                0x00021cec       0x7c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_bdring.o)
                0x00021cec                XAxiDma_BdRingFree
 .text.XAxiDma_LookupConfig
                0x00021d68       0x24 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xaxidma_sinit.o)
                0x00021d68                XAxiDma_LookupConfig
 .text.StubHandler
                0x00021d8c       0x58 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xintc.o)
 .text.XIntc_Initialize
                0x00021de4      0x190 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xintc.o)
                0x00021de4                XIntc_Initialize
 .text.XIntc_Start
                0x00021f74       0xf0 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xintc.o)
                0x00021f74                XIntc_Start
 .text.XIntc_Stop
                0x00022064       0x90 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xintc.o)
                0x00022064                XIntc_Stop
 .text.XIntc_Connect
                0x000220f4      0x110 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xintc.o)
                0x000220f4                XIntc_Connect
 .text.XIntc_Enable
                0x00022204       0xdc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xintc.o)
                0x00022204                XIntc_Enable
 .text.XIntc_InterruptHandler
                0x000222e0       0x5c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xintc_intr.o)
                0x000222e0                XIntc_InterruptHandler
 .text.XIntc_DeviceInterruptHandler
                0x0002233c       0xf8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xintc_l.o)
                0x0002233c                XIntc_DeviceInterruptHandler
 .text.XGpio_CfgInitialize
                0x00022434       0x74 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio.o)
                0x00022434                XGpio_CfgInitialize
 .text.XGpio_SetDataDirection
                0x000224a8       0xdc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio.o)
                0x000224a8                XGpio_SetDataDirection
 .text.XGpio_DiscreteRead
                0x00022584       0xf8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio.o)
                0x00022584                XGpio_DiscreteRead
 .text.XGpio_DiscreteWrite
                0x0002267c       0xdc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio.o)
                0x0002267c                XGpio_DiscreteWrite
 .text.XGpio_InterruptGlobalEnable
                0x00022758       0xcc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio_intr.o)
                0x00022758                XGpio_InterruptGlobalEnable
 .text.XGpio_InterruptEnable
                0x00022824       0xcc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio_intr.o)
                0x00022824                XGpio_InterruptEnable
 .text.XGpio_InterruptDisable
                0x000228f0       0xd0 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio_intr.o)
                0x000228f0                XGpio_InterruptDisable
 .text.XGpio_InterruptClear
                0x000229c0       0xcc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio_intr.o)
                0x000229c0                XGpio_InterruptClear
 .text.XGpio_Initialize
                0x00022a8c       0xa8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xgpio_sinit.o)
                0x00022a8c                XGpio_Initialize
 .text.XTmrCtr_Initialize
                0x00022b34      0x138 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xtmrctr.o)
                0x00022b34                XTmrCtr_Initialize
 .text.XTmrCtr_Start
                0x00022c6c       0xf0 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xtmrctr.o)
                0x00022c6c                XTmrCtr_Start
 .text.XTmrCtr_Stop
                0x00022d5c       0xdc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xtmrctr.o)
                0x00022d5c                XTmrCtr_Stop
 .text.XTmrCtr_SetResetValue
                0x00022e38       0xd8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xtmrctr.o)
                0x00022e38                XTmrCtr_SetResetValue
 .text.XTmrCtr_SetHandler
                0x00022f10       0xb8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xtmrctr_intr.o)
                0x00022f10                XTmrCtr_SetHandler
 .text.XTmrCtr_SetOptions
                0x00022fc8      0x120 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xtmrctr_options.o)
                0x00022fc8                XTmrCtr_SetOptions
 .text.StubHandler
                0x000230e8       0x34 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite.o)
 .text.XUartLite_CfgInitialize
                0x0002311c       0x9c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite.o)
                0x0002311c                XUartLite_CfgInitialize
 .text.XUartLite_SendBuffer
                0x000231b8       0xa8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite.o)
                0x000231b8                XUartLite_SendBuffer
 .text.XUartLite_ReceiveBuffer
                0x00023260       0xcc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite.o)
                0x00023260                XUartLite_ReceiveBuffer
 .text.XUartLite_Recv
                0x0002332c      0x150 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite.o)
                0x0002332c                XUartLite_Recv
 .text.XUartLite_SetRecvHandler
                0x0002347c       0xb8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite_intr.o)
                0x0002347c                XUartLite_SetRecvHandler
 .text.XUartLite_InterruptHandler
                0x00023534       0xf8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite_intr.o)
                0x00023534                XUartLite_InterruptHandler
 .text.XUartLite_EnableInterrupt
                0x0002362c       0x90 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite_intr.o)
                0x0002362c                XUartLite_EnableInterrupt
 .text.XUartLite_SendByte
                0x000236bc       0x1c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite_l.o)
                0x000236bc                XUartLite_SendByte
 .text.XUartLite_RecvByte
                0x000236d8       0x1c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite_l.o)
                0x000236d8                XUartLite_RecvByte
 .text.XUartLite_Initialize
                0x000236f4       0x8c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite_sinit.o)
                0x000236f4                XUartLite_Initialize
 .text.XUartLite_ClearStats
                0x00023780       0xa0 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xuartlite_stats.o)
                0x00023780                XUartLite_ClearStats
 .text.XMbox_CfgInitialize
                0x00023820      0x130 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00023820                XMbox_CfgInitialize
 .text.XMbox_Read
                0x00023950      0x200 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00023950                XMbox_Read
 .text.XMbox_ReadBlocking
                0x00023b50      0x144 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00023b50                XMbox_ReadBlocking
 .text.XMbox_WriteBlocking
                0x00023c94      0x144 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00023c94                XMbox_WriteBlocking
 .text.XMbox_IsEmpty
                0x00023dd8       0x84 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00023dd8                XMbox_IsEmpty
 .text.XMbox_Flush
                0x00023e5c       0x94 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00023e5c                XMbox_Flush
 .text.XMbox_SetInterruptEnable
                0x00023ef0       0x84 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00023ef0                XMbox_SetInterruptEnable
 .text.XMbox_GetInterruptStatus
                0x00023f74       0x98 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00023f74                XMbox_GetInterruptStatus
 .text.XMbox_ClearInterrupt
                0x0002400c       0x84 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x0002400c                XMbox_ClearInterrupt
 .text.XMbox_SetSendThreshold
                0x00024090       0x84 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00024090                XMbox_SetSendThreshold
 .text.XMbox_SetReceiveThreshold
                0x00024114       0x84 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox.o)
                0x00024114                XMbox_SetReceiveThreshold
 .text.XMbox_LookupConfig
                0x00024198       0x24 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmbox_sinit.o)
                0x00024198                XMbox_LookupConfig
 .text.XMutex_CfgInitialize
                0x000241bc      0x150 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmutex.o)
                0x000241bc                XMutex_CfgInitialize
 .text.XMutex_Trylock
                0x0002430c       0xcc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmutex.o)
                0x0002430c                XMutex_Trylock
 .text.XMutex_Unlock
                0x000243d8       0xcc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmutex.o)
                0x000243d8                XMutex_Unlock
 .text.XMutex_LookupConfig
                0x000244a4       0x24 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xmutex_sinit.o)
                0x000244a4                XMutex_LookupConfig
 .text.XNullHandler
                0x000244c8        0x8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xbasic_types.o)
                0x000244c8                XNullHandler
 .text.XLlFifo_iTxVacancy
                0x000244d0       0x68 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xllfifo.o)
 .text.XLlFifo_iTxSetLen
                0x00024538       0x54 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xllfifo.o)
 .text.XLlFifo_iRxOccupancy
                0x0002458c       0x68 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xllfifo.o)
 .text.XLlFifo_iRxGetLen
                0x000245f4       0x68 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xllfifo.o)
 .text.XLlFifo_iWrite_Aligned
                0x0002465c       0xcc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xllfifo.o)
                0x0002465c                XLlFifo_iWrite_Aligned
 .text.XLlFifo_iRead_Aligned
                0x00024728       0xcc ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xllfifo.o)
                0x00024728                XLlFifo_iRead_Aligned
 .text.XLlFifo_Initialize
                0x000247f4      0x12c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xllfifo.o)
                0x000247f4                XLlFifo_Initialize
 .text.XStrm_RxInitialize
                0x00024920       0x64 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xstreamer.o)
                0x00024920                XStrm_RxInitialize
 .text.XStrm_TxInitialize
                0x00024984       0x64 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xstreamer.o)
                0x00024984                XStrm_TxInitialize
 .text.XStrm_RxGetLen
                0x000249e8       0x38 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xstreamer.o)
                0x000249e8                XStrm_RxGetLen
 .text.XStrm_Read
                0x00024a20      0x148 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xstreamer.o)
                0x00024a20                XStrm_Read
 .text.XStrm_TxSetLen
                0x00024b68       0x5c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xstreamer.o)
                0x00024b68                XStrm_TxSetLen
 .text.XStrm_Write
                0x00024bc4      0x120 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xstreamer.o)
                0x00024bc4                XStrm_Write
 .text.xilnet_arp_reply
                0x00024ce4      0x134 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xilnet_arp.o)
                0x00024ce4                xilnet_arp_reply
 .text.xilnet_arp
                0x00024e18      0x11c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xilnet_arp.o)
                0x00024e18                xilnet_arp
 .text.xilnet_icmp_echo_reply
                0x00024f34       0xe8 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xilnet_icmp.o)
                0x00024f34                xilnet_icmp_echo_reply
 .text.xilnet_icmp
                0x0002501c       0x40 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(xilnet_icmp.o)
                0x0002501c                xilnet_icmp
 .text.__errno  0x0002505c       0x10 ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(errno.o)
                0x0002505c                __errno
 .text.inbyte   0x0002506c       0x2c ../../wlan_bsp_cpu_high/mb_high/lib\libxil.a(inbyte.o)
                0x0002506c                inbyte
 *wlan_mac_common*(.text)
 *(.gnu.linkonce.t.*)

Offline

 

#9 2014-Apr-18 10:35:14

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

Re: Error while using 802.11 reference design

I didn't realize you couldn't post arbitrarily long text.  Instead, can you just email me the file:  welsh [at] mangocomm.com

Thanks.

Offline

 

#10 2014-Apr-18 12:01:30

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

Re: Error while using 802.11 reference design

Ok, the issue is your settings in the BSP.  Given that the BSPs in the release for 14.4 don't work for 14.7, when you generate new BSPs you need to use the following settings:

(These settings are for the 0.91 beta release and may change in the future as we update hardware)

wlan_bsp_cpu_high
    Overview
        WARP_HW_VER = 3.10.a
        WARPxilnet = 3.03a

    Overview --> standalone --> WARPxilnet
        ETH_A_uses_xilnet = 0
        All other settings use default values

wlan_bsp_cpu_low
    Overview
        WARP_HW_VER = 3.10.a

The issue you were running in to is that when you regenerated the BSP for wlan_bsp_cpu_high, the parameter ETH_A_uses_xilnet was set to the default value of 1.  The WARPxilinet driver is intelligent in that it completely excludes code and data if it is not being used.  Since ETH_B only uses the FIFO and not the DMA, all of the associated DMA code and buffers were not created.  This is where the additional code / data came from that caused your build to exceed the memory space.

Also, one thing to note is that when changing versions of drivers in the "Overview" section, you need to select the version before checking the box.  This will populate the driver settings sub-menu (for example, the Overview --> standalone --> WARPxilnet menu) with the correct information.  If you check the box first and then select the version, the SDK will not refresh the information in the driver settings sub-menu.

Offline

 

#11 2014-Apr-18 15:19:38

jasper1107
Member
Registered: 2014-Apr-11
Posts: 28

Re: Error while using 802.11 reference design

Thanks for your explanation.
I still have a problem.
It seems that the setting of my SDK is same as what you said.
I open the setting from right click on project and select Board Support Package Settings.
The version of my setting is same as your guidance.
Also  ETH_A_uses_xilnet = 0 in my settings.
If I try to update it again, there is still the overflow like before.

Last edited by jasper1107 (2014-Apr-18 15:22:24)

Offline

 

#12 2014-Apr-18 15:54:39

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Error while using 802.11 reference design

I just tried to reproduce this issue. In SDK 14.7 I was able to build the v0.91 ref design software projects successfully following these steps:

-Download the v0.91 .zip (Mango_802.11_RefDes_v0.91_beta.zip)

-Expand the .zip

-From the expanded Mango_802.11_RefDes_v0.91_beta\EDK_Projects folder, expanded the w3_802.11_EDK_v0.9_beta.zip archive to c:\work\w3_802.11\EDK_v0.9_beta\

-Launched SDK 14.7, selected c:\work\w3_802.11\EDK_v0.9_beta\SDK_Workspace as the active workspace

-When the SDK opens, selected Xilinx Tools -> Repositories. Added "c:\work\w3_802.11\EDK_v0.9_beta\" as local repository

-From File -> Import -> General -> Existing Projects, selected all 7 projects in c:\work\w3_802.11\EDK_v0.9_beta\SDK_Workspace

-The application projects attempt to build and fail with error "xparameters.h: No such file or directory". This error indicates the BSPs (which supply the xparameters.h file) are not currently built.

-Right-click on both BSPs and select Clean Project

-Right-click on all 3 application projects and select Build Project

For me, this results in all 3 application projects (DCF, AP, STA) building successfully.

Can you try this (starting from the clean SDK_Workspace in the .zip) and see if you get different results?

Offline

 

#13 2014-Apr-18 16:11:14

jasper1107
Member
Registered: 2014-Apr-11
Posts: 28

Re: Error while using 802.11 reference design

Thanks a lot!
I just tried your method and built it successfully.
It seems that the order of doing the step has some influence on building the project.

Offline

 

Board footer