logo资料库

CCSV5.4安装使用教程(非常完整).docx

第1页 / 共11页
第2页 / 共11页
第3页 / 共11页
第4页 / 共11页
第5页 / 共11页
第6页 / 共11页
第7页 / 共11页
第8页 / 共11页
资料共11页,剩余部分请下载后查看
1. 新建CCS Project (Create a new CSSProject)
2. 参数按下面调整(Set options as following)
3. 编写代码(Editing source code )
4. 把StellarisWare的头文件路径加include options中
(Add StellarisWare Header file into Include Option
5. 连接阶段的一些问题(problems of link)
6. 下载时如果出现写入错误,写入超时的话, 可以检查一下工程目录下的.ccxml连接配置文件
CCSv5 入门教程 – CSSv5 Tutorials CCSv5(Code Composer Studio v5)是 TI 公司的一个 IDE 环境,基本支持市面上所有 TI 的板子,CCSv5 其实就是一个封装过得 Eclipse,所以界面对我来说还是比较亲切的。 不知道为什么网上基本没有中文 CCSv5 资料,经过一系列摸索,总算成功新建并在板子上调试了第一个程序,整理出来,以馈后来者。 我这里以 LM3S811 板子为例, Demo 用的是 StellarisWare 库。 1. 新建 CCS Project (Create a new CSSProject)
2. 参数按下面调整(Set options as following)
3. 编写代码(Editing source code ) 1. #include "inc/hw_types.h" 2. #include "driverlib/debug.h" 3. #include "driverlib/sysctl.h" 4. #include "drivers/display96x16x1.h" 5. 6. #ifdef DEBUG 7. void 8. __error__(char *pcFilename, unsigned long ulLine) 9. { 10. } 11. #endif 12. 13. int main(void) 14. { 15. SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | 16. SYSCTL_XTAL_6MHZ); 17. 18. Display96x16x1Init(false); 19. Display96x16x1StringDraw(" Hello Embeded!", 0, 0); 20. Display96x16x1StringDraw(" wzs@hallym", 0, 1); 21. while(1) 22. { 23. } 24. }
4. 把 StellarisWare 的头文件路径加 include options 中 (Add StellarisWare Header file into Include Options)
5. 连接阶段的一些问题(problems of link) 最常见的错误如下图所示
首先, 解决连接时找不到 Display96x16x1Init 等函数符号的问题 在工程下新建 drivers 目录,把下列文件 import 进此文件夹
分享到:
收藏