5. 新建mian.c,这个不用多说了吧
#include <csl.h>
void main(void) {
while (1) {
}
}
==================== 附属问题 ====================
1. 新建工程结束,右键 -> Build Project,出现如下error,
fatal error #35: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e. 6201)
原因:使用C6XCSL库需要定义芯片信号,错误提示没定义芯片型号
解决:一种方法,在main.c中的#inclde <csl.h>前添加#define CHIP_6713;
另一种方法,工程右键 -> Properties,Build -> C6000 Compiler -> Predefined Symbols,
在“Pre-define NAME”中添加CHIP_6713

2. 右键 -> Build Project,出现如下warning,
warning #10210-D: creating ".stack" section with default size of 0x400; use the
-stack option to change the default size
warning #10210-D: creating ".sysmem" section with default size of 0x400; use
the -heap option to change the default size
原因:没有设置堆大小(stack size)和栈大小(heap size)
解决:工程右键 -> Properties,Build -> C6000 Linker -> Basic Options,
设置stack size和heap size都为0x3FF。

本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-28548-2.html
@小米公司