/** ============================================================================ * @file dsplink-omap3530-base.tci * * @path $(DSPLINK)/dsp/inc/DspBios/5.XX/OMAP3530/ * * @desc This file defines base configuration for DSP/BIOS LINK. * * @ver 1.63 * ============================================================================ * Copyright (C) 2002-2009, Texas Instruments Incorporated - * http://www.ti.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ============================================================================ */ /* ============================================================================ * Load assert support * ============================================================================ */ utils.importFile("assert.tci"); /* ============================================================================ * Load base TCI file. * ============================================================================ */ utils.loadPlatform("ti.platforms.evm3530"); /* ============================================================================ * Enable common BIOS features used by all examples * ============================================================================ */ bios.disableRealTimeAnalysis(prog); bios.enableMemoryHeaps(prog); bios.disableRtdx(prog); bios.enableTskManager(prog); /* ============================================================================ * GBL * Enable 32K of L2 cache, 32K of L1D cache and 16K for L1P. * Adjust the size of IRAM, L1DSRAM, L1PSRAM accordingly. * Enable caching for addresses 0x8700_0000 - 0x87FF_FFFF by setting MAR135 * ============================================================================ */ prog.module("GBL").ENABLEALLTRC = false ; prog.module("GBL").PROCID = parseInt (arguments [0]) ; /* ============================================================================ * Changes by Nils Pipenbrinck: * * Full Cache sizes * 32kb of IRAM points to L2 internal memory (32k) * ============================================================================ */ prog.module("GBL").C64PLUSCONFIGURE = true ; prog.module("GBL").C64PLUSL2CFG = "64k" ; prog.module("GBL").C64PLUSL1DCFG = "32k" ; prog.module("GBL").C64PLUSL1PCFG = "32k"; prog.module("GBL").C64PLUSMAR128to159 = 0x00000080 ; var IRAM = prog.module("MEM").instance("IRAM"); IRAM.len = 32768; /* ============================================================================ * MEM * ============================================================================ */ prog.module("MEM").STACKSIZE = 0x1000 ; /* ============================================================================ * MEM : RESET_VECTOR * ============================================================================ */ var RESET_VECTOR = prog.module("MEM").create("RESET_VECTOR"); RESET_VECTOR.base = 0x87E00000 ; RESET_VECTOR.len = 0x00000080; RESET_VECTOR.space = "code/data"; RESET_VECTOR.createHeap = false; RESET_VECTOR.comment = "RESET_VECTOR"; /* ============================================================================ * MEM : Adjust DDR2 * ============================================================================ */ var DDR2 = prog.module("MEM").instance("DDR2"); DDR2.base = RESET_VECTOR.base + RESET_VECTOR.len ; DDR2.len = 0x000FFF80; DDR2.space = "code/data"; DDR2.createHeap = true; DDR2.heapSize = 0x10000; DDR2.comment = "DDR2"; /* ============================================================================ * MEM : DSPLINKMEM * ============================================================================ */ var DSPLINKMEM = prog.module("MEM").create("DSPLINKMEM"); DSPLINKMEM.base = DDR2.base + DDR2.len ; DSPLINKMEM.len = 0x00030000; DSPLINKMEM.createHeap = false; DSPLINKMEM.comment = "DSPLINKMEM"; /* ============================================================================ * MEM : DSPLINKMEM * ============================================================================ */ var POOLMEM = prog.module("MEM").create("POOLMEM"); POOLMEM.base = DSPLINKMEM.base + DSPLINKMEM.len ; POOLMEM.len = 0xD0000; POOLMEM.createHeap = false; POOLMEM.comment = "POOLMEM";