尊敬的工程师:
我正在尝试构建 I2secho 工程、但收到错误
"请参阅下面的详细信息...
i2secho_CC26X2R1_LAUNCHXL_tirtos_ccs
没有与指定版本'3.60.999'等效的 XDCtools 可用-默认为'3.62.1.16_core'。'
我尝试下载 XDCtools 版本 3.60.999。但不可用。
建议我如何解决问题。
谢谢。此致
Ajmal。
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.
尊敬的工程师:
我正在尝试构建 I2secho 工程、但收到错误
"请参阅下面的详细信息...
i2secho_CC26X2R1_LAUNCHXL_tirtos_ccs
没有与指定版本'3.60.999'等效的 XDCtools 可用-默认为'3.62.1.16_core'。'
我尝试下载 XDCtools 版本 3.60.999。但不可用。
建议我如何解决问题。
谢谢。此致
Ajmal。
Ajmal、您好!
通常、XDCTools 会在安装 SDK 时自动安装。 但是、在某些情况下、CCS 无法正确找到它。 能否验证您在安装 SDK 的文件夹中是否有正确的 XDCTools 文件夹?
如果有、则在 CCS 中、点击"Window">"Preferences">"Code Composer Studio">"Products"、然后点击"Refresh"。
如果没有、您可以尝试在此处找到兼容的 XDSTools 版本: http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/
边注是您刚才提到的 LP-CC2651R3SIPA,但您使用的是 i2secho_ CC26X2R1 _LAUNCHXL_tirtos_ccs。 请确保使用与您的硬件兼容的示例。 除此之外、看起来您在使用的是旧的 SDK、但使用更新的 SDK 可能会有所帮助(请参阅此处 https://www.ti.com/tool/download/SIMPLELINK-CC13XX-CC26XX-SDK)。
我希望这将有所帮助、
此致、
您好、Clement、
是的、我找到了 XDCTools 文件夹、并按照您提供的说明进行了操作。
不过、我安装了新的 SDK CC13xx CC26XX [6.40.0.13]、并尝试使用 gcc 通过 FreeRTOS 构建 i2secho 示例。
使用 FreeRTOS 时、我将遇到这些错误。
Building file: "syscfg/ti_freertos_config.c"
Invoking: GNU Compiler
"C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC26X2 -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc" -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/source/ti/posix/gcc" -I"/FreeRTOS/Source/include" -I"/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/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"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc/Debug/syscfg" -std=c99 -o"syscfg/ti_freertos_config.o" "syscfg/ti_freertos_config.c"
subdir_rules.mk:35: recipe for target 'syscfg/ti_freertos_config.o' failed
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: "syscfg/ti_freertos_portable_config.c"
Invoking: GNU Compiler
"C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC26X2 -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc" -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/source/ti/posix/gcc" -I"/FreeRTOS/Source/include" -I"/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/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"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc/Debug/syscfg" -std=c99 -o"syscfg/ti_freertos_portable_config.o" "syscfg/ti_freertos_portable_config.c"
subdir_rules.mk:35: recipe for target 'syscfg/ti_freertos_portable_config.o' failed
Building file: "../main_freertos.c"
Invoking: GNU Compiler
"C:/ti/gcc_arm_none_eabi_9_2_1/bin/arm-none-eabi-gcc-9.2.1.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DDeviceFamily_CC26X2 -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc" -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc/Debug" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/source" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/kernel/freertos" -I"C:/ti/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/source/ti/posix/gcc" -I"/FreeRTOS/Source/include" -I"/FreeRTOS/Source/portable/GCC/ARM_CM4F" -I"C:/ti/gcc_arm_none_eabi_9_2_1/arm-none-eabi/include/newlib-nano" -I"C:/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"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_freertos_gcc/Debug/syscfg" -std=c99 -o"main_freertos.o" "../main_freertos.c"
subdir_rules.mk:9: recipe for target 'main_freertos.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>秒 您好!
很高兴看到您取得了进步。
您好像缺少 FreeRTOS 安装程序。 请访问 https://dev.ti.com/tirex/content/simplelink_cc13xx_cc26xx_sdk_6_40_00_13/docs/ble5stack/ble_user_guide/html/freertos/config.html#using-freertos-with-ccs
一般而言、在 CC26x1/CC26x1上、支持 TIRTOS 的 Clang 编译器的使用比其他配置更广泛。
此致、
您好、Clement。
一般情况下,有关 CC26x1/CC26x1的信息,采用 TIRTOS 的 Clang 编译器比其他配置使用更为广泛。
这是 TIRTOS 的输出。
Invoking: Arm Compiler
"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_tirtos7_gcc" -I"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"AudioCodec.d_raw" -MT"AudioCodec.o" -o"AudioCodec.o" "../AudioCodec.c"
subdir_rules.mk:9: recipe for target 'AudioCodec.o' failed
../AudioCodec.c:47:10: fatal error: 'ti/drivers/I2C.h' file not found
#include <ti/drivers/I2C.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [AudioCodec.o] Error 1
Building file: "../i2secho.c"
Invoking: Arm Compiler
"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_tirtos7_gcc" -I"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"i2secho.d_raw" -MT"i2secho.o" -o"i2secho.o" "../i2secho.c"
subdir_rules.mk:9: recipe for target 'i2secho.o' failed
../i2secho.c:41:10: fatal error: 'pthread.h' file not found
#include <pthread.h>
^~~~~~~~~~~
1 error generated.
gmake: *** [i2secho.o] Error 1
Building file: "../main_tirtos.c"
Invoking: Arm Compiler
"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/Texas Instruments/i2secho_CC26X2R1_LAUNCHXL_tirtos7_gcc" -I"C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"main_tirtos.d_raw" -MT"main_tirtos.o" -o"main_tirtos.o" "../main_tirtos.c"
subdir_rules.mk:9: recipe for target 'main_tirtos.o' failed
../main_tirtos.c:40:10: fatal error: 'pthread.h' file not found
#include <pthread.h>
^~~~~~~~~~~