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.
CC2340R5 TI Proprietary RF 驱动代码有下载链接
https://dev.ti.com/tirex/explore/node?node=A__AIrgmmsR6PyfEfTe.S7-sg__com.ti.SIMPLELINK_LOWPOWER_F3_SDK_PROPRF_MODULE__58mgN04__LATEST 这个只能看一些实例代码,有没有可以直接运行的工程,
您好,
这个链接是 SDK 的驱动层,在这个路径下的例程是供客户调试和学习的:C:\ti\simplelink_lowpower_f3_sdk_7_40_00_64\examples\rtos\LP_EM_CC2340R5\prop_rf
您在这个链接下载 SKD 到本地,驱动、例程、文档都在里面,No RTOS 或者FreeRTOS 都可以直接从 CCS 导入下载到开发板:https://www.ti.com.cn/tool/cn/download/SIMPLELINK-LOWPOWER-F3-SDK
已经下载SDK ,在请教一下IAR工程使用那个版本的IAR打开,我电脑安装的IAR EW for Arm 9.20.1,打开工程之后 提醒
IAR this will open a workspace from a template and save it in a new folder 在重新建立一个工程之后还是提示编译错误,
ebuilding 'build_ide.ninja': 'C:/ti/simplelink_lowpower_f3_sdk_7_40_00_64/examples/nortos/LP_EM_CC2340R5/drivers/watchdog/xjw/watchdog.syscfg', needed by 'C:/ti/simplelink_lowpower_f3_sdk_7_40_00_64/examples/nortos/LP_EM_CC2340R5/drivers/watchdog/xjw/SysConfig_Generated_Files.ipcf', missing and no known rule to make it
里面有个readme文件描述
When this project is built, the SysConfig tool will generate the TI-Driver configurations into the ti_drivers_config.c and ti_drivers_config.h files. Information on pins and resources used is present in both generated files. Additionally, the System Configuration file (*.syscfg) present in the project may be opened with SysConfig’s graphical user interface to determine pins and resources used.
请教一下,需要怎么构建工程?是我哪里操作不对吗
您好,
抱歉久等了,您把具体的错误描述一下,这边为您针对性地解决。
另外,关于 IAR 的问题建议到 E2E 提问:https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum
中文论坛仅提供对 CCS 的技术支持。
或许您应该试试 IAR 9.32.1,仔细看依赖项 IAR Embedded Workbench:: 9.32.1 / 9.50.2 (For CC2340R2)。
9.50.2 是适用于 CC2340R2的,而您使用的是 CC2340R5。
您先尝试一下,如果还不行,请把具体的报错信息贴上来看看。
下载了9.32.1已经验证编译环境正常,
还是会出现
'C:/ti/simplelink_lowpower_f3_sdk_7_40_00_64/examples/nortos/LP_EM_CC2340R5/drivers/watchdog/ti_devices_config.c', needed by 'C:/ti/simplelink_lowpower_f3_sdk_7_40_00_64/examples/nortos/LP_EM_CC2340R5/drivers/watchdog/Debug/Obj/SysConfig Generated Files/ti_devices_config.o', missing and no known rule to make it
这是什么原因
这个错误表示编译器找不到所需的文件,导致编译失败,缺少 ti_devices_config.c 文件,而这个文件是由 Sysconfig 系统配置生成的。
以下是解决问题的步骤:
是这样的,我们这边使用的是 CCS ,关于 IAR 的问题是建议您到 E2E询问的,因为我们没法复现和您一样的问题。
我上面给您的的截图,是想您知道 Sysconfig 的版本号,现在看来是一致的。
您对于SDK下面的部分Examples(drivers、sysbios、demos)并不能直接IAR打开,尽管看起来已经建立好工程,但还需要通过IAR的Examples导入工程。如果强制打开(请不要尝试),可能编译报错,提示找不到文件,或者其他错误。
查看此链接,提供了详细的解决方法:https://www.leconiot.com/download/cc2640r2f/get_started/examples_import/import.html
但还需要通过IAR的Examples导入,问题是一样的;
Unlike the IAR projects for the BLE-Stack, IAR projects for TI Drivers
must be imported rather than opened. All TI Drivers project are created from the original sources in <SDK_INSTALL_DIR>/source/ti/drivers
. Because of this difference, you must not open TI Drivers
.eww IAR projects directly from within the SDK.
Here are the steps on how to import a TI Drivers project.
Error
Do NOT try to open the .eww projects in <SDK_INSTALL_DIR>/source/ti/drivers
directly in IAR!
Doing so will cause IAR to generate project files directly in the example you opened. The result of this is a project that does not open the correct source files and if you try to import the project afterwards with the import procedures listed below, not all source files will be imported into the project!
我是完全按照TI这个流程打开IAR工程问题一样,你说你那边没法复现,是没有IAR环境,还是IAR工程打开之后没有错误能直接编译