microblaze lwip

Discussion in 'VHDL' started by u_stadler@yahoo.de, Sep 15, 2006.

  1. Guest

    hi i have a problem getting the lwip to work. my c code is pretty
    simple:

    #include "xmk.h"
    #include "stdio.h"
    #include "lwip/api.h"
    #include "xparameters.h"

    int main()
    {
    xil_printf("Entering main \r\n");

    xilkernel_main();
    return 0;

    }

    void* system_setup(void* arg)
    {
    xil_printf("Initializing lwIP .");
    lwip_init();
    xil_printf(" done. \n");

    return 0;

    }

    the mms file is:

    BEGIN OS
    PARAMETER OS_NAME = xilkernel
    PARAMETER OS_VER = 3.00.a
    PARAMETER PROC_INSTANCE = microblaze_0
    PARAMETER sysintc_spec = opb_intc_0
    PARAMETER stdout = RS232_DCE
    PARAMETER stdin = RS232_DCE
    PARAMETER config_debug_support = true
    PARAMETER debug_mon = true
    PARAMETER verbose = true
    PARAMETER config_sema = true
    PARAMETER config_msgq = true
    PARAMETER msgq_capacity = 2
    PARAMETER sched_type = SCHED_PRIO
    PARAMETER systmr_interval = 5
    PARAMETER systmr_freq = 50000000
    PARAMETER systmr_dev = opb_timer_1
    PARAMETER use_xil_malloc = true
    PARAMETER static_pthread_table = ((system_setup,1))
    END

    BEGIN LIBRARY
    PARAMETER LIBRARY_NAME = lwip
    PARAMETER LIBRARY_VER = 2.00.a
    PARAMETER PROC_INSTANCE = microblaze_0
    PARAMETER api_mode = SOCKETS_API
    PARAMETER lwip_debug = true
    PARAMETER emaclite_instances =
    ((Ethernet_MAC,0x01,0x02,0x03,0x04,0x05))
    END

    As linker options i use : -lxilkernel -llwip4

    when i build the projet i get the following error message:

    Building target: ethernet.elf
    mb-gcc -o ethernet.elf main.o
    -LC:/CodeGeeks/test_edk3/microblaze_0/lib -Wl,-T
    -Wl,"C:\CodeGeeks\test_edk3\TestApp_Memory\src\TestApp_Memory_LinkScr.ld"
    -lxilkernel -llwip4
    C:/CodeGeeks/test_edk3/microblaze_0/lib/liblwip4.a(sys_arch.o): In
    function `sys_arch_sem_wait':
    /cygdrive/c/CodeGeeks/test_edk3/microblaze_0/libsrc/lwip_v2_00_a/src/contrib/ports/v2pro/sys_arch.c(.text+0x148):
    undefined reference to `sem_timedwait'
    C:/CodeGeeks/test_edk3/microblaze_0/lib/liblwip4.a(sys_arch.o): In
    function `sys_arch_mbox_fetch':
    /cygdrive/c/CodeGeeks/test_edk3/microblaze_0/libsrc/lwip_v2_00_a/src/contrib/ports/v2pro/sys_arch.c(.text+0x594):
    undefined reference to `sem_timedwait'
    collect2: ld returned 1 exit status
    make: *** [ethernet.elf] Error 1
    Build complete for project ethernet

    Could somebody help me here please?

    thanks
    Urban
    , Sep 15, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Frank

    microblaze and external RAM

    Frank, Oct 13, 2003, in forum: VHDL
    Replies:
    1
    Views:
    2,477
    Jaytersen
    Oct 13, 2003
  2. Ciaran
    Replies:
    12
    Views:
    6,025
    Frank van Eijkelenburg
    Feb 27, 2004
  3. jluisky

    MICROBLAZE AND SDRAM

    jluisky, May 10, 2005, in forum: VHDL
    Replies:
    2
    Views:
    838
    NEWS-T-ONLINE
    May 10, 2005
  4. jluisky

    SDRAM AND MICROBLAZE PART 2

    jluisky, May 16, 2005, in forum: VHDL
    Replies:
    0
    Views:
    726
    jluisky
    May 16, 2005
  5. Arun

    lwIP compilation

    Arun, Dec 26, 2005, in forum: VHDL
    Replies:
    1
    Views:
    1,094
    Paul Hartke
    Dec 26, 2005
Loading...

Share This Page