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.

TM4C129XNCZAD: LWIP_SOCKET

Part Number: TM4C129XNCZAD

Hello,

I have one problem related to the LWIP API socket library. I have used enet_lwip example code and its working perfectly but as soon as I define LWIP_SOCKETS = 1, I get lot of errors, like NO_SYS to NETCONN_TCP etc. Can anybody tell me why this is happening. I have implemented the telnet and tftp server on the code but now I am trying to implement TFTP_CLIENT in this code as no supporting library is available for TFTP client so I am writing code using socket programming.

Best Regards,

Faizan Ahsan.

  • Hi,
    I don't have much knowledge on the TFTP client. Perhaps you can check out BOOTP/TFTP protocol for which the the TM4C Ethernet bootloader is based on to see if any hints. Hopefully some experts in the community will be able to provide some advice. At the same time I will seek some advice from internal too. I will also suggest you check with LwIP forum if they can provide guidance. 

  • Hi Charles,

    Thanks for teh reply. I will search in LWIP forum also but the problem which I got is when I try to use the LWIP socket library with the enet_lwip.c example. Please let me know if you find any help related to this issue.

    Best Regards,

    Faizan Ahsan. 

  • HI,
    I just find out in one of the forum of LWIP that the Stand-Alone LWIP can not be use with sockets. As in LWIP the TCP/IP and application program runs in the same thread as for sockets is concerned they are run in separate threads and thatswhy there overhead is higher than LWIP TCP/IP and it forces a multithreaded paradigm on the application.

    Best Regards,

    Faizan Ahsan.
  • Hi Faizan,
    Thank you for sharing your findings with the community.