]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/osal/test/am572x/armv7/bios/osal_arm_AM52x.cfg
Removed stale IPC examples
[processor-sdk/pdk.git] / packages / ti / osal / test / am572x / armv7 / bios / osal_arm_AM52x.cfg
1 /**
2  *  \file   osal_test_evmAM52x.cfg
3  *
4  *  \brief  Sysbios config file for OSAL ARM test project on AM572X GP EVM.
5  *
6  */
8 /*
9  * Copyright (C) 2016-2017 Texas Instruments Incorporated - http://www.ti.com/
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  *
15  * Redistributions of source code must retain the above copyright
16  * notice, this list of conditions and the following disclaimer.
17  *
18  * Redistributions in binary form must reproduce the above copyright
19  * notice, this list of conditions and the following disclaimer in the
20  * documentation and/or other materials provided with the
21  * distribution.
22  *
23  * Neither the name of Texas Instruments Incorporated nor the names of
24  * its contributors may be used to endorse or promote products derived
25  * from this software without specific prior written permission.
26  *
27  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38  *
39  */
40 /* ================ General configuration ================ */
41 var Defaults = xdc.useModule('xdc.runtime.Defaults');
42 var Diags = xdc.useModule('xdc.runtime.Diags');
43 var Error = xdc.useModule('xdc.runtime.Error');
44 var Log = xdc.useModule('xdc.runtime.Log');
45 var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
46 var Main = xdc.useModule('xdc.runtime.Main');
47 var Memory = xdc.useModule('xdc.runtime.Memory')
48 var SysMin = xdc.useModule('xdc.runtime.SysMin');
49 var System = xdc.useModule('xdc.runtime.System');
50 var Text = xdc.useModule('xdc.runtime.Text');
51 var Clock = xdc.useModule('ti.sysbios.knl.Clock');
52 var Swi = xdc.useModule('ti.sysbios.knl.Swi');
53 var Task = xdc.useModule('ti.sysbios.knl.Task');
54 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
55 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
56 var ti_sysbios_family_arm_gic_Hwi = xdc.useModule('ti.sysbios.family.arm.gic.Hwi');
57 var InitXbar    = xdc.useModule("ti.sysbios.family.shared.vayu.IntXbar");
58 var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
61 /* 
62  * Program.argSize sets the size of the .args section. 
63 * The examples don't use command line args so argSize is set to 0.
64  */
65 Program.argSize = 0x0;
67 /* System stack size (used by ISRs and Swis) */
68 Program.stack = 0x20000;
70 /*
71  * Uncomment this line to globally disable Asserts.
72  * All modules inherit the default from the 'Defaults' module.  You
73  * can override these defaults on a per-module basis using Module.common$. 
74  * Disabling Asserts will save code space and improve runtime performance.
75 Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
76  */
78 /*
79  * Uncomment this line to keep module names from being loaded on the target.
80  * The module name strings are placed in the .const section. Setting this
81  * parameter to false will save space in the .const section.  Error and
82  * Assert messages will contain an "unknown module" prefix instead
83  * of the actual module name.
84 Defaults.common$.namedModule = false;
85  */
87 /*
88  * Minimize exit handler array in System.  The System module includes
89  * an array of functions that are registered with System_atexit() to be
90  * called by System_exit().
91  */
92 System.maxAtexitHandlers = 4;       
94 /* 
95  * Uncomment this line to disable the Error print function.  
96  * We lose error information when this is disabled since the errors are
97  * not printed.  Disabling the raiseHook will save some code space if
98  * your app is not using System_printf() since the Error_print() function
99  * calls System_printf().
100 Error.raiseHook = null;
101  */
103 /* 
104  * Uncomment this line to keep Error, Assert, and Log strings from being
105  * loaded on the target.  These strings are placed in the .const section.
106  * Setting this parameter to false will save space in the .const section.
107  * Error, Assert and Log message will print raw ids and args instead of
108  * a formatted message.
109 Text.isLoaded = false;
110  */
112 /*
113  * Uncomment this line to disable the output of characters by SysMin
114  * when the program exits.  SysMin writes characters to a circular buffer.
115  * This buffer can be viewed using the SysMin Output view in ROV.
116 SysMin.flushAtExit = false;
117  */
119 /* Circular buffer size for System_printf() */
120 SysMin.bufSize = 0x200;
121 System.SupportProxy = SysMin;
123 /* 
124  * Create and install logger for the whole system
125  */
126 var loggerBufParams = new LoggerBuf.Params();
127 loggerBufParams.numEntries = 16;
128 var logger0 = LoggerBuf.create(loggerBufParams);
129 Defaults.common$.logger = logger0;
130 Main.common$.diags_INFO = Diags.ALWAYS_ON;
133 if (Program.build.target.$name.match(/gnu/)) {
134     if (Program.build.target.$name.match(/A8F/) ||
135         Program.build.target.$name.match(/A9F/) ||
136         Program.build.target.$name.match(/A15F/)) {
137         var SemiHost = xdc.useModule('ti.sysbios.rts.gnu.SemiHostSupport');
138     }
141 /* ================ BIOS configuration ================ */
143 var BIOS = xdc.useModule('ti.sysbios.BIOS');
145 /*
146  * Build a custom SYS/BIOS library from sources.
147  */
148 BIOS.libType = BIOS.LibType_Custom;
149 BIOS.customCCOpts = BIOS.customCCOpts.replace("-o3", "-o0");
150 /*
151  * The BIOS module will create the default heap for the system.
152  * Specify the size of this default heap.
153  */
154 BIOS.heapSize = 0x1000;
156 /* ================ Task configuration ================ */
158 /* No runtime stack checking is performed */
159 Task.checkStackFlag = false;
161 /* Reduce the number of task priorities */
162 Task.numPriorities = 4;
165 var task0Params = new Task.Params();
166 task0Params.instance.name = "echo";
167 task0Params.stackSize = 0x1000;
168 Program.global.echo = Task.create("&osal_test", task0Params);
170 /* Define and add one Task Hook Set */
171 Task.addHookSet({
172         registerFxn: '&TaskRegisterId',
173         switchFxn: '&mySwitch',
174 });
176 /* ================ Driver configuration ================ */
178 var devType                     = "am572x"
180 /* use CSL package */ 
181 var Csl = xdc.loadPackage('ti.csl');
182 Csl.Settings.deviceType = devType;
184 /* Load the OSAL package */ 
185 var osType = "tirtos"
186 var Osal = xdc.useModule('ti.osal.Settings');
187 Osal.osType = osType;
188 Osal.socType = devType;
189 Osal.libProfile ="release";
191 /* Load Profiling package */
192 var Utils = xdc.loadPackage('ti.utils.profiling');
194 /* Load the uart package */
195 var Uart = xdc.useModule('ti.drv.uart.Settings');
196 Uart.socType = devType;
198 /* Load the uart package */
199 var I2C = xdc.useModule('ti.drv.i2c.Settings');
200 I2C.socType = devType;
202 /* Load the Board package and set the board name */
203 var Board = xdc.loadPackage('ti.board');
204 Board.Settings.boardName = "evmAM572x";
206 /* ================ Cache and MMU configuration ================ */
208 var Cache1  = xdc.useModule('ti.sysbios.family.arm.a15.Cache');
209 var Mmu = xdc.useModule('ti.sysbios.family.arm.a15.Mmu');
211 /* Enable the cache */
212 Cache1.enableCache = true;
214 /* Enable the MMU (Required for L1 data caching) */
215 Mmu.enableMMU = true;
217 var attrs = new Mmu.DescriptorAttrs();
218 Mmu.initDescAttrsMeta(attrs);
219 attrs.type = Mmu.DescriptorType_BLOCK;
220 attrs.noExecute = true;
221 attrs.accPerm = 0;       // R/W at PL1
222 attrs.attrIndx = 3;       // Use MAIR0 Byte2
223 Mmu.setMAIRMeta(3, 0x04);
224 Mmu.setSecondLevelDescMeta(0x43200000, 0x43200000, attrs);
226 /* Set IO Delay configuration areas as non-cache */
227 attrs.attrIndx = 1;
228 Mmu.setSecondLevelDescMeta(0x4844a000, 0x4844a000, attrs);
229 Mmu.setSecondLevelDescMeta(0x4ae07d00, 0x4ae07d00, attrs);
231 /* ================ Memory sections configuration ================ */
232 Program.sectMap["BOARD_IO_DELAY_DATA"] = "OCMC_RAM1";
233 Program.sectMap["BOARD_IO_DELAY_CODE"] = "OCMC_RAM1";