]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/rpp/rpp_tms570_hdk.tlc
Update test-sw
[pes-rpp/rpp-simulink.git] / rpp / rpp / rpp_tms570_hdk.tlc
1 %% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: ext_serial_win32_comm
2
3 %% Copyright (C) 2013-2015 Czech Technical University in Prague
4 %%
5 %% Authors:
6 %%     - Carlos Jenkins <carlos@jenkins.co.cr>
7 %%
8 %% This document contains proprietary information belonging to Czech
9 %% Technical University in Prague. Passing on and copying of this
10 %% document, and communication of its contents is not permitted
11 %% without prior written authorization.
12 %%
13 %% File : rpp_rm48_hdk.tlc
14 %% Abstract:
15 %%     Embedded real-time system target file for RM48 HDK target.
16 %%
17 %%     This file is the system target file (STF), or target manifest file.
18 %%     Functions of the STF include:
19 %%
20 %%          - Making the target visible in the System Target File Browser.
21 %%          - Definition of code generation options for the target (inherited
22 %%            and target-specific).
23 %%          - Providing an entry point for the top-level control of the TLC code
24 %%            generation process.
25 %%
26 %% References:
27 %%     rtw_ug.pdf p. 1129 and _1144_
28
29 %selectfile NULL_FILE
30
31 %assign CodeFormat = "Embedded-C"
32 %assign Language   = "C"
33 %assign TargetType = "RT"
34
35 %assign AutoBuildProcedure = !GenerateSampleERTMain
36
37 %% TODO: Check applicability of this options
38 %assign SuppressSetEventsForThisBaseRateFcn = 1
39 %assign InlineSetEventsForThisBaseRateFcn  = TLC_TRUE
40 %assign SuppressMultiTaskScheduler = TLC_TRUE
41
42 %assign ::extMode = CompiledModel.ConfigSet.ExtMode
43
44 %include "codegenentry.tlc"
45
46 /%
47   BEGIN_RTW_OPTIONS
48
49   oIdx = 1;
50
51   rtwoptions(oIdx).prompt          = 'RPP Options';
52   rtwoptions(oIdx).type            = 'Category';
53   rtwoptions(oIdx).enable          = 'on';
54   rtwoptions(oIdx).default         = 4;   % number of items under this category
55                                        % excluding this one.
56   rtwoptions(oIdx).popupstrings    = '';
57   rtwoptions(oIdx).tlcvariable     = '';
58   rtwoptions(oIdx).tooltip         = '';
59   rtwoptions(oIdx).callback        = '';
60   rtwoptions(oIdx).makevariable    = '';
61
62   oIdx = oIdx + 1;
63
64
65
66   rtwoptions(oIdx).prompt         = 'C system stack size';
67   rtwoptions(oIdx).type           = 'Edit';
68   rtwoptions(oIdx).default        = '4096';
69   rtwoptions(oIdx).tlcvariable    = 'rppStackSize';
70   rtwoptions(oIdx).makevariable   = 'RPP_STACK_SIZE';
71   rtwoptions(oIdx).tooltip        = ['Size of the C system stack (in bytes, default 4096).'];
72
73   oIdx = oIdx + 1;
74
75
76   rtwoptions(oIdx).prompt         = 'C system heap size';
77   rtwoptions(oIdx).type           = 'Edit';
78   rtwoptions(oIdx).default        = '4096';
79   rtwoptions(oIdx).tlcvariable    = 'rppHeapSize';
80   rtwoptions(oIdx).makevariable   = 'RPP_HEAP_SIZE';
81   rtwoptions(oIdx).tooltip        = ['Size of the C system heap (in bytes, default 4096).'];
82
83   oIdx = oIdx + 1;
84
85
86   rtwoptions(oIdx).prompt         = 'Model step task stack size';
87   rtwoptions(oIdx).type           = 'Edit';
88   rtwoptions(oIdx).default        = '2048';
89   rtwoptions(oIdx).tlcvariable    = 'rppModelTaskStack';
90   rtwoptions(oIdx).makevariable   = 'RPP_MODEL_TASK_STACK';
91   rtwoptions(oIdx).tooltip        = ['Stack size for the model task (in bytes, default 2048).'];
92
93   oIdx = oIdx + 1;
94
95   rtwoptions(oIdx).prompt         = 'Linker script file name';
96   rtwoptions(oIdx).type           = 'NonUI';
97   rtwoptions(oIdx).default        = 'TMS570LS313xFlashLnk.cmd';
98   rtwoptions(oIdx).tlcvariable    = 'rppLdScriptFileName';
99   rtwoptions(oIdx).makevariable   = 'RPP_LD_SCRIPT_FILE_NAME';
100   rtwoptions(oIdx).tooltip        = ['The name of the platform specific linker script.'];
101
102   oIdx = oIdx + 1;
103
104   rtwoptions(oIdx).prompt         = 'Target configuration file name';
105   rtwoptions(oIdx).type           = 'NonUI';
106   rtwoptions(oIdx).default        = 'TMS570LS3137.ccxml';
107   rtwoptions(oIdx).tlcvariable    = 'rppTargetConfFileName';
108   rtwoptions(oIdx).makevariable   = 'RPP_CCXML_FILE_NAME';
109   rtwoptions(oIdx).tooltip        = ['The name of the platform specific target configuration file.'];
110
111   oIdx = oIdx + 1;
112
113   rtwoptions(oIdx).prompt         = 'Target runtime support library file name';
114   rtwoptions(oIdx).type           = 'NonUI';
115   rtwoptions(oIdx).default        = 'rtsv7R4_T_be_v3D16_eabi.lib';
116   rtwoptions(oIdx).tlcvariable    = 'rppRtsvLibFileName';
117   rtwoptions(oIdx).makevariable   = 'RPP_RTSV_LIB_FILE_NAME';
118   rtwoptions(oIdx).tooltip        = ['The name of the platform specific target runtime support library file.'];
119
120   oIdx = oIdx + 1;
121
122   rtwoptions(oIdx).prompt         = 'Additional target linker flags';
123   rtwoptions(oIdx).type           = 'NonUI';
124   rtwoptions(oIdx).default        = '--be32';
125   rtwoptions(oIdx).tlcvariable    = 'rppLdFlags';
126   rtwoptions(oIdx).makevariable   = 'RPP_LD_FLAGS';
127   rtwoptions(oIdx).tooltip        = ['Additional flags for linker'];
128
129   oIdx = oIdx + 1;
130
131   rtwoptions(oIdx).prompt          = 'Download compiled binary to RPP.';
132   rtwoptions(oIdx).type            = 'Checkbox';
133   rtwoptions(oIdx).default         = 'off';
134   rtwoptions(oIdx).tlcvariable     = 'rppDownload';
135   rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD';
136   rtwoptions(oIdx).tooltip         = ['Download code to RPP board after build.'];
137   rtwoptions(oIdx).callback        = '';
138
139   oIdx = oIdx + 1;
140
141   rtwoptions(oIdx).prompt          = 'Download compiled binary to SDRAM.';
142   rtwoptions(oIdx).type            = 'Checkbox';
143   rtwoptions(oIdx).default         = 'off';
144 %%if isunix
145 %%  rtwoptions(oIdx).enable          = 'on';
146 %%else
147 %%  rtwoptions(oIdx).enable          = 'off';
148 %%end
149   rtwoptions(oIdx).enable          = 'off';
150   rtwoptions(oIdx).tlcvariable     = 'rppDownloadToSDRAM';
151   rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD_TO_SDRAM';
152   rtwoptions(oIdx).tooltip         = ['Download the compiled binary to the SDRAM instead of the internal Flash memory.'];
153   rtwoptions(oIdx).callback        = '';
154
155   oIdx = oIdx + 1;
156
157   rtwoptions(oIdx).prompt          = 'Use OpenOCD to download the compiled binary';
158   rtwoptions(oIdx).type            = 'Checkbox';
159   rtwoptions(oIdx).default         = 'off';
160 %%if isunix
161 %%  rtwoptions(oIdx).enable          = 'on';
162 %%else
163 %%  rtwoptions(oIdx).enable          = 'off';
164 %%end
165   rtwoptions(oIdx).enable          = 'off';
166   rtwoptions(oIdx).tlcvariable     = 'rppUseOpenOCD';
167   rtwoptions(oIdx).makevariable    = 'RPP_USE_OPENOCD';
168   rtwoptions(oIdx).tooltip         = ['Use the OpenOCD to download the compiled binary instead of the Ti DSS Generic Loader.'];
169   rtwoptions(oIdx).callback        = '';
170
171   oIdx = oIdx + 1;
172
173
174   rtwoptions(oIdx).prompt          = 'Print model metadata to SCI at start.';
175   rtwoptions(oIdx).type            = 'Checkbox';
176   rtwoptions(oIdx).default         = 'on';
177   rtwoptions(oIdx).tlcvariable     = 'rppPrintMeta';
178   rtwoptions(oIdx).makevariable    = 'RPP_PRINT_META';
179   rtwoptions(oIdx).tooltip         = ['Print model metadata (model name, compilation time and TLC version) at the start of the model.'];
180   rtwoptions(oIdx).callback        = '';
181
182   oIdx = oIdx + 1;
183
184
185   % Configure code generation settings
186   rtwgensettings.BuildDirSuffix = '_rpp';
187   rtwgensettings.Version        = '1';
188   rtwgensettings.DerivedFrom    = 'ert.tlc';
189   rtwgensettings.SelectCallback = 'rpp_select_callback_handler(hDlg, hSrc)';
190
191   END_RTW_OPTIONS
192 %/