This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/RM57L843: Adding lwip stack to CCS project

Part Number: RM57L843


Tool/software: TI C/C++ Compiler

Hi, I am working on project in which I have to communicate the hercules board with PC via ethernet, I am using LWIP stack for tcpip communication.

But when I add LWIP stack into project, after compiling it gives me error

I also added required header files into project properties->Build->include options

but ever after this I am getting error.

How can I resolve these errors?

Please help me in this.

Regards

Pratik

  • Hello Pratik,

    Please check the lwiplib.c. Some c files have been included in this c file. Those files need to be excluded from your project. Otherwise, you may get object redefined link problem.

    Please check the original settings of lwip example project:

  • Yes, this information is useful for me to resolve my previous errors.

    Thanks a lot  for this help.

    But new error get occurred after this while calling tcp_alloc() api in lwip_main.c file as 

    Invalid arguments '
    Candidates are:
    tcp_pcb * tcp_alloc(unsigned char)

    '

    for this line st_tcp_client->pcb = tcp_alloc(0U);

    where pcb is member of type struct tcp_pcb* defined in st_tcp_client structure.

    I also tried to typecast the arguments to 'unsigned char' but it didn't resolve this error.

    If I missing something in this statement or syntax please correct me in this.

    Thanks.