⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsk6713_mem.tci

📁 使用CCS信息DSP编程,适用于6713B的启动程序。
💻 TCI
字号:
/*
 *  Copyright 2003 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.
 *  
 */
/* "@(#) ReferenceFrameworks 2.20.00.08 07-18-03 (swat-f02)" */
/*
 *  ======== Dsk6713_mem.tci ========
 *
 *
 *  This script simply sets up the BIOS MEM memory layout configuration
 */

/*
 *  Memory segments, their sizes, heaps, and heap sizes
 *  (SDRAM is external program memory, IRAM is internal memory)
 *  We split the 256K of internal RAM as 192K for code/data and 64K for cache.
 *  In internal and external data memory, we create heaps with names 
 *  INTERNALHEAP and EXTERNALHEAP, respectively, and platform-independent
 *  portions of the application refer to these heaps by their names
 *  rather than the names of memory segments they are created in
 *  (as not all platforms have IRAM, SDRAM segments).
 */

/* Enable heap creation */
bios.enableMemoryHeaps(prog);

tibios.GBL.C621XCONFIGUREL2 = true;  /* Enable L2 configuration */
tibios.GBL.C621XCCFGL2MODE = "4-way cache";


/* shorten the length of the IRAM section to allow 4-way cache */
tibios.IRAM.base            = 0x00400;
tibios.IRAM.len             = 0x2FC00;               /* 192K - 1K */
tibios.IRAM.space           = "code/data";

/* allocate heap named "INTERNALHEAP" of size 0x02000 in internal memory */
tibios.IRAM.createHeap      = true;
tibios.IRAM.heapSize        = 0x02000;  /* 8K   */
tibios.IRAM.enableHeapLabel = true;
tibios.IRAM.heapLabel       = prog.extern( "INTERNALHEAP" );

/* allocate heap named "EXTERNALHEAP" of size 0x08000 in external memory */
tibios.SDRAM.createHeap      = true;
tibios.SDRAM.heapSize        = 0x08000; /* 32K   */
tibios.SDRAM.enableHeapLabel = true;
tibios.SDRAM.heapLabel       = prog.extern( "EXTERNALHEAP" );

/* add Memory Section for the boot loader asm code */
/* c621x/c671x/c64x ROM boot process copies 1Kb from CE1 to address 0 */
var BOOT = tibios.MEM.create("BOOT");
BOOT.comment = "Boot loader fills this memory at startup";
BOOT.len = 0x00000400;     
BOOT.createHeap = false;
BOOT.space = "code/data";

/*
 *  Set the size of the application stack. Must be large
 *  enough to accomodate worst-case of nested priorities, if any.
 */
tibios.MEM.STACKSIZE = 0x0400;

/*
 *  Overriding default section placement
 *  assign listed sections to specified memory segments 
 */ 

/* General */

/* BIOS code */

/* Compiler Sections */

/*
 *  .bss and .far segments should be in internal memory to avoid cache
 *  consistency problems with EDMA-ed data (it is by default,
 *  so this is more of a reminder)
 */
tibios.MEM.BSSSEG = tibios.IRAM;          /* C variables section (.bss) */
tibios.MEM.FARSEG = tibios.IRAM;          /* C Variables Section (.far) */


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -