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.

ProfiNet Demo - lwIP-stack LWIP_SOCKET and NO_SYS needed

Part Number: MCU-PLUS-SDK-AM243X


Dear TI support,

we just started with the development of our new device families with integrated field bus.

We plan to use the "built in stack implementation" (e.g. sdk/examples/industrial_comms/profinet_device_demo/).

It seems that the lwIP stack is pre-compiled and part of the library. For our application we need the lwIP stack also for e.g. data transfer via web-server.

Concrete: We need the adaption in the header file:

lwip_opts.h:

      * NO_SYS = 0

      * LWIP_SOCKET = 1

Question:

1. Is it possible to receive the complete source code of the commstacks as well, so that we can configure our lwIP for our own needs?

2. If no, can you provide another library where the flags above are set accordingly, so that we can use the socket API together with the field bus demo?

Thanks in advance and best regards,

Tommy

  • Hi Tommy,

    You can rebuild your LWIP libraries by using the following make commands under mcu_plus_sdk_am243x_08_01_00_36\, after you change the header files:

    gmake -s -f makefile.am243x enet-lwip_r5f.ti-arm-clang_clean
    gmake -s -f makefile.am243x lwip-freertos_r5f.ti-arm-clang_clean
    gmake -s -f makefile.am243x lwip-contrib_r5f.ti-arm-clang_clean

    gmake -s -f makefile.am243x enet-lwip_r5f.ti-arm-clang
    gmake -s -f makefile.am243x lwip-freertos_r5f.ti-arm-clang
    gmake -s -f makefile.am243x lwip-contrib_r5f.ti-arm-clang

    Best regards,

    Ming

  • Ming,

    thanks for the reply.

    Rebuilding the lwIP is not the issue. The issue is, that the library, C:\ti\mcu_plus_sdk_am243x_08_01_00_36\source\industrial_comms\profinet_device\stack\profinetiodevice_rgmii.am243x.r5f.ti-arm-clang.release.lib is not updated after rebuilding the lwIP.

    We estimate, that the lwIP is precompiled and linked into profinetiodevice_rgmii.am243x.r5f.ti-arm-clang.release.lib (see lwip symbols in hex editor, attachment).

    To be able to rebuild the lwIP for our needs, we need access to the sources, so that we can build the profinetiodevice_rgmii.am243x.r5f.ti-arm-clang.release.lib (same issue for Ethernet/IP). Is that possible?

    Best regards,

    Tommy

  • Hi Tommy,

    We do not provide the source code of the common stack. 

    Currently, the LWIP library used by the profinetiodevice_rgmii.am243x.r5f.ti-arm-clang.release.lib is an precompiled older LWIP library, not the one included in the MCU+ SDK. In the future (4Q 22) you can use/rebuild the LWIP in MCU+ SDK for Profinet stack only.

    Best regards,

    Ming