build-test.tcf
来自「dsp 5509a MMC 卡 ID号读取 12Mhzx16=192M」· TCF 代码 · 共 57 行
TCF
57 行
/*
* ======== build-post.tcf ========
*
* To create post.cdb:
*
* 1) Open a Windows command prompt window and cd to the root of your Code
* Composer installation directory (normally c:\ti). Type dosrun in the
* command prompt window to execute dosrun.bat which adds the Code
* Composer command line utilities to your automatic search path.
*
* 2) Modify the prog.load statement below to reflect the location of your
* Code Composer installation directory if it is not in c:\ti.
*
* 3) Execute the following command in your command prompt window:
*
* tconf build-post.tcf
*/
/* Load 5509 seed file */
prog.load("c:/ti/c5500/bios/include/c5509.cdb");
/* Get program objects */
utils.getProgObjs(prog);
/* Set memory model to large mode */
GBL.MEMORYMODEL = "LARGE";
/* Create SDRAM memory section */
SDRAM = MEM.create("SDRAM");
SDRAM.base = 0x020000;
SDRAM.len = 0x1e0000;
SDRAM.createHeap = 0;
/* Create Flash memory section */
FLASH = MEM.create("Flash");
FLASH.base = 0x200000;
FLASH.len = 0x1f0000;
FLASH.createHeap = 0;
/* Create CPLD memory section */
CPLD = MEM.create("CPLD");
CPLD.base = 0x3f0000;
CPLD.len = 0x10000;
CPLD.createHeap = 0;
/* Change DSP parameters for 5509A at 192 MHz */
GBL.CLKOUT = 192.0;
GBL.CHIPTYPE = "5509a";
GBL.CLKMD = 0x2812
/* Insert timer ISR */
HWI_INT22.fxn = prog.extern("sleepIsr");
HWI_INT22.useDispatcher = 1;
/* Generate .cdb file */
prog.gen("test");
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?