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.

AM2434: Where is the LwipifEnetApp_getHandle() function code ?

Other Parts Discussed in Thread: SYSCONFIG

Hi,

I'm using the mcu_plus_sdk_243x tcp server example

In app_main.c  there's code

DebugP_log("Starting lwIP, local interface IP is dhcp-enabled\r\n");
hlwipIfApp = LwipifEnetApp_getHandle();

Where is the code of the LwipifEnetApp_getHandle() function , is it in some library ?

Thanks,

Eli

  • Hello Eli,

    Yes, you can find it under this directory: C:\ti\mcu_plus_sdk_am243x_09_00_00_35\source\networking\.meta\enet_cpsw\templates (Replace the SDK path with your version if you have an older SDK)

    The file with the function is enet_lwipif.c.xdt.

    Best Regards,

    Ralph Jacobi

  • Hi,

    Found it !

    What is the .xdt extension used for ?

    Thanks,

    Eli

  • Hi,

    Another question:

    Where from is the linker finds the  LwipifEnetApp_getHandle() function code ?

    Does it take it from the lwipif-cpsw-freertos.am243x.r5f.ti-arm-clang.lib

    Or does it go to the source enet_lwipif.c.xdt  then compiles and links from there ?

    Thanks,

    Eli

  • Hello Eli,

    So when I answered this yesterday I just did an initial search on my local system to find the function details in a file but now working through the project, let me clarify this better.

    Where is the code of the LwipifEnetApp_getHandle() function , is it in some library ?

    The better answer for this question is that it is part of the SysConfig generated files for a project.

    What is the .xdt extension used for ?

    This is used by SysConfig to auto-generate necessary code and drivers.

    Does it take it from the lwipif-cpsw-freertos.am243x.r5f.ti-arm-clang.lib

    It is not coming from a library but rather from SysConfig.

    Or does it go to the source enet_lwipif.c.xdt  then compiles and links from there ?

    Yes that is effectively what SysConfig is doing. It takes the information from the xdt files and auto-generates .c and .h files that are compiled and linked. If you go into the project, build it, and then do an Open Declaration on the API, you'll find it brings you into the SysConfig generated "ti_enet_lwipif.c" file.

    Best Regards,

    Ralph Jacobi