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.

NOOB Question: Errors running sample Hello World CC2650STK CCSv6.1

Other Parts Discussed in Thread: CC2650

Hi guys,

I am having trouble running the LED example in CCS6.1. I've been at this for 3 days now and I am getting absolutely nowhere with this. I would be very grateful if someone could help me solve this. Here are screenshots of what I am doing and the Console Message:


**** Build of configuration Debug for project test012 ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../hello.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/armcl" -mv7M3 --code_state=16 --abi=eabi -me --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/include" -g --define=DEBUG --define=CC2650F128RGZ --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="hello.pp"  "../hello.c"
'Finished building: ../hello.c'
' '
'Building target: test012.out'
'Invoking: ARM Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/armcl" -mv7M3 --code_state=16 --abi=eabi -me -g --define=DEBUG --define=CC2650F128RGZ --display_error_number --diag_warning=225 --diag_wrap=off -z -m"test012.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="test012_linkInfo.xml" --rom_model -o "test012.out" "./hello.obj" "../cc26x0f128.cmd"  -l"libc.a"
<Linking>

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

error #10234-D: unresolved symbols remain

>> Compilation failure
warning #10062-D: entry-point symbol "ResetISR" undefined
error #10010: errors encountered during linking; "test012.out" not built
gmake: *** [test012.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • Hello sir, thank you for your answer.

    I have tried all of the suggestions in the post you have listed and have tried using the BLE Stack examples. The BLE examples run successfully, but I do not understand what is different between the BLE Stack examples and the fresh new CCS project created. I have tried to copy all of the files from the successfully running BLE example to my new project, and the new project still does not work. There must be some little thing that makes this work.

    Have you had any experience building a brand new CCS project to output something simple like "Hello World"? Even the hello world fresh hello world sample project that can be selected in the new project menu does not compile correctly.
  • box said:
    Have you had any experience building a brand new CCS project to output something simple like "Hello World"? Even the hello world fresh hello world sample project that can be selected in the new project menu does not compile correctly.

    The "Hello World" template it 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.

    As I mentioned in the other post I referenced, the Wireless Connectivity team recommends using the BLE stack and CC26xxWare as starting point for working with this device. 

    I can tell you how to get a successful build of Hello World (using the files from CC26xxWare) but cannot guarantee it will work as I have not tested it. I would strongly urge you to start instead with BLE examples or even TI-RTOS examples referenced in the Fundamentals Workshop for CC2650.

    To build Hello World, you can do the following (assuming you already have CC26xxWare installed):

    - copy the file startup_ccs.c from /startup_files folder in CC26xxWare to your CCS project
    - Under Project Properties->Build->Compiler->Include Options, add the path to your CC26xxWare installation to --include_path (eg: "C:\ti\CC26xxWARE\cc26xxware_2_20_06_14829")
    - Under  Project Properties->Build->Linker->File Search Path, add driverlib.lib to --library option, and add the path to driverlib.lib to --search_path option (eg: "C:\ti\CC26xxWARE\cc26xxware_2_20_06_14829\driverlib\bin\ccs")

    Hope this helps.

    If you have further questions about recommendations for getting started examples, I would suggest posting in the Bluetooth Low Energy forum as they would be able to provide more expert advice.

  • Thank you AartiG. I will give this a try right now and post back.
  • This setup definitely allowed me to compile without and problems and debug. Thank you so much. I have tried to search the web in regards to your instructions and I could not find them anywhere. Where did you find that information/How did you know to do that? Is that explained in any of the manuals? I'm a bit disappointed because I probably never could have figured this out, had you not posted this explicitly. Is there a source to this in the form of some documentation that I can reference for any later queries regarding this? Again, thank you so much AartiG!
  • I successfully build the project and run the debug configuration, but not seen the "Hello World" print to my screen. Something need to do in this step?