[processor-sdk/pdk.git] / packages / ti / drv / emac / test / EmacLoopbackTest / j721e / emacUnitTest_r5.cfg
2 /* =============================================================================
3 * Copyright (c) Texas Instruments Incorporated 2018
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33 var Defaults = xdc.useModule('xdc.runtime.Defaults');
34 var Diags = xdc.useModule('xdc.runtime.Diags');
35 var Error = xdc.useModule('xdc.runtime.Error');
36 var Log = xdc.useModule('xdc.runtime.Log');
37 var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
38 var Main = xdc.useModule('xdc.runtime.Main');
39 var Memory = xdc.useModule('xdc.runtime.Memory')
40 var System = xdc.useModule('xdc.runtime.System');
41 var Text = xdc.useModule('xdc.runtime.Text');
42 var Clock = xdc.useModule('ti.sysbios.knl.Clock');
43 var Task = xdc.useModule('ti.sysbios.knl.Task');
44 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
46 var BIOS = xdc.useModule('ti.sysbios.BIOS');
47 var Hwi = xdc.useModule('ti.sysbios.family.arm.v7r.keystone3.Hwi');
48 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
49 var SysMin = xdc.useModule('xdc.runtime.SysMin');
52 /* Enable cache */
53 var Cache = xdc.useModule('ti.sysbios.family.arm.v7r.Cache');
54 Cache.enableCache = true;
56 /*
57 * Direct CIO to UART
58 */
59 /* System.SupportProxy = SysUart; */
60 System.SupportProxy = SysMin;
62 /*
63 * Program.argSize sets the size of the .args section.
64 * The examples don't use command line args so argSize is set to 0.
65 */
66 Program.argSize = 0x0;
68 /*
69 * Uncomment this line to globally disable Asserts.
70 * All modules inherit the default from the 'Defaults' module. You
71 * can override these defaults on a per-module basis using Module.common$.
72 * Disabling Asserts will save code space and improve runtime performance.
73 Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
74 */
76 /*
77 * Uncomment this line to keep module names from being loaded on the target.
78 * The module name strings are placed in the .const section. Setting this
79 * parameter to false will save space in the .const section. Error and
80 * Assert messages will contain an "unknown module" prefix instead
81 * of the actual module name.
82 Defaults.common$.namedModule = false;
83 */
85 /* Create default heap and hook it into Memory */
86 var heapMemParams = new HeapMem.Params;
87 heapMemParams.size = 16384*14;
88 var heap0 = HeapMem.create(heapMemParams);
90 Memory.defaultHeapInstance = heap0;
92 /*
93 * Minimize exit handler array in System. The System module includes
94 * an array of functions that are registered with System_atexit() to be
95 * called by System_exit().
96 */
97 System.maxAtexitHandlers = 4;
99 /*
100 * Uncomment this line to disable the Error print function.
101 * We lose error information when this is disabled since the errors are
102 * not printed. Disabling the raiseHook will save some code space if
103 * your app is not using System_printf() since the Error_print() function
104 * calls System_printf().
105 Error.raiseHook = null;
106 */
108 /*
109 * Uncomment this line to keep Error, Assert, and Log strings from being
110 * loaded on the target. These strings are placed in the .const section.
111 * Setting this parameter to false will save space in the .const section.
112 * Error, Assert and Log message will print raw ids and args instead of
113 * a formatted message.
114 Text.isLoaded = false;
115 */
117 /*
118 * Uncomment this line to disable the output of characters by SysMin
119 * when the program exits. SysMin writes characters to a circular buffer.
120 * This buffer can be viewed using the SysMin Output view in ROV.
121 SysMin.flushAtExit = false;
122 */
124 /* System stack size (used by ISRs and Swis) */
125 Program.stack = 0x10000;
127 Task.defaultStackSize = 0x4000;
129 /*
130 * Create and install logger for the whole system
131 */
132 var loggerBufParams = new LoggerBuf.Params();
133 loggerBufParams.numEntries = 32;
134 var logger0 = LoggerBuf.create(loggerBufParams);
135 Defaults.common$.logger = logger0;
136 Main.common$.diags_INFO = Diags.ALWAYS_ON;
138 BIOS.libType = BIOS.LibType_Custom;
140 /* Disable Timer frequency check, workaround for QT test */
141 var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
142 Timer.checkFrequency = false;
144 /* Prevent timer 0 from being allocated from sys-bios for sbl use case. */
145 /* when running from SBL, timer 0 is running at 200 MHz
146 whereas from CCS, timer 0 is running at 25 Mhz like
147 rest of the timers, workaround until PRSDK-5021
148 is resolved
149 */
150 Timer.anyMask = 0xe;
153 Program.sectMap[".bss:emac_ddr_mem"] = "DDR0";
154 Program.sectMap[".vecs"] = "RESET_VECTORS";
155 Program.sectMap[".bss:emac_ocmc_mem"] = "MSRAM16KX256E0_RAM";
157 /*
158 * Initialize MPU and enable it
159 *
160 * Note: MPU must be enabled and properly configured for caching to work.
161 */
162 xdc.loadCapsule("r5_MPU.xs");