1 %% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: ext_serial_win32_comm
3 %% Copyright (C) 2013-2015 Czech Technical University in Prague
6 %% - Carlos Jenkins <carlos@jenkins.co.cr>
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.
13 %% File : rpp_rm48_hdk.tlc
15 %% Embedded real-time system target file for RM48 HDK target.
17 %% This file is the system target file (STF), or target manifest file.
18 %% Functions of the STF include:
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.
27 %% rtw_ug.pdf p. 1129 and _1144_
31 %assign CodeFormat = "Embedded-C"
32 %assign Language = "C"
33 %assign TargetType = "RT"
35 %assign AutoBuildProcedure = !GenerateSampleERTMain
37 %% TODO: Check applicability of this options
38 %assign SuppressSetEventsForThisBaseRateFcn = 1
39 %assign InlineSetEventsForThisBaseRateFcn = TLC_TRUE
40 %assign SuppressMultiTaskScheduler = TLC_TRUE
42 %assign ::extMode = CompiledModel.ConfigSet.ExtMode
44 %include "codegenentry.tlc"
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
56 rtwoptions(oIdx).popupstrings = '';
57 rtwoptions(oIdx).tlcvariable = '';
58 rtwoptions(oIdx).tooltip = '';
59 rtwoptions(oIdx).callback = '';
60 rtwoptions(oIdx).makevariable = '';
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).'];
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).'];
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).'];
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.'];
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.'];
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.'];
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'];
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 = '';
141 rtwoptions(oIdx).prompt = 'Download compiled binary to SDRAM.';
142 rtwoptions(oIdx).type = 'Checkbox';
143 rtwoptions(oIdx).default = 'off';
145 %% rtwoptions(oIdx).enable = 'on';
147 %% rtwoptions(oIdx).enable = 'off';
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 = '';
157 rtwoptions(oIdx).prompt = 'Use OpenOCD to download the compiled binary';
158 rtwoptions(oIdx).type = 'Checkbox';
159 rtwoptions(oIdx).default = 'off';
161 %% rtwoptions(oIdx).enable = 'on';
163 %% rtwoptions(oIdx).enable = 'off';
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 = '';
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 = '';
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)';