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.
Hi All,
I´m changing my environment from IAR to CCS, but I noticed one problem and I did not find the root cause. Could you please help me?
The error: cannot open source file is happening when the CCS try to access the driverlib files:
example:
#include <inc/hw_types.h>
#include <driverlib/prcm.h>
#include <driverlib/osc.h>
#include <driverlib/aon_wuc.h>
#include <driverlib/cpu.h>
#include <driverlib/sys_ctrl.h>
I don´t know if there are some access problems but I put full access to all files from "C:/ti" path.
I cannot compile any other example with projects with TI-RTOS (sensortag, simpleBLEPeripheral, etc.), so probably the problem is in my environment.
Somebody knows what I could do?
*when I compile with IAR, its working fine.
Regards,
Jody
Can you attach the full output of the CCS build console? If you can provide this for one of the example projects that fails to build, we could take a look to see what may be going wrong.
Hi AartiG,
Here is the console output:
**** Build of configuration Debug for project Oximeter ****
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../source/cfg/Oximeter.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_14_02_22/packages;C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages;C:/ti/tirtos_simplelink_2_14_02_22/products/uia_2_00_02_39/packages;C:/ti/tirtos_simplelink_2_14_02_22/products/cc26xxware_2_21_03_15980;C:/ti/tirtos_simplelink_2_14_02_22/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5" "../source/cfg/Oximeter.cfg"
making package.mak (because of package.bld) ...
configuring Oximeter.xem3 from package/cfg/Oximeter_pem3.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making C:/Users/aliss/Documents/Projetos/biologix_ws/Oximeter/source/cfg/src/sysbios/sysbios.aem3 ...
gmake[1]: Entering directory `C:/Users/aliss/Documents/Projetos/biologix_ws/Oximeter/source/cfg/src/sysbios'
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Boot.c", line 36: error: cannot open source file "driverlib/sys_ctrl.h"
1 error detected in the compilation of "C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Boot.c".
>> Compilation failure
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_standbyPolicy.c", line 45: error: cannot open source file "inc/hw_types.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_standbyPolicy.c", line 46: error: cannot open source file "driverlib/prcm.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_standbyPolicy.c", line 47: error: cannot open source file "driverlib/osc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_standbyPolicy.c", line 48: error: cannot open source file "driverlib/aon_wuc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_standbyPolicy.c", line 49: error: cannot open source file "driverlib/cpu.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_standbyPolicy.c", line 50: error: cannot open source file "driverlib/sys_ctrl.h"
6 errors detected in the compilation of "C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_standbyPolicy.c".
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 43: error: cannot open source file "driverlib/ddi.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 44: error: cannot open source file "driverlib/ioc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 45: error: cannot open source file "driverlib/osc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 46: error: cannot open source file "driverlib/gpio.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 47: error: cannot open source file "driverlib/sys_ctrl.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 48: error: cannot open source file "driverlib/aux_wuc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 49: error: cannot open source file "inc/hw_aux_evctl.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 50: error: cannot open source file "inc/hw_aux_smph.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 51: error: cannot open source file "inc/hw_aux_wuc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 52: error: cannot open source file "inc/hw_aux_tdc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 53: error: cannot open source file "inc/hw_ddi_0_osc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 54: error: cannot open source file "inc/hw_ddi.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c", line 55: error: cannot open source file "inc/hw_ccfg.h"
13 errors detected in the compilation of "C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power_calibrateRCOSC.c".
>> Compilation failure
>> Compilation failure
gmake[1]: *** [mangled_arm_cc26xx_Boot_lib.pp] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [mangled_arm_cc26xx_Power_standbyPolicy_lib.pp] Error 1
gmake[1]: *** [mangled_arm_cc26xx_Power_calibrateRCOSC_lib.pp] Error 1
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 54: error: cannot open source file "inc/hw_types.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 55: error: cannot open source file "inc/hw_prcm.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 56: error: cannot open source file "inc/hw_nvic.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 57: error: cannot open source file "inc/hw_aon_wuc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 58: error: cannot open source file "inc/hw_aon_rtc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 59: error: cannot open source file "inc/hw_memmap.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 60: error: cannot open source file "inc/hw_ccfg.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 61: error: cannot open source file "inc/hw_rfc_pwr.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 62: error: cannot open source file "driverlib/sys_ctrl.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 63: error: cannot open source file "driverlib/pwr_ctrl.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 64: error: cannot open source file "driverlib/prcm.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 65: error: cannot open source file "driverlib/aon_wuc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 66: error: cannot open source file "driverlib/aon_ioc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 67: error: cannot open source file "driverlib/aon_rtc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 68: error: cannot open source file "driverlib/aon_event.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 69: error: cannot open source file "driverlib/aux_wuc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 70: error: cannot open source file "driverlib/osc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 71: error: cannot open source file "driverlib/cpu.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 72: error: cannot open source file "driverlib/vims.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 73: error: cannot open source file "driverlib/rfc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 74: error: cannot open source file "driverlib/sys_ctrl.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 75: error: cannot open source file "driverlib/driverlib_release.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 76: error: cannot open source file "driverlib/setup.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c", line 77: error: cannot open source file "driverlib/ccfgread.h"
24 errors detected in the compilation of "C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Power.c".
>> Compilation failure
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Timer.c", line 46: error: cannot open source file "inc/hw_types.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Timer.c", line 47: error: cannot open source file "inc/hw_memmap.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Timer.c", line 48: error: cannot open source file "inc/hw_aon_rtc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Timer.c", line 49: error: cannot open source file "inc/hw_ints.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Timer.c", line 50: error: cannot open source file "driverlib/aon_rtc.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Timer.c", line 51: error: cannot open source file "driverlib/aon_event.h"
"C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Timer.c", line 52: error: cannot open source file "driverlib/interrupt.h"
7 errors detected in the compilation of "C:/ti/tirtos_simplelink_2_14_02_22/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Timer.c".
>> Compilation failure
gmake[1]: *** [mangled_arm_cc26xx_Power_lib.pp] Error 1
gmake[1]: *** [mangled_arm_cc26xx_Timer_lib.pp] Error 1
gmake[1]: Leaving directory `C:/Users/aliss/Documents/Projetos/biologix_ws/Oximeter/source/cfg/src/sysbios'
gmake: *** [C:/Users/aliss/Documents/Projetos/biologix_ws/Oximeter/source/cfg/src/sysbios/sysbios.aem3] Error 2
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
js: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/Oximeter_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/Oximeter_pem3.xdl'
gmake.exe: *** [package/cfg/Oximeter_pem3.xdl] Deleting file `package/cfg/Oximeter_pem3.h'
gmake.exe: *** [package/cfg/Oximeter_pem3.xdl] Deleting file `package/cfg/Oximeter_pem3.c'
js: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [configPkg/linker.cmd] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
Best Regards,
Jody
Jody,
You seem to be missing compiler include paths along with other compiler options that should be passed to the XDCtools.
For example, I imported the UART Echo TI-RTOS example and the beginning of the build console (XDCtools build step) looks like this:
"C:\\CCStudio_v6.1.2.00015\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../uartecho.cfg'
'Invoking: XDCtools'
"C:/CCStudio_v6.1.2.00015/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_14_03_28/packages;C:/ti/tirtos_simplelink_2_14_03_28/products/bios_6_42_03_35/packages;C:/ti/tirtos_simplelink_2_14_03_28/products/uia_2_00_02_39/packages;C:/CCStudio_v6.1.2.00015/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/CCStudio_v6.1.2.00015/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS" --compileOptions "-mv7M3 --code_state=16 --float_support=vfplib -me --include_path=\"C:/workspaces/ccsv612/tiva_workspace/uartecho_CC2650DK_TI_CC2650F128\" --include_path=\"C:/ti/tirtos_simplelink_2_14_03_28/products/cc26xxware_2_22_00_16101\" --include_path=\"C:/CCStudio_v6.1.2.00015/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include\" -g --define=DEBUG --define=ccs --diag_wrap=off --diag_warning=225 --diag_warning=255 --display_error_number --gen_func_subsections=on --abi=eabi " "../uartecho.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring uartecho.xem3 from package/cfg/uartecho_pem3.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making C:/workspaces/ccsv612/tiva_workspace/uartecho_CC2650DK_TI_CC2650F128/src/sysbios/rom_sysbios.aem3 ...
gmake[1]: Entering directory `C:/workspaces/ccsv612/tiva_workspace/uartecho_CC2650DK_TI_CC2650F128/src/sysbios'
Preprocessing library source files ...
Creating the SYS/BIOS library that contains the APIs not included in the ROM ...
Library build complete.
gmake[1]: Leaving directory `C:/workspaces/ccsv612/tiva_workspace/uartecho_CC2650DK_TI_CC2650F128/src/sysbios'
Build of libraries done.
clem3 package/cfg/uartecho_pem3.c ...
'Finished building: ../uartecho.cfg'
' '
Comparing this with your build, you are missing everything passed to --compileOptions.
This options is available under Project Properties->Build->XDCTools->Advanced Options. Below is a screenshot of the setting for UART Echo project, and also what the
variable resolves to. Can you try importing one of the TI-RTOS example projects and check if this option is set in a similar way?
Jody Tanaka said:Now, I´m with other issue here.
makefile:190: recipe for target 'oximeter.out' failed
Once again, we need to see the full output of the CCS build console. These types of makefile errors are almost always preceded by some other errors. Please save the build log to a text file and attach it here.
Jody Tanaka said:INTERNAL ERROR: C:\ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.5\bin\armlnk.exe had an internal inconsistency and aborted
The linker is generating an internal error. This is a bug in the tools.
Jody Tanaka said: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.
As suggested in the message, you could try updating to ARM compiler tools v15.12.1.LTS and rebuilding your project for that version.
You should be able to get this version by going to menu Help->Check for Updates.
http://processors.wiki.ti.com/index.php/Compiler_Updates#Install_new_features
If the updated compiler tools still produces the internal error, please create a new post in the Compiler forum so they can analyze and track the issue.
You may need to attach the entire project so the problem can be reproduced, however the experts in the Compiler forum will be able to clarify exactly what they need.
Jody,
The linker internal error is the issue that should be posted to the Compiler forums. After updating to 15.12.1 it seems that the error is not an internal error but something different.
I'm not sure yet if this issue is more appropriate for the Compiler forum, but let me take a closer look and get back to you.
Jody,
Jody Tanaka said:"configPkg/linker.cmd", line 708: warning #10096-D: specified address lies outside memory map
error #10264: DEFAULT memory range overlaps existing memory range RAM
I suspect the reason for this error is a missing linker command file. The TI-RTOS based example projects for CC26xx usually have a linker command file in the project.
This .cmd file has the basic MEMORY and SECTION definitions for the device, and gets passed to the linker in addition to the "linker.cmd" file generated by SYS/BIOS.
If you build one of the example projects in TI-RTOS you will see what I mean. I don't see such a linker command file in your link step, and that may the reason for this error.
If that error is fixed, but the undefined symbols still remain, then you are likely missing a library or other files that contain definitions for those symbols.