环境:Win10,CCSv8.1
主要参考文档:simplelink_mcu_sdk/Quick_Start_Guide.html
比较折腾,所以立个笔记。。。
打开CCS后,点击Window->Resource Explorer,然后在搜索框中搜索CC3220S-LAUNCHXL,按下图步骤安装并导入freertos的pwmled demo到ccs中:
如果此时直接运行,则会报错,报错信息如下:
- **** Clean-only build of configuration Debug for project pwmled2_CC3220S_LAUNCHXL_freertos_ccs_syscfg ****
- "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 12 clean -O
- DEL /F "pwmled2_CC3220S_LAUNCHXL_freertos_ccs_syscfg.bin" "Board.c" "pwmled2_CC3220S_LAUNCHXL_freertos_ccs_syscfg.out" "Board.h"
- DEL /F "main_freertos.obj" "pwmled2.obj" "Board.obj"
- DEL /F "main_freertos.d" "pwmled2.d" "Board.d"
- 找不到 E:\AppSave\TIccs8\pwmled2_CC3220S_LAUNCHXL_freertos_ccs_syscfg\Debug\pwmled2_CC3220S_LAUNCHXL_freertos_ccs_syscfg.bin
- 找不到 E:\AppSave\TIccs8\pwmled2_CC3220S_LAUNCHXL_freertos_ccs_syscfg\Debug\main_freertos.obj
- 找不到 E:\AppSave\TIccs8\pwmled2_CC3220S_LAUNCHXL_freertos_ccs_syscfg\Debug\main_freertos.d
- Finished clean
-
- **** Build Finished ****
- Buildfile generation error occurred..
- Required variable 'FREERTOS_INSTALL_DIR' cannot be resolved or is pointing to a non-existent location. See 'Preferences > CCS > Build > Variables' page to define this variable before building this project.
- Build stopped..
复制代码
此时应当到到
www.freertos.org freertos官网下载源码并安装,再参考上图步骤3安装目录中的文档
/simplelink_cc32xx_sdk_2_20_00_10/docs/simplelink_mcu_sdk/Quick_Start_Guide.html
按照Add CCS Support for FreeRTOSv10一节内容,将freertos源码安装路径配置到ccs中,配置方法Window> Preferences > Code Composer Studio > Build > Variables > Add, 如图:
然后重新点击Debug按钮运行,即可看到两个led愉快的闪烁了~~
------------------------正文结束分割线--------------------------
下面是吐槽时间:
1. CC3220s属于Simplelink支持范畴,可以直接在re中安装,还是很方便的,不过去年才到手的CC2650-LANCHXL不支持是几个意思。。。
2.安装好ccs之后,提示update available,点击安装更新,然后有一个更新死活安装不上,重装,爬墙,各种办法都没解决,有遇到相同情况的吗?
- An error occurred while collecting items to be installed
- session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
- No repository found containing: org.eclipse.update.feature,com.ti.c2000.support.win32,4.2.5.0
- No repository found containing: binary,com.ti.c2000.support.win32_root,4.2.5.0
复制代码
有图:
此内容由EEWORLD论坛网友shinykongcn原创,如需转载或用于商业用途需征得作者同意并注明出处
本文来自论坛,点击查看完整帖子内容。