主题中讨论的其他器件:CC2652R7、 SYSBIOS、 SIMPLELINK-CC13XX-CC26XX-SDK
你(们)好
我正在尝试从 simplelink SDK 构建 pwmled2示例。

我已经尝试了全部3个示例- NoRTOS、FreeRTOS 和 TIRTOS。 这三个都无法构建。 每个构建日志如下所示:
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 ****
如何解决错误?
其他几个问题:
1) 1)在哪里可以了解 FreeRTOS 和 TIRTOS 之间的差异
2) 2)从哪里可以学习从头开始构建项目? 项目中发生的事情太多了、我想了解一下这些事情。
非常感谢您的帮助。
