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.

CCS/EK-TM4C1294XL: Socket programing using lwip stack

Part Number: EK-TM4C1294XL

Tool/software: Code Composer Studio

Hello,

I want to establish a TCP client connection but without using RTOS,

 So my question was can i implement the TCP client connection using lwip stack ?

Also is socket programming possible using lwip stack?

If Yes then please help me with steps/guide or relevant example which i can refer.

Also i have gone through the Tiva C firmware package (version : 2.1.4.178) where i have observed that there are socket implementation related header and source files,

So by keeping the enet_lwip example as reference  tried to implement this socket programing using lwip stack but when i include these source and header files in my project,

I am getting errors of unresolved symbols, even after including relevant path.

Please help me at the earliest

Thanks and regards

Utkarash

  • Hi,

      

    UTKARSH P said:

    I want to establish a TCP client connection but without using RTOS,

     So my question was can i implement the TCP client connection using lwip stack ?

    Yes, the LwIP is a third-party TCP/IP stack which is included in the TivaWare. The enet_lwiP example that you might have already tested is based on the the LwIP stack.

    UTKARSH P said:

    Also is socket programming possible using lwip stack?

    The LwIP stack supports three levels of API programming: Raw, Netconn and Socket. The TivaWare has examples (e.g. enet_io, enet_lwip) that are based on the the Raw API only. We do not have any examples for socket programming in TivaWare. However, I found some LwIP socket example that you can reference. 

    http://cvs.savannah.gnu.org/viewvc/lwip/contrib/apps/socket_examples/

    Here is a link to the three different levels of API programming provided in LwIP.

    My understanding is that you need RTOS to use the socket programming API. Refer to this link for more information.

    https://lwip.fandom.com/wiki/LwIP_with_or_without_an_operating_system

    Please note the LwIP is a third-party software. We will be glad to support TM4C MCU related questions. If you have questions about using the LwIP, you can post your questions to the LwIP mailing list that the experts there are more knowledgeable to assist you. 

    https://lwip.fandom.com/wiki/Further_lwIP_support