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.

TM4C1294NCPDT: enet_s2e Building got error in CCS

Part Number: TM4C1294NCPDT

Hi,

i intend to use the enet_s2e Sample project to develop a ethernet product, but when I follow the userguide(SPMA072), atfer following all the steps of 3.1,

it still got lots of error after project build, my CCS is 7.2.0, the TivaWare version is TivaWare_C_Series-2.1.4.178

can you help me to solve this problem?

  • The error is actually in the preceding line, not the line with the red arrow.

    The preceding line says this:

    #if configUSE_PORT_OPTIMIZED_TASK_SELECTION == 1
    

    But needs to say this:

    #if (configUSE_PORT_OPTIMIZED_TASK_SELECTION == 1)

    Sometimes the compiler gets confused by incorrect syntax and does not recognize what is wrong until a different part of the source code.

  • hi,

    thanks for your suggestion, but when i follow the suggestion, it gets the same error :

  • Did the original example program (without modifications) build successfully?

    Have you made changes to the example program? If so, then try using a comparison utility such as WinMerge (free software) to compare your files to the original ones and see exactly what changed.

    Somewhere, there are unbalanced parenthesis. It is located somewhere prior to the line where the error is being flagged. The trouble is to identify where it is.

    I recommend checking the definitions of configUSE_PORT_OPTIMIZED_TASK_SELECTION and configMAX_PRIORITIES to verify that their expansions do not inadvertently contain unbalanced parenthesis.

    If that is not the cause, look higher up in the source file for unbalanced parenthesis, and/or check the expansion of other defines.

    Note that the problem could originate in a header file that is being included from this file (if any).

    If available, try a different compiler because sometimes a different compiler will flag the error differently and/or perhaps show you the actual source of the problem.

    If you have access to PC-Lint or a similar static analysis program, see if it offers a better error message.
  • hi,

    i didn't change anything in this project, just building then got these errors.

    and i really cna't find any unbalanced parenthesis in code.

    and i try to switch the complier, same result.

  • Hi,
    You want to use this TI Designs for s2e example www.ti.com/.../TIDM-TM4C129XS2E instead of the collateral that comes with the SPMA072 app note .

    I think you will find this post helpful.

    e2e.ti.com/.../1923558
  • Dear Charles,

    Thanks for your information, it's solved now. 

    Really thank you.