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.

Compiler/cc2650: code build is failed due to compiler

Part Number: CC2650

Tool/software: TI C/C++ Compiler


**** Build of configuration Debug for project hello ****

"C:\\ti\\ccs620\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../hello.c'
'Invoking: ARM Compiler'
"C:/ti/ccs620/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/ti/ccs620/ccsv6/tools/compiler/arm_15.12.3.LTS/include" -g --diag_wrap=off --diag_warning=225 --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="hello.d" "../hello.c"
"../hello.c", line 7: warning #121-D: return value type does not match the function type
'Finished building: ../hello.c'
' '
'Building target: hello.out'
'Invoking: ARM Linker'
"C:/ti/ccs620/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv7M3 --code_state=16 -me -g --diag_wrap=off --diag_warning=225 --display_error_number --abi=eabi -z -m"hello.map" --stack_size=256 --heap_size=0 -i"C:/ti/ccs620/ccsv6/tools/compiler/arm_15.12.3.LTS/lib" -i"C:/ti/ccs620/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --reread_libs --diag_wrap=off --warn_sections --display_error_number --xml_link_info="hello_linkInfo.xml" --rom_model -o "hello.out" "./hello.obj" "../cc26x0f128.cmd" -llibc.a
<Linking>

undefined first referenced
symbol in file
--------- ----------------
ResetISR

error #10234-D: unresolved symbols remain
warning #10062-D: entry-point symbol "ResetISR" undefined

INTERNAL ERROR: C:\ti\ccs620\ccsv6\tools\compiler\arm_15.12.3.LTS\bin\armlnk.exe experienced an unhandled exception

This is caused by a defect in the compiler itself. TI Customer
Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue". Include this ENTIRE error message and a
copy of the .pp file created when option --preproc_with_comment
(-ppc) is used.


gmake: *** [hello.out] Error 1
>> Compilation failure
makefile:140: recipe for target 'hello.out' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • I suspect part of your problem is due to some error in configuring your project.  But even so, this ...

    AMIT MAID said:
    INTERNAL ERROR: C:\ti\ccs620\ccsv6\tools\compiler\arm_15.12.3.LTS\bin\armlnk.exe experienced an unhandled exception

    ... always means there is a bug in the compiler tools.  In this case, it is in the linker.

    Please send us a test case which allows us to reproduce the problem.  For a linker problem like this, we need the full CCS project.  Please package it up as described in the article Project Sharing, then attach it to your next post.

    Thanks and regards,

    -George

  • George Mock said:
    Please send us a test case which allows us to reproduce the problem.

    The attach test project which uses TI ARM compiler v16.9.4 generates what I think is the same problem as seen by AMIT MAID, in that fails with:

    **** Build of configuration Debug for project CC2650F128_ccs_hello_world ****
    
    "C:\\ti\\ccs720\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O 
    'Building target: CC2650F128_ccs_hello_world.out'
    'Invoking: ARM Linker'
    "C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/bin/armcl" -mv7M3 --code_state=16 -me -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"CC2650F128_ccs_hello_world.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/lib" -i"C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="CC2650F128_ccs_hello_world_linkInfo.xml" --rom_model -o "CC2650F128_ccs_hello_world.out" "./hello.obj" "../cc26x0f128.cmd"  -llibc.a 
    <Linking>
    
     undefined first referenced
      symbol       in file     
     --------- ----------------
     ResetISR                  
    
    error #10234-D: unresolved symbols remain
    warning #10062-D: entry-point symbol "ResetISR" undefined
    
    INTERNAL ERROR: C:\ti\ccs720\ccsv7\tools\compiler\ti-cgt-arm_16.9.4.LTS\bin\armlnk.exe experienced an unhandled exception
    
    
    This is caused by a defect in the TI Linker.
    >> Compilation failure
    makefile:141: recipe for target 'CC2650F128_ccs_hello_world.out' failed
    TI Customer Support may be able to suggest a workaround to avoid this.
    
    Upgrading to the newest version of the compiler may fix this problem.
    
    Contact TI in the E2E support forums at http://e2e.ti.com under
    "Development Tools", "TI C/C++ Compiler".  See the link titled
    "Submitting an issue".
    
    We need to see this ENTIRE error message and a complete, reproducable
    test case including ALL of the command-line options.
    Include all of the object files, libraries, and linker command files
    used to link the program.
    
    gmake[1]: *** [CC2650F128_ccs_hello_world.out] Error 1
    gmake: *** [all] Error 2
    makefile:137: recipe for target 'all' failed
    
    **** Build Finished ****

    All I did for this test case was create a project for a CC2650F128 in CCS 7.2 using the Basic Types -> Hello World project template. This example has a linker command file which defines a specific entry point with --entry_point ResetISR but there is no entry point of that name in the linked object files.

    CC2650F128_ccs_hello_world.zip

  • AMIT MAID said:
    undefined first referenced
    symbol in file
    --------- ----------------
    ResetISR

    It looks like a "Hello World" template project was created in CCS.

    As explained in https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/430252/1537922#1537922 The "Hello World" template is really not intended for use with the CC26xx parts. The reason is that the New CCS Project Wizard for CC26xx does not add the required startup files and driverlib required for a successful build. The linker error about undefined symbol "ResetISR" appears because that function is defined in a startup file that is not added to the project by default. The startup files and driverlib come as part of the CC26xxWare package. See the referenced post for more details.

  •  this has solved my issue hello world is compiling but now its not printing the hello world. 

    thanks and regards for the help

  • Chester Gillon said:
    The attach test project which uses TI ARM compiler v16.9.4 generates what I think is the same problem as seen by AMIT MAID

    Thank you for that test case.  I am able to reproduce the problem.  I filed CODEGEN-3650 in the SDOWP system to have this investigated.  You are welcome to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George

  • AMIT MAID said:
    hello world is compiling but now its not printing the hello world

    Please see the article Tips for using printf.  First, check on whether you have enough stack and heap.  I'm not familiar with your device.  It may not have enough memory for a hello world program.

    Thanks and regards,

    -George