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.

MSP432E411Y: Add Lwip to existing project.

Part Number: MSP432E411Y

Hello,

I can modify and run the lwip examples on my own hardware (enet_lwip_MSP_EXP432E401Y_nortos_ccs).

But how do I incorporate lwip into an existing project?  Especially so that only those components that are used get compiled.

Thank you.

Best Regards,

Spencer Allen

  • Hello Spencer,

    All the source files of lwIP are included in the example projects. You will need to add all those files into your existing project.

    Any function that is not used by the application automatically get discarded when you build the project. Note that the discard happens at a function level. In lwIP, functions have significant code that is guarded by "ifdef", and if the label is defined then it that section of code will be compiled in, even if you are not using that section of code. These sections of code can be removed by using the lwipopts.h header file.

    Thanks,
    Sai
  • Hi Spencer,

    You can either work backwards and build off of the "enet_lwip_MSP_EXP432E401Y_nortos_ccs" project, in other words adding your project into the functional lwip project;

    Or you can take the lwip folder from the "enet_lwip_MSP_EXP432E401Y_nortos_ccs" project and add it to your project, and just make sure that you follow the proper initialization outlined main() in the application code (enet_lwip.c).

    Thanks,
    Alexis

**Attention** This is a public forum