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.

CCS/TM4C123BE6PM: Cannot open source file lwip/opt.h

Part Number: TM4C123BE6PM
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software: Code Composer Studio

I am building an existing project based on TM4C123BE6PM. but the compiler gives the following error:  Cannot open source file lwip/opt.h

I am working with Code Composer Studio Version: 7.3.0.00019 and  with compiler version TIv16.9.4.LTS.

The Tivaware library version is 2.1.4.178.

I attach the screenshot concerning the configuration of the ARM COMPILER and of the ARM LINKER search path.

I have also tried to build the project by physically importing the folder lwip present in ti\TivaWare_C_Series-2.1.4.178\third_party\lwip-1.4.1\src\include\lwip      but the compiler gives the same error

What I am missing?

Thanks in advance

  • Hi Gabriele,
    I don't have my PC with me at the moment. Can you please look at the searchpath and library settings for the various Ethernet examples? These Ethernet examples are all based on the LwIP stack. These examples can be found in <TivaWare_Installation>/examples/boards/ek-tm4c1294xl/enet_lwip or enet_io.

    By the way, the TM4C123x devices do not support Ethernet. What are trying to do with the LwIP TCP/IP stack?
  • Thanks, I finally manage to build the project (the project does not use the LWIP stack: actually I don't understand where the error came from)

    However:

    1) I set a SW_ROOT variable pointing to the root folder of the TIVAWARE library
    2) In the file search path of ARM_Linker section I have included the library ${SW_ROOT}/driverlib/ccs/Debug/driverlib.lib
    3) In the section "Include Options" of "ARM Compiler" I have included ${SW_ROOT}
    4) In the section " Predefined Symbols" of ARM Compiler I have included the following definitions: TARGET_IS_TM4C123_RB1 and PART_TM4C123BE6PM