UDP problems with Xilinx EDK 7.1

Hi All,

I am having some problems using UDP LwIP calls in EDK7.1. Let me give some details. I am trying to create an Ethernet bridge using the Memec V4LX60MB board. The board has a 10/100 Ethernet PHY connected to a Virtex-4 LX60 FPGA. I have the EDK project from Xilinx appnote XAPP663 as a starting point. After changing the pinouts and SRAM to match the Memec board, I can get this project to work (a simple Telnet echo server). Now, I want to change out the TCP calls with (simpler) UDP calls so that I can unicast streaming video to the board and have it in turn stream this out to a different IP address. I am using the RawAPI LwIP calls (no OS running on the Microblaze). When I attempt to compile the appication in the EDK I the following errors:

mb-gcc -O2 code/udp_echo_main.c -o udp_echo/executable.elf \

-Wl,-defsym -Wl,_TEXT_START_ADDR=0x86000000 -mno-xl-soft-mul

-mxl-barrel-shift -mno-xl-soft-div -Wl,-T -Wl,udp_echo_linker_script

-I./microblaze_0/include/ -L./microblaze_0/lib/ \

-xl-mode-executable \

-llwip4 /cygdrive/c/DOCUME~1/westra/LOCALS~1/Temp/1/ccsNdu71.o: In function `main_main': /cygdrive/c/DOCUME~1/westra/LOCALS~1/Temp/1/ccsNdu71.o(.text+0x880): undefined reference to `udp_new' /cygdrive/c/DOCUME~1/westra/LOCALS~1/Temp/1/ccsNdu71.o(.text+0x89c): undefined reference to `udp_recv' /cygdrive/c/DOCUME~1/westra/LOCALS~1/Temp/1/ccsNdu71.o(.text+0x8b4): undefined reference to `udp_bind' ./microblaze_0/lib//libxil.a( microblaze_interrupts_g.o)(.data+0x0):/cygdrive/d/OSD27/Firmware/JW_EMAC/microblaze_0/libsrc/standalone_v1_00_a/src/microblaze_interrupts_g.c: undefined reference to `mytimer_int_handler' collect2: ld returned 1 exit status make: *** [udp_echo/executable.elf] Error 1

Upon inspection of the library file (liblwip4.a), there seems to be no sign of the rawapi UDP functions (though the TCP functions seem to be there).

Is anyone familiar with using LwIP with Microblaze? Are the RawAPI UDP calls not supported? Is there a work-around to this problem?

Any help would be appreciated. Thanks.

Jeff

Reply to
jswestra77
Loading thread data ...

I changed the version of LwIP that I was using from 1.00 to 2.00 and that seems to have fixed the problem.

Reply to
jswestra77

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.