1. 安装 CCS 3.3
2. 点击Setup CCStudio v3.3 添加仿真器
3. 导入TMSC6726B 的软件仿真器
4. 打开CCS 3.3。
新建Project
5. 新建Test1工程
6. 新建源文件,并保存文件名test1.c
#include <stdio.h> void main() { int a=0; while(1) { a++; } }
7. 添加test1.c至工程。
8. 添加库文件
C:\CCStudio_v3.3\C6000\cgtools\lib\rts6700.lib
9. 拷贝了一个CMD文件(例子中的,暂时先用着)
/* * Copyright 2001 by Texas Instruments Incorporated. * All rights reserved. Property of Texas Instruments Incorporated. * Restricted rights to use, duplicate or disclose this code are * granted through contract. */ /* * ======== volume.cmd ======== * */ MEMORY { ISRAM : origin = 0x0, len = 0x100000 } SECTIONS { .vectors > ISRAM .text > ISRAM .bss > ISRAM .cinit > ISRAM .const > ISRAM .far > ISRAM .stack > ISRAM .cio > ISRAM .sysmem > ISRAM }
10. 将CMD文件添加至工程中。
11. 编译运行就可以了,编译结果如下。
----------------------------- test1.pjt - Debug ----------------------------- [test1.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -fr"E:/2-DSP/C6726/Prj/Test1/test1/Debug" -d"_DEBUG" -mv6700 -@"Debug.lkf" "test1.c" [Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf" <Linking> Build Complete, 0 Errors, 0 Warnings, 0 Remarks.