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.

TMS570LS3137: FreeRTOS + lwIP with Netconn API

Part Number: TMS570LS3137


Hello. 

I resort to making a query, since I am stuck on my project.

I am working with the TMS570, in a program with RTOS.

I implemented the use of lwIp 1.4.1, to be able to make a TCP client in my project. To use that library with FreeRTOS, they recommended that I use the Netconn APIs.

The problem is that when I want to use them, I get several header errors.

In lwipopt.h I made the change to: NO_SYS 1 and LWIP_NETCONN 1

At the beginning my project told me these errors:

I define them in sys_arch, but then I get the following errors:

The truth is I don't know how to solve this. Please, if anyone knows how to be able to use the lwIP APIs for FreeRTOS with the TMS570 I would be very grateful if you would share it.

What I need are the sys_arch.c files to be able to use the API.

  • Hello,

    LWIP consists of three types of API:

    1. RAW API:  used to develop callback-based applications. It is not used with RTOS since it is not thread safe.

    2. Netconn API:  sequential API. This can be used with RTOS.

    3. Socket API: sequential API. This can be used with RTOS.

    You are correct. The netconn API or socket API should be used with freeRTOS. We don't have example code of freeRTOS + LWIP.