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. 再次編譯,編譯成功。