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.

TMS320F28388D: An error during compiling the "enet_lwip" example with optimization level =4

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi,

I am using the controlCARD board (TMDCNCD28388D) and "enet_lwip" example project. When I set the optimization level on the "4 - Whole Program Optimizations", I face the following errors:

I would appreciate it if someone could explain how I can fix this.

Kind Regards,

Alex

  • Alex, 

    Will forward your query to the compiler team since I am not familiar with how the opt level "4 - Whole Program Optimizations" functions.  I also tired it with opt level 3 but see the same error.

    Do you have any particular reason for using this level of optimization? 

    To Compiler team : 

    enet_lwip example is available in C2000Ware at C:\ti\c2000\C2000Ware_4_02_00_00\libraries\communications\Ethernet\third_party\lwip\examples\enet_lwip folder

    Compiler version : ti-cgt-arm_20.2.7.LTS

    Best Regards

    Siddharth

  • Siddharth,

    Thanks for the reply. I'll be waiting for your reply then.

    Our application is larger than this example project and it is essential for us to use this level of optimization in our application.

    Thanks,

    Alex

  • I am able to reproduce the problem.  I filed the entry EXT_EP-10950 to have this investigated.  You are welcome to follow it with that link.

    In the given CCS example project, the source files enet_lwip.c and f2838xif.c both define the global variable emac_handle.  A workaround is to add the keyword to extern to one of those definitions.  For example ...

    Fullscreen
    1
    extern Ethernet_Handle emac_handle;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    To understand how the declarations and definitions of global variables are typically written, please see this FAQ (not from TI).  

    Thanks and regards,

    -George