写了一个打开CCS就自动加载GEL初始化文件,自动加载工程文件。
编译后自动读取out文件并restart,GoMain的gel文件
/* * Copyright 1998 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.gel ======== */
StartUp() //CCS启动时就加载工程文件
{
GEL_ProjectLoad("E:\\2-DSP\\C6726\\Prj\\Test1\\test1\\test1.pjt");
}
menuitem "Application Control" dialog Load() { GEL_Load("E:\\2-DSP\\C6726\\Prj\\Test1\\test1\\Debug\\test1.out"); GEL_Restart(); GEL_Go( main); GEL_WatchAdd("a"); } slider Gain(0, 10 ,1, 1, gainParm) { gain = gainParm; }
点击Gel->Load
弹出对话框:
点击Execute
即可执行
1. Load out文件
2. Restart
3. Go Main
4. 将变量a添加入watch窗口
如图