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/EK-TM4C1294XL: Have problem compile the enet_s2e application

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: TM4C1294NCPDT, TM4C129XNCZAD

Tool/software: Code Composer Studio

Hi, There

I have some problem compiling the enet_s2e application.

I did the following steps as required in Doc SPMA072

1. Copy the enet_s2e folder to EK-TM4C1294XL board folder at:  C:\ti\tirex-content\TivaWare_C_Series-2.1.3.156\examples\boards\ek-tm4c1294xl\

2. Copy the two files: eeprom_pb.c and eeprom_pb.h to utils folder at: C:\ti\tirex-content\TivaWare_C_Series-2.1.3.156\utils

3. Import the project with CCS7.0

4. Replace project properties PART_TM4C1294NCPDT and TARGET_IS TM4C129_RA1 with PART_TM4C129XNCZAD and TARGET_IS TM4C129_RA0 in the project settings

5. Uncommented the line defined the label DK-TM4C129X in line 119 of enet_s2e.c. #define DK-TM4C129X

Now, when I compile, it have problem compiling a lot obj file.

Here's the Console of one of the fail, other files fail exactly the same way.

**** Build of configuration Debug for project enet_s2e ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k all
'Building file: ../config.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include" --include_path="C:/Src/LAN_SERIAL/EXAMPLES/ENET_S2E/enet_s2e" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/lwip-1.4.1/src/include" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/lwip-1.4.1/src/include/ipv4" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/lwip-1.4.1/ports/tiva-tm4c129/include" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/lwip-1.4.1/apps" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/FreeRTOS/Source/include" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/FreeRTOS" --include_path="C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/FreeRTOS/Source/portable/CCS/ARM_CM4F" --define=ccs="ccs" --define=PART_TM4C129XNCZAD --define=TARGET_IS_TM4C129_RA0 -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="config.d"  "../config.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'config.obj' failed
"C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/FreeRTOS/Source/portable/CCS/ARM_CM4F/portmacro.h", line 144: error #18: expected a ")"
"C:/ti/tirex-content/TivaWare_C_Series-2.1.3.156/third_party/FreeRTOS/Source/portable/CCS/ARM_CM4F/portmacro.h", line 144: error #18: expected a ")"
2 errors detected in the compilation of "../config.c".
gmake: *** [config.obj] Error 1

All the fail seems point to file portmacro.h, line 144: error #18: expected a ")". I checked the file, can't find anywhere to add a ")"

Here's Line 136 to line 156 of the the file, do you have any idea where should I add a ")". Or any other suggestion?

/* Architecture specific optimisations. */
#ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION
 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
#endif

#if configUSE_PORT_OPTIMISED_TASK_SELECTION == 1

 /* Check the configuration. */
 #if( configMAX_PRIORITIES > 32 )
  #error configUSE_PORT_OPTIMISED_TASK_SELECTION can only be set to 1 when configMAX_PRIORITIES is less than or equal to 32.  It is very rare that a system requires more than 10 to 15 difference priorities as tasks that share a priority will time slice.
 #endif

 /* Store/clear the ready priorities in a bit map. */
 #define portRECORD_READY_PRIORITY( uxPriority, uxReadyPriorities ) ( uxReadyPriorities ) |= ( 1UL << ( uxPriority ) )
 #define portRESET_READY_PRIORITY( uxPriority, uxReadyPriorities ) ( uxReadyPriorities ) &= ~( 1UL << ( uxPriority ) )

 /*-----------------------------------------------------------*/

 #define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) uxTopPriority = ( 31 - __clz( ( uxReadyPriorities ) ) )

#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */