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: "C:/ti/TivaWare_C_Series-2.2.0.295/driverlib/interrupt.h", line 66: error #41: expected an identifier

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

Hi TI Team,

I am getting following error while executing the example code. Please help me for the same.
Thanks,

**** Build of configuration Debug for project enet_tcpecho_server ****

"C:\\ti\\ccs1110\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"
Invoking: ARM Compiler
"C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include/ipv4" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/ports/tiva-tm4c129/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/apps" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA2 --define=DEBUG_OUTPUT --define=UIP_OFFLOAD_ICMP_CHKSUM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="uartstdio.d_raw" "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"

>> Compilation failure
subdir_rules.mk:23: recipe for target 'uartstdio.obj' failed
"C:/ti/TivaWare_C_Series-2.2.0.295/driverlib/interrupt.h", line 66: error #41: expected an identifier
1 error detected in the compilation of "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c".
gmake: *** [uartstdio.obj] Error 1
Building file: "C:/ti/TivaWare_C_Series-2.2.0.295/driverlib/interrupt.c"
Invoking: ARM Compiler
"C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include/ipv4" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/ports/tiva-tm4c129/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/apps" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA2 --define=DEBUG_OUTPUT --define=UIP_OFFLOAD_ICMP_CHKSUM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="interrupt.d_raw" "C:/ti/TivaWare_C_Series-2.2.0.295/driverlib/interrupt.c"
Finished building: "C:/ti/TivaWare_C_Series-2.2.0.295/driverlib/interrupt.c"

Building file: "../enet_tcpecho_server.c"
Invoking: ARM Compiler
"C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include/ipv4" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/ports/tiva-tm4c129/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/apps" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA2 --define=DEBUG_OUTPUT --define=UIP_OFFLOAD_ICMP_CHKSUM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="enet_tcpecho_server.d_raw" "../enet_tcpecho_server.c"
Finished building: "../enet_tcpecho_server.c"

Building file: "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"
Invoking: ARM Compiler
"C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include/ipv4" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/ports/tiva-tm4c129/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/apps" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA2 --define=DEBUG_OUTPUT --define=UIP_OFFLOAD_ICMP_CHKSUM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="utils/uartstdio.d_raw" --obj_directory="utils" "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"

>> Compilation failure
utils/subdir_rules.mk:16: recipe for target 'utils/uartstdio.obj' failed
"C:/ti/TivaWare_C_Series-2.2.0.295/driverlib/interrupt.h", line 66: error #41: expected an identifier
1 error detected in the compilation of "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c".
gmake: *** [utils/uartstdio.obj] Error 1
Building file: "C:/ti/TivaWare_C_Series-2.2.0.295/utils/lwiplib.c"
Invoking: ARM Compiler
"C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/Users/320166058/workspace_v11/enet_tcpecho_server" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include/ipv4" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/ports/tiva-tm4c129/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/apps" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA2 --define=DEBUG_OUTPUT --define=UIP_OFFLOAD_ICMP_CHKSUM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="utils/lwiplib.d_raw" --obj_directory="utils" "C:/ti/TivaWare_C_Series-2.2.0.295/utils/lwiplib.c"
"C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/core/tcp_out.c", line 845: warning #552-D: variable "tcphdr" was set but never used
"C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/core/tcp_out.c", line 1367: warning #552-D: variable "tcphdr" was set but never used
Finished building: "C:/ti/TivaWare_C_Series-2.2.0.295/utils/lwiplib.c"

gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hi,

      I suppose you are trying to run the enet_tcpecho_server example, correct? 

      You should first import the project into a CCS workspace and then build it. See below. Go to File -> Import. Specify the path to the enet_tcpecho_server example in TivaWare. Once imported, you can build it. I just did and don't see any build error. 

      

  • Hi Charles Tsai,

    I followed the same procedure as mentioned above , many times . But still Not able to resolve this issue .

  • Hi,

      I want to know if this is specific to tcp echo example or any other examples? Can you import simple examples like hello and blinky? Will both of them build successfully in the same workspace you are building for tcp echo?

  • Hi,

    For every examples this errors are coming.

  • Hi,

      Why do you start from a fresh new CCS workspace? 

  • I didn't get your point.
    Will you explain me in detail?

    Actually whenever I'm importing a file it is going to workspace.

  • Sorry, I meant to ask you to start from a new CCS workspace as in "Why don't you start from a fresh new CCS workspace." I see you import examples into workspace at C:/Users/320166058/workspace_v11. The workspace you use is currently workspace_v11. You can create a new directory xyz in Windows filesystem and make that directory a new CCS workspace. Can you try that? If you still have problem then I will forward your question to the CCS team. 

  • Hi,

    now if you see I created a new workspace . but still getting an error

    Building file: "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/Users/320166058/xyz/hello" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA2 -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="utils/uartstdio.d_raw" --obj_directory="utils" "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"

    >> Compilation failure
    utils/subdir_rules.mk:9: recipe for target 'utils/uartstdio.obj' failed
    "C:/ti/TivaWare_C_Series-2.2.0.295/driverlib/interrupt.h", line 66: error #41: expected an identifier
    1 error detected in the compilation of "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c".
    gmake: *** [utils/uartstdio.obj] Error 1
    Building file: "C:/ti/TivaWare_C_Series-2.2.0.295/examples/boards/ek-tm4c1294xl/drivers/pinout.c"

  • ok, I will forward your question to our CCS team for guidance. 

  • Hello,

    I imported this project into my CCS 11.1.0 installation and built it using the same compiler version:

    Building file: "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O2 --include_path="C:/ti/workspaces/1110a/enet_tcpecho_server" --include_path="C:/ti/workspaces/1110a/enet_tcpecho_server" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/src/include/ipv4" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/ports/tiva-tm4c129/include" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party/lwip-1.4.1/apps" --include_path="C:/ti/TivaWare_C_Series-2.2.0.295/third_party" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA2 --define=DEBUG_OUTPUT --define=UIP_OFFLOAD_ICMP_CHKSUM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --ual --preproc_with_compile --preproc_dependency="utils/uartstdio.d_raw" --obj_directory="utils" "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"
    Finished building: "C:/ti/TivaWare_C_Series-2.2.0.295/utils/uartstdio.c"

    uartstdio.c build fine for me.

    What is your workspace folder path? And are you copying the project to your workspace folder?

  • "C:/ti/TivaWare_C_Series-2.2.0.295/driverlib/interrupt.h", line 66: error #41: expected an identifier

    Can you attach this file? Line 66 is a comment in my file.

  • Not able to attach here 

    //*****************************************************************************
    //
    // interrupt.h - Prototypes for the NVIC Interrupt Controller Driver.
    //
    // Copyright (c) 2005-2020 Texas Instruments Incorporated. All rights reserved.
    // Software License Agreement
    //
    // Redistribution and use in source and binary forms, with or without
    // modification, are permitted provided that the following conditions
    // are met:
    //
    // Redistributions of source code must retain the above copyright
    // notice, this list of conditions and the following disclaimer.
    //
    // Redistributions in binary form must reproduce the above copyright
    // notice, this list of conditions and the following disclaimer in the
    // documentation and/or other materials provided with the
    // distribution.
    //
    // Neither the name of Texas Instruments Incorporated nor the names of
    // its contributors may be used to endorse or promote products derived
    // from this software without specific prior written permission.
    //
    // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    //
    // This is part of revision 2.2.0.295 of the Tiva Peripheral Driver Library.
    //
    //*****************************************************************************

    #ifndef __DRIVERLIB_INTERRUPT_H__
    #define __DRIVERLIB_INTERRUPT_H__
    //*****************************************************************************
    //
    // If building with a C++ compiler, make all of the definitions in this header
    // have a C binding.
    //
    //*****************************************************************************
    #ifdef __cplusplus
    extern "C"
    {
    #endif

    //*****************************************************************************
    //
    // Macro to generate an interrupt priority mask based on the number of bits
    // of priority supported by the hardware.
    //
    //*****************************************************************************
    #define INT_PRIORITY_MASK ((0xFF << (8 - NUM_PRIORITY_BITS)) & 0xFF)

    //*****************************************************************************
    //
    // Prototypes for the APIs.
    //
    //*****************************************************************************
    extern bool IntMasterEnable(void);
    extern bool IntMasterDisable(void);
    extern void IntRegister(uint32_t ui32Interrupt, void (*pfnHandler)(void));
    extern void IntUnregister(uint32_t ui32Interrupt);
    extern void IntPriorityGroupingSet(uint32_t ui32Bits);
    extern uint32_t IntPriorityGroupingGet(void);
    extern void IntPrioritySet(uint32_t ui32Interrupt,
    uint8_t ui8Priority);
    extern int32_t IntPriorityGet(uint32_t ui32Interrupt);
    extern void IntEnable(uint32_t ui32Interrupt);
    extern void IntDisable(uint32_t ui32Interrupt);
    extern uint32_t IntIsEnabled(uint32_t ui32Interrupt);
    extern void IntPendSet(uint32_t ui32Interrupt);
    extern void IntPendClear(uint32_t ui32Interrupt);
    extern void IntPriorityMaskSet(uint32_t ui32PriorityMask);
    extern uint32_t IntPriorityMaskGet(void);
    extern void IntTrigger(uint32_t ui32Interrupt);

    //*****************************************************************************
    //
    // Mark the end of the C bindings section for C++ compilers.
    //
    //*****************************************************************************
    #ifdef __cplusplus
    }
    #endif

    #endif // __DRIVERLIB_INTERRUPT_H__

  • Thanks. I tried using your version of the file but I still had no issues with the build.

    I'm wondering why your version is different than mine when we are are both using the same version of TivaWare. Did you modify it in any way? Were other files modified?

    Thanks

    ki