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.
Tool/software: Code Composer Studio
Hello,
I am trying test a default program for the LAUNCHXL-CC26X2R1 Launchpad and I am getting the following build output error.:
"package/cfg/app_pem4.c", line 15606: warning: statement is unreachable
"package/cfg/app_pem4.c", line 16167: warning: statement is unreachable
"package/cfg/app_pem4.c", line 16419: warning: statement is unreachable
"package/cfg/app_pem4.c", line 16905: warning: statement is unreachable
"package/cfg/app_pem4.c", line 17179: warning: statement is unreachable
"package/cfg/app_pem4.c", line 17360: warning: statement is unreachable
Finished building: "../app.cfg"
Building file: "../main.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 -me --include_path="C:/Users/chine/workspace_v8/TestBIOS" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" --cmd_file="configPkg/compiler.opt" "../main.c"
Finished building: "../main.c"
1 file(s) copied.
making ../src/sysbios/sysbios.aem4 ...
gmake[2]: Nothing to be done for 'all'.
Building target: "TestBIOS.out"
Invoking: ARM Linker
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 -me -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"TestBIOS.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/lib" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="TestBIOS_linkInfo.xml" --rom_model -o "TestBIOS.out" "./main.obj" -l"configPkg/linker.cmd" -llibc.a
<Linking>
warning #10247-D: creating output section ".text" without a SECTIONS specification
warning #10247-D: creating output section ".const" without a SECTIONS specification
warning #10247-D: creating output section ".bss" without a SECTIONS specification
warning #10247-D: creating output section ".ccfg" without a SECTIONS specification
warning #10247-D: creating output section ".data" without a SECTIONS specification
warning #10247-D: creating output section ".bss:.common" without a SECTIONS specification
warning #10247-D: creating output section ".cinit" without a SECTIONS specification
"configPkg/linker.cmd", line 130: warning #10096-D: specified address lies outside memory map
error #10264: DEFAULT memory range overlaps existing memory range RAM
warning #10229-D: output section ".data" refers to load symbol "ti_sysbios_family_arm_cc26xx_Timer_dynamicStub__E" and hence cannot be compressed; compression "lzss" is ignored
undefined first referenced
symbol in file
--------- ----------------
ti_sysbios_family_arm_cc26xx_Boot_checkBackdoor C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_Boot_trimDevice C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_Boot_useLFXTAL C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_Timer_Module_startup__E C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_Timer_dynamicStub__E C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_Timer_getCurrentTick__E C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_Timer_getMaxTicks__E C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_Timer_setNextTick__E C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_Timer_startup__E C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_TimestampProvider_Module_startup__E C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
ti_sysbios_family_arm_cc26xx_TimestampProvider_get64__E C:\Users\chine\workspace_v8\TestBIOS\Debug\configPkg\package\cfg\app_pem4.oem4
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "TestBIOS.out" not built
>> Compilation failure
makefile:140: recipe for target 'TestBIOS.out' failed
gmake[1]: *** [TestBIOS.out] Error 1
makefile:136: recipe for target 'all' failed
gmake: *** [all] Error 2
**** Build Finished ****
I have tried changing a few settings to no avail. Any and all help is appreciated!
Thanks!
AB,
I am trying to load the default BIOS/RTOS project:
File->New->CCS Project
In the "Project templates and examples", SYS/BIOS->Kernel Examples->TI Target Examples->Typical was my choice of template.
Then I tried to build.
I checked the Properties of the project and it is attempting to compile for the CC2652R1F chip which is the one on my launchpad. So I believe the default program is for the CC26x2 variant. Let me know if I need to do something else to verify which chip I am programming for.
If the linker file in the ".cmd" file, I have not modified it. I have been modifying the app.cfg file though to try and get it to work.
Thanks for responding so quickly!
Johnathan
Hi Johnathan,
I would recommend trying either the 'portable' project or the 'empty' TI-RTOS project for the CC26X2 SDK to confirm you have a working toolchain to get started.
The portable project has either a POSIX API or native TI-RTOS API version available on dev.ti.com:
All of these projects are available within the same directory location inside the desktop version of CCS within the TI Resource Explorer View.
A great getting started guide for working with the CC26X2 SDK and project generation can be found inside the TI Drivers Project Zero SimpleLink Academy. SimpleLink Academies are detailed walkthroughs/training series on a variety of topics with step-by-step hands-on instructions.
Please let me know if you can get one of these projects to build successfully!
Best Regards,
Mark-
Hey Mark!
Thanks for the help!
There were two problems:
The first was that the empty project you provided with the TI-RTOS Drivers option was the project I needed. However, it did not work initially. But that was because of problem number 2 which was that I needed to install the SimpleLink CC26x2 SDK. I thought I had downloaded it before but apparently not. Then I imported the project and compiled and it worked! I was able to load the program onto the board and get the LED to blink.
Thanks so much!
Johnathan