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.

CC2642R: Error compiling with CCS 9.0.1

Part Number: CC2642R
Other Parts Discussed in Thread: SYSBIOS

Needed to re-install CCS and XDC (older version that is compatible with our project).  Now having a compilation error which looks like some required libraries are missing or perhaps not pathed correctly.

Error highlighted in pink.

"C:\\ti\\ccs901\\ccs\\utils\\bin\\gmake" -k -j 20 all -O

 making ../src/sysbios/rom_sysbios.aem4 ...

Building file: "../throughput_peripheral_app.cfg"

Invoking: XDCtools

"C:/ti/ccs901/xdctools_3_55_00_11_core/xs" --xdcpath="C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source;C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4 -p ti.platforms.simplelink:CC2642R1F -r release -c "C:/ti/ccs901/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS" --compileOptions "-mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/source/MyProjectName_cc26x2\" --include_path=\"C:/ti/source/MyProjectName_cc26x2/Application/\" --include_path=\"C:/ti/source/MyProjectName_cc26x2/Application/MyBoard\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/npi/src\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/npi/src/inc\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/common/cc26xx/rcosc\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/controller/cc26xx/inc\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/inc\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/rom\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/common/cc26xx\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/icall/inc\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/target\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/hal/src/target/_common\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/hal/src/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/hal/src/inc\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/heapmgr\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/profiles/dev_info\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/icall/src/inc\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/osal/src/inc\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/services/src/saddr\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/services/src/sdata\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/services/src/nv\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/services/src/nv/cc26xx\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/devices/cc13x2_cc26x2\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/posix/ccs\" --include_path=\"C:/ti/ccs901/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS/include\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source/ti/ble5stack/icall/src\" --include_path=\"C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages/ti/catalog/arm/cortexm4/tiva/ce/lib\" --define=DeviceFamily_CC26X2 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi  " "../throughput_peripheral_app.cfg"

gmake[1]: Entering directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

asmem4 C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi_asm_switch.sv7M ...

gmake[1]: Leaving directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

gmake[1]: Entering directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

asmem4 C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages/ti/sysbios/family/arm/m3/IntrinsicsSupport_asm.sv7M ...

gmake[1]: Leaving directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

gmake[1]: Entering directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

asmem4 C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages/ti/sysbios/family/arm/m3/TaskSupport_asm.sv7M ...

gmake[1]: Leaving directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

gmake[1]: Entering directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

asmem4 C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi_asm.sv7M ...

gmake[1]: Leaving directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

making package.mak (because of config.bld) ...

configuring throughput_peripheral_app.xem4 from package/cfg/throughput_peripheral_app_pem4.cfg ...

generating custom ROM library makefile ...

subdir_rules.mk:12: recipe for target 'build-1367415233-inproc' failed

js: "C:/ti/ccs901/xdctools_3_55_00_11_core/packages/xdc/cfg/Main.xs", line 48: XDC runtime error: can't find the library 'lib/boot.aem4' specified by package ti.targets.arm.rtsarm.  It wasn't found along the path 'C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source;C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages;C:/ti/ccs901/xdctools_3_55_00_11_core/packages;..;'.

gmake.exe: *** [package.mak:202: package/cfg/throughput_peripheral_app_pem4.xdl] Error 1

gmake.exe: *** Deleting file 'package/cfg/throughput_peripheral_app_pem4.xdl'

gmake.exe: *** [package/cfg/throughput_peripheral_app_pem4.xdl] Deleting file 'package/cfg/throughput_peripheral_app_pem4.h'

gmake.exe: *** [package/cfg/throughput_peripheral_app_pem4.xdl] Deleting file 'package/cfg/throughput_peripheral_app_pem4.c'

js: "C:/ti/ccs901/xdctools_3_55_00_11_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

gmake[1]: *** [build-1367415233-inproc] Error 1

gmake: *** [build-1367415233] Error 2

subdir_rules.mk:9: recipe for target 'build-1367415233' failed

gmake[1]: Entering directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

clem4 C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages/ti/sysbios/BIOS.c ...

gmake[1]: Leaving directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

gmake[1]: Entering directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

arem4 rom_sysbios.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj ...

gmake[1]: Leaving directory 'C:/ti/source/MyProjectName_cc26x2/src/sysbios'

gmake: Target 'all' not remade because of errors.

 

**** Build Finished ****

  • Hi,

    Thank you for reaching out.

    It seems one library cannot be found.

    js: "C:/ti/ccs901/xdctools_3_55_00_11_core/packages/xdc/cfg/Main.xs", line 48: XDC runtime error: can't find the library 'lib/boot.aem4' specified by package ti.targets.arm.rtsarm.  It wasn't found along the path 'C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/source;C:/ti/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages;C:/ti/ccs901/xdctools_3_55_00_11_core/packages;..;'.

    I would recommend checking the if the missing library can be found in the paths specified. If not, you may have to change the XDCTool version used.

    I hope this will help,

    Best regards,

  • Clement,

    I found the missing library in 2 locations:

    C:\ti\simplelink_cc13x2_26x2_sdk_3_20_00_68\kernel\tirtos\packages\ti\catalog\arm\cortexm4\tiva\ce\lib
    AND
    C:\ti\simplelink_cc13x2_26x2_sdk_3_20_00_68\kernel\tirtos\packages\ti\targets\arm\rtsarm\lib

    Which one of these would be correct?

    When it says "path", does that mean the Window's path, or one of the path environment variables in the project properties?  Or could it be the Package Repository Path?  There seems to be many places that have a "path", but not clear which one.

  • Hi Brent,

    At first sight, the library to use seems to be the second (C:\ti\simplelink_cc13x2_26x2_sdk_3_20_00_68\kernel\tirtos\packages\ti\targets\arm\rtsarm\lib)

    The toolchain reports an issue with the "path" whenever a library/file hasn't been found in all the paths provided. The root cause can then be any of the reasons you have mentioned and even others - file does not exist, incorrect path (typo, incorrect windows path), issue with the path-variables, etc.
    CCS can help you a bit with this as it may grey-out some libraries and files in the "include" folder to signal it cannot be found.

    I hope this will help,

    Best regards,