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/TM4C1294NCPDT: CAN example code error

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

Tool/software: Code Composer Studio

i have two TM4C1294NCPDT launch pad i want to establish  CAN communication between this boards, i have 2Nos MCP2551 Transreciver i am using example code simple_tx.c and simple_rx.c i imported hello example project and just replaced hello.c by simple_tx.c  i am getting some errors which i couldn't resolve please help me to resolve the issue or if any related code or project will be helpful thank you..

gmake: *** [hello.obj] Error 1
'Building file: ../startup_ccs.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="startup_ccs.d" "../startup_ccs.c"
"../startup_ccs.c", line 229: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../startup_ccs.c", line 247: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../startup_ccs.c", line 265: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
'Finished building: ../startup_ccs.c'
' '
'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="drivers/pinout.d" --obj_directory="drivers" "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c"
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13832: warning #48-D: incompatible redefinition of macro "GPIO_PA2_SSI0CLK" (declared at line 2354)
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13837: warning #48-D: incompatible redefinition of macro "GPIO_PA3_SSI0FSS" (declared at line 2356)
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13875: warning #48-D: incompatible redefinition of macro "GPIO_PB2_I2C0SCL" (declared at line 2372)
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13879: warning #48-D: incompatible redefinition of macro "GPIO_PB3_I2C0SDA" (declared at line 2375)
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13970: warning #48-D: incompatible redefinition of macro "GPIO_PF0_TRD2" (declared at line 1900)
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13975: warning #48-D: incompatible redefinition of macro "GPIO_PF1_TRD1" (declared at line 2479)
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13979: warning #48-D: incompatible redefinition of macro "GPIO_PF2_TRD0" (declared at line 2483)
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13983: warning #48-D: incompatible redefinition of macro "GPIO_PF3_TRCLK" (declared at line 2488)
"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13988: warning #48-D: incompatible redefinition of macro "GPIO_PF4_TRD3" (declared at line 1922)
"C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 324: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c'
' '
'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="utils/uartstdio.d" --obj_directory="utils" "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c"
"C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 668: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
"C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 878: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 1044: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 1139: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 134: remark #1534-D: (ULP 7.1) Detected use of global variable "g_pcHex" within one function "UARTvprintf". Recommend placing variable in the function locally
'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c'
' '
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

PROBLEMS:-

Description Resource Path Location Type
#167 too few arguments in function call hello.c /hello line 269 C/C++ Problem
#18 expected a ")" hello.c /hello line 269 C/C++ Problem
gmake: *** [hello.obj] Error 1 hello C/C++ Problem
gmake: Target 'all' not remade because of errors. hello C/C++ Problem

  • This does not show all of the build errors. Please save the complete build log to a text file and attach it here. The procedure to capture build log is described here: 
    https://software-dl.ti.com/ccs/esd/documents/sdto_ccs_build-errors.html#ccs-build-console

  • **** Build of configuration Debug for project hello ****
    
    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k all 
    'Building file: ../can.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="can.d"  "../can.c"
    "../can.c", line 344: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    "../can.c", line 366: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    "../can.c", line 391: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    "../can.c", line 626: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1105: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    "../can.c", line 1123: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    "../can.c", line 1504: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    "../can.c", line 1550: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1564: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1609: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1655: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1656: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1670: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1681: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1690: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1700: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1706: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1712: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1722: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1723: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1728: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1736: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1741: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1748: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1755: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1763: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1771: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1882: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    "../can.c", line 2049: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    "../can.c", line 1865: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1889: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1890: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1891: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1892: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 1893: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "../can.c", line 2094: remark #1528-D: (ULP 3.1) Detected flag polling using CAN_IF1CRQ_BUSY. Recommend using an interrupt combined with enter LPMx and ISR
    'Finished building: ../can.c'
    ' '
    'Building file: ../simple_tx.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="simple_tx.d"  "../simple_tx.c"
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13832: warning #48-D: incompatible redefinition of macro "GPIO_PA2_SSI0CLK" (declared at line 2354)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13837: warning #48-D: incompatible redefinition of macro "GPIO_PA3_SSI0FSS" (declared at line 2356)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13875: warning #48-D: incompatible redefinition of macro "GPIO_PB2_I2C0SCL" (declared at line 2372)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13879: warning #48-D: incompatible redefinition of macro "GPIO_PB3_I2C0SDA" (declared at line 2375)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13970: warning #48-D: incompatible redefinition of macro "GPIO_PF0_TRD2" (declared at line 1900)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13975: warning #48-D: incompatible redefinition of macro "GPIO_PF1_TRD1" (declared at line 2479)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13979: warning #48-D: incompatible redefinition of macro "GPIO_PF2_TRD0" (declared at line 2483)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13983: warning #48-D: incompatible redefinition of macro "GPIO_PF3_TRCLK" (declared at line 2488)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13988: warning #48-D: incompatible redefinition of macro "GPIO_PF4_TRD3" (declared at line 1922)
    "../simple_tx.c", line 367: warning #112-D: statement is unreachable
    'Finished building: ../simple_tx.c'
    ' '
    'Building file: ../startup_ccs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="startup_ccs.d"  "../startup_ccs.c"
    "../startup_ccs.c", line 229: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../startup_ccs.c", line 247: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../startup_ccs.c", line 265: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    'Finished building: ../startup_ccs.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="drivers/pinout.d" --obj_directory="drivers"  "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c"
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13832: warning #48-D: incompatible redefinition of macro "GPIO_PA2_SSI0CLK" (declared at line 2354)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13837: warning #48-D: incompatible redefinition of macro "GPIO_PA3_SSI0FSS" (declared at line 2356)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13875: warning #48-D: incompatible redefinition of macro "GPIO_PB2_I2C0SCL" (declared at line 2372)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13879: warning #48-D: incompatible redefinition of macro "GPIO_PB3_I2C0SDA" (declared at line 2375)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13970: warning #48-D: incompatible redefinition of macro "GPIO_PF0_TRD2" (declared at line 1900)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13975: warning #48-D: incompatible redefinition of macro "GPIO_PF1_TRD1" (declared at line 2479)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13979: warning #48-D: incompatible redefinition of macro "GPIO_PF2_TRD0" (declared at line 2483)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13983: warning #48-D: incompatible redefinition of macro "GPIO_PF3_TRCLK" (declared at line 2488)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13988: warning #48-D: incompatible redefinition of macro "GPIO_PF4_TRD3" (declared at line 1922)
    "C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c", line 324: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl/drivers/pinout.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="utils/uartstdio.d" --obj_directory="utils"  "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c"
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 668: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 878: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 1044: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 1139: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 134: remark #1534-D: (ULP 7.1) Detected use of global variable "g_pcHex" within one function "UARTvprintf". Recommend placing variable in the function locally
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c'
    ' '
    'Building target: hello.out'
    'Invoking: ARM Linker'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual -z -m"hello_ccs.map" --heap_size=0 --stack_size=512 -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --reread_libs --display_error_number --diag_wrap=off --warn_sections --xml_link_info="hello_linkInfo.xml" --rom_model -o "hello.out" "./can.obj" "./simple_tx.obj" "./startup_ccs.obj" "./drivers/pinout.obj" "./utils/uartstdio.obj" "../hello_ccs.cmd"  -llibc.a -l"c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/ccs/Debug/driverlib.lib" 
    <Linking>
    error #10056: symbol "main" redefined: first defined in "./simple_tx.obj"; redefined in "./drivers/pinout.obj"
    remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions
    error #10010: errors encountered during linking; "hello.out" not built
    
    >> Compilation failure
    makefile:149: recipe for target 'hello.out' failed
    gmake: *** [hello.out] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

  • The build log shows a linker error that symbol "main" is defined in both "./simple_tx.obj" and in "./drivers/pinout.obj".

    There can only be one definition of the "main" function. Check those two source files and ensure that only one of them defines the main function.  

  • **** Build of configuration Debug for project hello ****
    
    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k all 
    'Building file: ../hello.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="hello.d"  "../hello.c"
    
    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'hello.obj' failed
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13832: warning #48-D: incompatible redefinition of macro "GPIO_PA2_SSI0CLK" (declared at line 2354)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13837: warning #48-D: incompatible redefinition of macro "GPIO_PA3_SSI0FSS" (declared at line 2356)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13875: warning #48-D: incompatible redefinition of macro "GPIO_PB2_I2C0SCL" (declared at line 2372)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13879: warning #48-D: incompatible redefinition of macro "GPIO_PB3_I2C0SDA" (declared at line 2375)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13970: warning #48-D: incompatible redefinition of macro "GPIO_PF0_TRD2" (declared at line 1900)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13975: warning #48-D: incompatible redefinition of macro "GPIO_PF1_TRD1" (declared at line 2479)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13979: warning #48-D: incompatible redefinition of macro "GPIO_PF2_TRD0" (declared at line 2483)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13983: warning #48-D: incompatible redefinition of macro "GPIO_PF3_TRCLK" (declared at line 2488)
    "c:/ti/TivaWare_C_Series-2.1.4.178/driverlib/pin_map.h", line 13988: warning #48-D: incompatible redefinition of macro "GPIO_PF4_TRD3" (declared at line 1922)
    "../hello.c", line 269: error #167: too few arguments in function call
    "../hello.c", line 269: error #18: expected a ")"
    "../hello.c", line 426: warning #112-D: statement is unreachable
    2 errors detected in the compilation of "../hello.c".
    gmake: *** [hello.obj] Error 1
    'Building file: ../startup_ccs.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="startup_ccs.d"  "../startup_ccs.c"
    "../startup_ccs.c", line 229: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../startup_ccs.c", line 247: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../startup_ccs.c", line 265: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    'Finished building: ../startup_ccs.c'
    ' '
    'Building file: C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/ek-tm4c1294xl" --include_path="c:/ti/TivaWare_C_Series-2.1.4.178" --advice:power=all -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --diag_wrap=off --diag_warning=225 --display_error_number --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="utils/uartstdio.d" --obj_directory="utils"  "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c"
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 668: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 878: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 1044: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 1139: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c", line 134: remark #1534-D: (ULP 7.1) Detected use of global variable "g_pcHex" within one function "UARTvprintf". Recommend placing variable in the function locally
    'Finished building: C:/ti/TivaWare_C_Series-2.1.4.178/utils/uartstdio.c'
    ' '
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

  • This is my new buildlog i have removed the another main pinout which was conflting with my simple_tx.obj still i am left with some errors .

    Thank you so much looking  ahead for your reply.

  • The errors that remain when compiling hello.c are related to C coding and nothing specific to CCS. Doing a web search of the error messages should help guide you in the right direction.