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.

LP-CC2652R7: Build errors

Part Number: LP-CC2652R7
Other Parts Discussed in Thread: CC2652R7, SYSBIOS, SIMPLELINK-CC13XX-CC26XX-SDK

Hi

I am trying to build the pwmled2 example from the simplelink SDK.

I have tried all the 3 examples - NoRTOS, FreeRTOS and TIRTOS. All three of them fail to build. The build logs for each of them are as follows:

NoRTOS:

**** Build of configuration Debug for project pwmled2_LP_CC2652R7_nortos_gcc ****

/home/vivek/ti/ccs1210/ccs/utils/bin/gmake -k -j 16 all -O 
 
Building target: "pwmled2_LP_CC2652R7_nortos_gcc.out"
Invoking: GNU Linker
"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1" -mfpu=fpv4-sp-d16 -DDeviceFamily_CC26X2X7 -O3 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -mcpu=cortex-m4 -Wl,-Map,"pwmled2_LP_CC2652R7_nortos_gcc.map" --entry resetISR -nostartfiles -static -Wl,--gc-sections -L"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/source" -L"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/kernel/nortos" -L"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_nortos_gcc/Debug/syscfg" -L"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v7e-m/hard" -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -o"pwmled2_LP_CC2652R7_nortos_gcc.out" "./main_nortos.o" "./pwmled2.o" "./syscfg/ti_devices_config.o" "./syscfg/ti_drivers_config.o" -Wl,-T"../cc13x2x7_cc26x2x7_nortos.lds"  -l:ti_utils_build_linker.cmd.genlibs -l:"ti/devices/cc13x2x7_cc26x2x7/driverlib/bin/gcc/driverlib.lib" -lgcc -lc -lm -lnosys 
makefile:147: recipe for target 'pwmled2_LP_CC2652R7_nortos_gcc.out' failed
/home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so: error loading plugin: /home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
gmake[1]: *** [pwmled2_LP_CC2652R7_nortos_gcc.out] Error 1
gmake: *** [all] Error 2
makefile:143: recipe for target 'all' failed

FreeRTOS:

**** Build of configuration Debug for project pwmled2_LP_CC2652R7_freertos_gcc ****

/home/vivek/ti/ccs1210/ccs/utils/bin/gmake -k -j 16 all -O 
 
Building file: "syscfg/ti_freertos_portable_config.c"
Invoking: GNU Compiler
"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC26X2X7 -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc" -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc/Debug" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/source" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/kernel/freertos" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/source/ti/posix/gcc" -I"/FreeRTOS/Source/include" -I"/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -O3 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"syscfg/ti_freertos_portable_config.d_raw" -MT"syscfg/ti_freertos_portable_config.o" -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc/Debug/syscfg" -std=c99  -o"syscfg/ti_freertos_portable_config.o" "syscfg/ti_freertos_portable_config.c"
subdir_rules.mk:33: recipe for target 'syscfg/ti_freertos_portable_config.o' failed
syscfg/ti_freertos_portable_config.c:14:10: fatal error: ../portable/GCC/ARM_CM4F/port.c: No such file or directory
   14 | #include <../portable/GCC/ARM_CM4F/port.c>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [syscfg/ti_freertos_portable_config.o] Error 1
../main_freertos.c:46:10: fatal error: FreeRTOS.h: No such file or directory
   46 | #include <FreeRTOS.h>
      |          ^~~~~~~~~~~~
compilation terminated.
gmake: *** [main_freertos.o] Error 1
syscfg/ti_freertos_config.c:24:10: fatal error: ../../Source/list.c: No such file or directory
   24 | #include <../../Source/list.c>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [syscfg/ti_freertos_config.o] Error 1
Building file: "../main_freertos.c"
Invoking: GNU Compiler
"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC26X2X7 -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc" -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc/Debug" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/source" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/kernel/freertos" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/source/ti/posix/gcc" -I"/FreeRTOS/Source/include" -I"/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -O3 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main_freertos.d_raw" -MT"main_freertos.o" -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc/Debug/syscfg" -std=c99  -o"main_freertos.o" "../main_freertos.c"
subdir_rules.mk:7: recipe for target 'main_freertos.o' failed
Building file: "syscfg/ti_freertos_config.c"
Invoking: GNU Compiler
"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC26X2X7 -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc" -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc/Debug" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/source" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/kernel/freertos" -I"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/source/ti/posix/gcc" -I"/FreeRTOS/Source/include" -I"/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include" -O3 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"syscfg/ti_freertos_config.d_raw" -MT"syscfg/ti_freertos_config.o" -I"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_freertos_gcc/Debug/syscfg" -std=c99  -o"syscfg/ti_freertos_config.o" "syscfg/ti_freertos_config.c"
subdir_rules.mk:33: recipe for target 'syscfg/ti_freertos_config.o' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

TIRTOS:

**** Build of configuration Debug for project pwmled2_LP_CC2652R7_tirtos7_gcc ****

/home/vivek/ti/ccs1210/ccs/utils/bin/gmake -k -j 16 all -O 
 
Building target: "pwmled2_LP_CC2652R7_tirtos7_gcc.out"
Invoking: GNU Linker
"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1" -mfpu=fpv4-sp-d16 -DDeviceFamily_CC26X2X7 -O3 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -mcpu=cortex-m4 -Wl,-Map,"pwmled2_LP_CC2652R7_tirtos7_gcc.map" -nostartfiles -static -Wl,--gc-sections -L"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/source" -L"/home/vivek/ti/simplelink_cc13xx_cc26xx_sdk_6_30_01_03/kernel/tirtos7/packages" -L"/home/vivek/workspace_v12/pwmled2_LP_CC2652R7_tirtos7_gcc/Debug/syscfg" -L"/home/vivek/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/lib/thumb/v7e-m/hard" -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -o"pwmled2_LP_CC2652R7_tirtos7_gcc.out" "./main_tirtos.o" "./pwmled2.o" "./syscfg/ti_devices_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_sysbios_config.o" -Wl,-T"../cc13x2x7_cc26x2x7_tirtos7.lds"  -l:ti_utils_build_linker.cmd.genlibs -l:"ti/devices/cc13x2x7_cc26x2x7/driverlib/bin/gcc/driverlib.lib" -lgcc -lc -lm -lnosys 
makefile:148: recipe for target 'pwmled2_LP_CC2652R7_tirtos7_gcc.out' failed
/home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so: error loading plugin: /home/vivek/ti/gcc_arm_none_eabi_9_2_1/bin/../lib/gcc/arm-none-eabi/9.2.1/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
gmake[1]: *** [pwmled2_LP_CC2652R7_tirtos7_gcc.out] Error 1
gmake: *** [all] Error 2
makefile:144: recipe for target 'all' failed

**** Build Finished ****

How do I resolve the errors?

Few other questions:

1) Where can I learn the difference between freeRTOS and TIRTOS

2) Where can I learn to build projects from scratch? There are too many things going on in the project and I would like to read about them.

Thanks a lot for your help.

  • Hi Vivek,

    Please review the SIMPLELINK-CC13XX-CC26XX-SDK Release Notes for the correct dependencies which should be used.

    You will need to install GCC and FreeRTOS separately and ensure that the Project Properties -> Resources -> Linked Resources and Project Properties -> CCS Build-> Environment paths are correct.  It appears that your GCC directory returns the error "file too short" which must be resolved.  For example, my GCC FreeRTOS project builds with the following Linked Resources:

    You can review the SDK User's Guide to understand the difference between FreeRTOS and TI-RTOS, and use the empty project to start blank development.

    Regards,
    Ryan