1. 我们使用TI的CCS(Code Composer Studio)编译环境编译工程时,首次安装很可能会遇到编译器找不到SDK的问题。
2. 当CCS编程工具找不到SDK路径时,会有如下报错:
Problems窗口提示:
Product com.ti.SIMPLELINK_CC13X2_26X2_SDK v3.40.0.02 is not currently installed and no compatible version is available. Please install this product or a compatible version.
Console输出:
**** Build Finished ****
Buildfile generation error occurred..
Product com.ti.SIMPLELINK_CC13X2_26X2_SDK v3.40.0.02 is not currently installed and no compatible version is available. Please install this product or a compatible version.
Build stopped..
3. 解决方案
a. 在CCS编程环境中,选择Window -> Preferences,在弹出的窗口中选择Products,点击Add添加TI SDK的文件夹路径。
b. 添加完成后,CCS会自动扫描目录下的SDK并添加到Installed products。点击Apply and Close即可。
c. 再次编译,编译成功。