📄 evmdm6437.tcf
字号:
/*
* Copyright 2006 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.
*
* @(#) TCP/IP_Network_Developers_Kit 1.92.00.13 11-17-2006 (ndk-b13)
*/
// DSP/BIOS Configuration Script for TCP/IP Stack Example Application
// Start with the generic evmDM6437
utils.loadPlatform("ti.platforms.evmDM6437");
utils.importFile('helloWorld.tci');
// Setup the L2 Cache and MAR bits
bios.GBL.C64PLUSL2CFG = "64k";
bios.GBL.C64PLUSMAR128to159 = 0x00000001;
// Board specific settings
// Create a heap in external memory
bios.DDR2.len = 0x08000000;
bios.DDR2.createHeap = true;
bios.DDR2.heapSize = 0x00020000;
bios.setMemDataHeapSections(prog, prog.get("DDR2"));
// Configure Board
bios.GBL.CLKOUT = 486.0000;
bios.GBL.CALLUSERINITFXN = 1;
bios.GBL.USERINITFXN = prog.extern("dm6437_init");
//Configure Logging servic for instrumentation
//bios.LOG.TS = true;
bios.LOG.create("DVTEvent_Log");
bios.LOG.instance("DVTEvent_Log").bufSeg = prog.get("IRAM");
bios.LOG.instance("DVTEvent_Log").bufLen = 8192;
bios.LOG.instance("DVTEvent_Log").comment = "DVT";
// Configure timer
bios.CLK.TIMERSELECT = "Timer 0";
bios.CLK.RESETTIMER = true;
// Move all sections to DDR2
bios.setMemCodeSections(prog, prog.get("DDR2"));
bios.setMemDataHeapSections(prog, prog.get("DDR2"));
bios.setMemDataNoHeapSections(prog, prog.get("DDR2"));
// Create a data section in DDR2
var DDR2_DATA = bios.MEM.create("DDR2_DATA");
DDR2_DATA.base = 0x88000000;
DDR2_DATA.len = 0x08000000;
DDR2_DATA.createHeap = 0;
// Remove IRAM since we've set L2 to be cache
bios.IRAM.destroy();
// !GRAPHICAL_CONFIG_TOOL_SCRIPT_INSERT_POINT!
if (config.hasReportedError == false) {
prog.gen();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -