導入sdk的demo編譯報錯
使用IAR錯誤內容
Offending text: "iarbuild.exe
$SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR$/kernel/tirtos/builds/CC1352R1_LAUNCHXL/release/iar/tirtos_builds_CC1352R1_LAUNCHXL_release.ewp Debug -log all"
使用CCS提示的錯誤
Configurable "$hardware" of "/ti/drivers/PIN" is of an unknown schema type rfEasyLinkRx_CC1352R1_LAUNCHXL_nortos_ccs C/C++ Problem
錯誤的IDE版本
- 此時使用的IAR 8.4,CCS9.0
- SDK版本 simplelink_cc13x2_26x2_sdk_3_30_00_03
官方的回答
The v1.30 SDK does not work with IAR 8.1. Please refer to the release notes to see which version to use. We are actively working to support 8.1 and it will be available in the next release.
大致的意思是不同版本的SDK需要使用不同版本的IDE(IAR以及CCS都有與SDK對應的版本)。對於剛入手TI的我來說,感覺TI真坑。
查看SDK支持的IDE
在sdk的安裝路徑: ti\simplelink_cc13x2_26x2_sdk_3_30_00_03\release_notes_simplelink_cc13x2_26x2_sdk_3_30_00_03.html
打開這個文件查看當前sdk應該使用什麼IDE。
可以看到simplelink_cc13x2_26x2_sdk_3_30_00_03 該版本的sdk IAR需要使用8.32版本;Code Composer Studio需要使用9.2版本的。
筆者後來使用CCS9.2版本,完美解決。