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.
请您试一下IAR官网给出的解决方案
https://www.iar.com/support/tech-notes/ide/custom-build-vs-project---clean----fatal-errorpe1696-cannot-open-source-file/
另外建议您确认下该路径下是否存在该文件
也有可能是使用不同版本的IAR打开过工程。有时候项目中包含的目录可能会fail,编译器不知道在哪里找到文件。
您可以使用Project -> Options -> C/C++ compiler -> Preprocessor来添加目录
问题解决了 但不知道分析是否正确。
simplelink_cc2640r2_sdk_1_40_00_45 安装在哪个目录下,iar 就在这个目录下打开工程。编译没有问题,如果将simplelink_cc2640r2_sdk_1_40_00_45 拷贝到另外目录,再用IAR 打开就编译失败。如果在本机编译好工程,需要拷贝工程到另外一台电脑上调试,就需要在同目录安装 simplelink_cc2640r2_sdk_1_40_00_45 再移植? 感觉很不人性化。不方便, 目前分析是这个原因,不知道是否正确。
zigbee, z-statck工程就没有这个问题, 只要将整个工程拷贝到任意目录,都可以正常编译。
希望官方能将 simplelink_cc2640r2_sdk_1_40_00_45 项目配置 做些改进。