]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/emac/test/EmacLoopbackTest/am65xx/emacUnitTest_r5.cfg
95ef689cdd5a942fedcdcf71781e1d3702ad9c29
[processor-sdk/pdk.git] / packages / ti / drv / emac / test / EmacLoopbackTest / am65xx / emacUnitTest_r5.cfg
2 /* =============================================================================
3  *   Copyright (c) Texas Instruments Incorporated 2018-2019
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 /* System stack size (used by ISRs and Swis) */
50 Program.stack = 0x10000;
52 Task.defaultStackSize = 0x4000;
54 /* Enable cache */
55 var Cache = xdc.useModule('ti.sysbios.family.arm.v7r.Cache');
56 Cache.enableCache = true;
58 /*
59  * Direct CIO to UART
60  */
61 /* System.SupportProxy = SysUart; */
62 var SysMin = xdc.useModule('xdc.runtime.SysMin');
63 System.SupportProxy = SysMin;
64 SysMin.outputFxn = "&app_output_log";
66 /*
67  * Program.argSize sets the size of the .args section.
68  * The examples don't use command line args so argSize is set to 0.
69  */
70 Program.argSize = 0x0;
72 /*
73  * Uncomment this line to globally disable Asserts.
74  * All modules inherit the default from the 'Defaults' module.  You
75  * can override these defaults on a per-module basis using Module.common$.
76  * Disabling Asserts will save code space and improve runtime performance.
77 Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
78  */
80 /*
81  * Uncomment this line to keep module names from being loaded on the target.
82  * The module name strings are placed in the .const section. Setting this
83  * parameter to false will save space in the .const section.  Error and
84  * Assert messages will contain an "unknown module" prefix instead
85  * of the actual module name.
86 Defaults.common$.namedModule = false;
87  */
89 /* Create default heap and hook it into Memory */
90 var heapMemParams = new HeapMem.Params;
91 heapMemParams.size = 16384*14;
92 var heap0 = HeapMem.create(heapMemParams);
94 Memory.defaultHeapInstance = heap0;
96 /*
97  * Minimize exit handler array in System.  The System module includes
98  * an array of functions that are registered with System_atexit() to be
99  * called by System_exit().
100  */
101 System.maxAtexitHandlers = 4;
103 /*
104  * Uncomment this line to disable the Error print function.
105  * We lose error information when this is disabled since the errors are
106  * not printed.  Disabling the raiseHook will save some code space if
107  * your app is not using System_printf() since the Error_print() function
108  * calls System_printf().
109 Error.raiseHook = null;
110  */
112 /*
113  * Uncomment this line to keep Error, Assert, and Log strings from being
114  * loaded on the target.  These strings are placed in the .const section.
115  * Setting this parameter to false will save space in the .const section.
116  * Error, Assert and Log message will print raw ids and args instead of
117  * a formatted message.
118 Text.isLoaded = false;
119  */
121 /*
122  * Uncomment this line to disable the output of characters by SysMin
123  * when the program exits.  SysMin writes characters to a circular buffer.
124  * This buffer can be viewed using the SysMin Output view in ROV.
125 SysMin.flushAtExit = false;
126  */
127 /* 
128  * Create and install logger for the whole system
129  */
130 var loggerBufParams = new LoggerBuf.Params();
131 loggerBufParams.numEntries = 32;
132 var logger0 = LoggerBuf.create(loggerBufParams);
133 Defaults.common$.logger = logger0;
134 Main.common$.diags_INFO = Diags.ALWAYS_ON;
136 BIOS.libType = BIOS.LibType_Custom;
138 /* Disable Timer frequency check, workaround for QT test */
139 var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
140 Timer.checkFrequency = false;
142 var Reset = xdc.useModule("xdc.runtime.Reset");
143 Reset.fxns[Reset.fxns.length++] = "&utilsCopyVecs2ATcm";
145 Program.sectMap[".bss:emac_ddr_mem"] = "DDR0";
146 Program.sectMap[".bss:emac_msmc_mem"] = "MSMC3_H";
147 Program.sectMap[".vecs"] = "RESET_VECTORS";
148 /*
149  * Initialize MPU and enable it
150  *
151  * Note: MPU must be enabled and properly configured for caching to work.
152  */
153 xdc.loadCapsule("r5_MPU.xs");