1 /*
2 * Copyright 2012-2014 by Texas Instruments Incorporated.
3 *
4 * All rights reserved. Property of Texas Instruments Incorporated.
5 * Restricted rights to use, duplicate or disclose this code are
6 * granted through contract.
7 *
8 */
10 var devType = "k2k";
12 /* Load and use the various BIOS modules. */
13 var BIOS = xdc.useModule('ti.sysbios.BIOS');
14 var Task = xdc.useModule('ti.sysbios.knl.Task');
16 /* Load and use the CSL package */
17 var Csl = xdc.useModule('ti.csl.Settings');
18 Csl.deviceType = devType;
20 /* Load and use LLDs */
21 var Cppi = xdc.loadPackage('ti.drv.cppi');
22 var Aif2 = xdc.loadPackage('ti.drv.aif2');
24 /* Load and use the Fault Management package */
25 var Fault_mgmt = xdc.useModule('ti.instrumentation.fault_mgmt.Settings')
26 Fault_mgmt.deviceType = devType;
28 /* Enable BIOS Task Scheduler */
29 BIOS.taskEnabled = true;
31 /*
32 * The SysMin used here vs StdMin, as trace buffer address is required for
33 * Linux trace debug driver, plus provides better performance.
34 */
35 Program.global.sysMinBufSize = 0x8000;
36 var System = xdc.useModule('xdc.runtime.System');
37 var SysMin = xdc.useModule('xdc.runtime.SysMin');
38 System.SupportProxy = SysMin;
39 SysMin.bufSize = Program.global.sysMinBufSize;
41 /* Load the Exception and register a exception hook */
42 var Exception = xdc.useModule('ti.sysbios.family.c64p.Exception');
43 Exception.exceptionHook = '&myExceptionHook';
44 Exception.enablePrint = true;
46 /* Add note section for coredump */
47 Program.sectMap[".note"] = new Program.SectionSpec();
48 Program.sectMap[".note"] = Program.platform.dataMemory;
49 Program.sectMap[".note"].loadAlign = 128;
51 /* Configure resource table for trace only.
52 Note that, it traceOnly parameter should not
53 be set if application is using MessageQ based IPC
54 to communicate between cores
55 */
56 var Resource = xdc.useModule('ti.ipc.remoteproc.Resource');
57 Resource.loadSegment = Program.platform.dataMemory;
58 Resource.traceOnly = true;
60 /* Memory map */
61 Program.sectMap[".cppi"] = "L2SRAM";