summaryrefslogtreecommitdiff
path: root/docs/Zone/html/zoneFormat.html
blob: 0b6859757978a433ca47de1bdbb99d2651f8e515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Zone Description Format</title>
<title>CMSIS-Zone (Preview): Zone Description Format</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="cmsis.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="printComponentTabs.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 46px;">
  <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">CMSIS-Zone (Preview)
   &#160;<span id="projectnumber">Version 0.9.2</span>
   </div>
   <div id="projectbrief">System Resource Management</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<div id="CMSISnav" class="tabs1">
    <ul class="tablist">
      <script type="text/javascript">
		<!--
		writeComponentTabs.call(this);
		//-->
      </script>
	  </ul>
</div>
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('zoneFormat.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Zone Description Format </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>The <b>Zone Description Format</b> is a tool agnostic storage format and is split into:</p>
<ul>
<li><b>Resource File (*.rzone)</b> that describes the system resources available.</li>
<li><b>Assignment File (*.azone)</b> that describes the resource partitioning.</li>
</ul>
<p>The combination of both <b>Resource File</b> and <b>Assignment File</b> can be used to create a new derived <b>Resource File</b> that only contains the resources available for this project. It is therefore possible to split the resources incrementally as needed.</p>
<p>A <b>Resource File (*.rzone)</b> can therefore describe:</p>
<ul>
<li>A complete embedded system including device with one or more processors, external memory and/or external peripheral components.</li>
<li>TrustZone definition and initial setting for Secure Attribute Unit</li>
<li>A resource partition for an independent software project (i.e. boot loader, user application, secure partition) that implement the application for the system.</li>
</ul>
<p>An <b>Assignment File (*.azone)</b> allows to specify either:</p>
<ul>
<li>The partitioning of a system into multiple independent software projects.</li>
<li>The configuration of a Memory Protection Unit (MPU) for functional segregation of a software project.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>It is impossible to use a single <b>Assignment File</b> for both, partitioning of software projects and MPU configuration.</dd></dl>
<h1><a class="anchor" id="XML_Format_Schema"></a>
Overall XML structure</h1>
<p>The CMSIS-Zone utility uses two XML files to store system and configuration information. The structure these XML files is described with schema files that are located in the ARM.CMSIS pack in the directory .\CMSIS\Utilities.</p>
<table class="doxtable">
<tr>
<th align="left">File type </th><th align="left">Schema file </th><th align="left">Description  </th></tr>
<tr>
<td align="left"><a class="el" href="zoneFormat.html#rzone">*.rzone</a> </td><td align="left">rzone.xsd </td><td align="left">Stores the system resources (processors, memory, peripherals) available. </td></tr>
<tr>
<td align="left"><a class="el" href="zoneFormat.html#azone">*.azone</a> </td><td align="left">azone.xsd </td><td align="left">Stores the system partitioning which includes assignments and memory splits for a related .rzone file. </td></tr>
<tr>
<td align="left">.fzone </td><td align="left">fzone.xsd </td><td align="left">CMSIS-Zone data input file for FreeMarker as explained in <a class="el" href="GenDataModel.html">Generator Data Model</a>. </td></tr>
</table>
<dl class="section note"><dt>Note</dt><dd>It is important to understand the relationship between *.rzone and *.azone files. While the *.rzone file contains all the information about the available resources in a system or sub-system, the *.azone file contains all the information about the system partitioning. If the *.rzone file changes (for example because the partitioning of a sub-system has changed), you will not loose the work done on the partitioning of that sub-system. If resources are removed, the <a class="el" href="zTUI.html#zTGUI">CMSIS-Zone GUI</a> will notify you about this and you can make the required changes.</dd></dl>
<p><a class="anchor" id="rzone"></a></p>
<h1>Top-level .rzone XML elements </h1>
<ul>
<li><a class="el" href="xml_rzone_pg.html">&lt;rzone&gt;</a> is the root element of the *.rzone file.</li>
<li><a class="el" href="xml_creator.html">&lt;creator&gt;</a> describes the creation for this *.rzone file.</li>
<li><a class="el" href="xml_device.html">&lt;device&gt;</a> describes the device that is part of the system. It may contain one or more processors.</li>
<li><a class="el" href="xml_resources.html">&lt;resources&gt;</a> describes the memory and peripheral resources of the system.</li>
</ul>
<h2>Structure of .rzone XML file </h2>
<div class="fragment"><div class="line">&lt;rzone&gt;                  <span class="comment">// root element of system zone file</span></div>
<div class="line">  &lt;creator&gt;              <span class="comment">// describes how this rzone file was created</span></div>
<div class="line">  </div>
<div class="line">  &lt;device&gt;               <span class="comment">// device information</span></div>
<div class="line">    &lt;package/&gt;           <span class="comment">// software pack that defines device</span></div>
<div class="line">    &lt;processor/&gt;         <span class="comment">// processor information</span></div>
<div class="line">  &lt;/device&gt;</div>
<div class="line"></div>
<div class="line">  </div>
<div class="line">  &lt;resources&gt;            <span class="comment">// physical resources off-chip </span></div>
<div class="line">    &lt;sau_init&gt;           <span class="comment">// fixed SAU settings required for system</span></div>
<div class="line">      &lt;region/&gt;          <span class="comment">// region setting for SAU</span></div>
<div class="line">    &lt;/sau_init&gt;</div>
<div class="line">        </div>
<div class="line">    &lt;memories&gt;           <span class="comment">// memories section  </span></div>
<div class="line">      &lt;memory&gt;           <span class="comment">// memory resource</span></div>
<div class="line">      &lt;mpc&gt;              <span class="comment">// memory protection controller information</span></div>
<div class="line">    &lt;/memories&gt;</div>
<div class="line">    </div>
<div class="line">    &lt;peripherals&gt;        <span class="comment">// peripheral resources off-chip</span></div>
<div class="line">      { &lt;group&gt; }        <span class="comment">// peripheral group (optional)</span></div>
<div class="line">      &lt;peripheral&gt;       <span class="comment">// peripheral description</span></div>
<div class="line">            { &lt;slot&gt; }       <span class="comment">// slot description (optional)</span></div>
<div class="line">         &lt;interrupt/&gt;    <span class="comment">// optional interrupts for peripheral</span></div>
<div class="line">         &lt;setup/&gt;        <span class="comment">// optional register setup for peripheral</span></div>
<div class="line">                { &lt;slot&gt; }</div>
<div class="line">      &lt;/peripheral&gt;</div>
<div class="line">      { &lt;/group&gt; }       <span class="comment">// peripheral group (optional)</span></div>
<div class="line">    &lt;/peripherals&gt;</div>
<div class="line">  &lt;/resources&gt;</div>
<div class="line">&lt;/rzone&gt;</div>
</div><!-- fragment --><p><a class="anchor" id="azone"></a></p>
<h1>Top-level .azone XML elements </h1>
<ul>
<li><a class="el" href="xml_azone_pg.html">&lt;azone&gt;</a> is the root element of the *.azone file.</li>
<li><a class="el" href="xml_configure.html">&lt;configure&gt;</a> controls the behavior of the CMSIS-Zone utility (project or MPU assignments).</li>
<li><a class="el" href="xml_partition.html">&lt;partition&gt;</a> defines memory partitions that split available system memory.</li>
<li><a class="el" href="xml_zones.html">&lt;zones&gt;</a> defines the assignment of memory, block, and peripherals.</li>
</ul>
<div class="fragment"><div class="line">&lt;azone&gt;</div>
<div class="line">  &lt;rzone&gt;                <span class="comment">// Refers related .rzone file</span></div>
<div class="line">  &lt;configure&gt;            <span class="comment">// CMSIS-Zone utility UI behavior</span></div>
<div class="line">  </div>
<div class="line">  &lt;partition&gt;            <span class="comment">// memory partition information</span></div>
<div class="line">    &lt;memory&gt;             <span class="comment">// memory split information </span></div>
<div class="line">  &lt;/partition&gt;</div>
<div class="line">  </div>
<div class="line">  &lt;zones&gt;                <span class="comment">// zone assignments</span></div>
<div class="line">    &lt;zone&gt;               <span class="comment">// project zone name</span></div>
<div class="line">      &lt;assign&gt;           <span class="comment">// used peripheral or memory</span></div>
<div class="line">        &lt;interrupt/&gt;     <span class="comment">// for peripherals optional interrupt usage</span></div>
<div class="line">      &lt;/assign&gt;</div>
<div class="line">    &lt;/zone&gt;</div>
<div class="line">  &lt;/zones&gt;</div>
<div class="line">&lt;/azone&gt;</div>
</div><!-- fragment --><p><a class="anchor" id="security"></a></p>
<h1>Security Type </h1>
<p>The attribute <em>security</em> defines the security setting for a memory or peripheral region. Only one of the settings is allow:</p>
<ul>
<li>&lt;empty&gt; security not defined (default)</li>
<li>'n' non-secure</li>
<li>'c' secure on non-secure callable</li>
<li>'s' secure</li>
</ul>
<p><a class="anchor" id="access"></a></p>
<h1>Access Type </h1>
<p>The attribute <em>access</em> defines the access permission for a memory or peripheral region. Multiple settings are allow:</p>
<ul>
<li>'r' read</li>
<li>'w' write</li>
<li>'x' execute</li>
<li>'p' peripheral</li>
</ul>
<p><a class="anchor" id="privilege"></a></p>
<h1>Privilege Type </h1>
<p>The attribute <em>privilege</em> defines the privilege level that is required for memory/peripheral access or code execution in a MPU zone. Only one of the settings is allow:</p>
<ul>
<li>&lt;empty&gt; privilege level not specified</li>
<li>'u' unprivileged level</li>
<li>'p' privileged level </li>
</ul>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Wed Jul 10 2019 15:21:06 for CMSIS-Zone (Preview) Version 0.9.2 by Arm Ltd. All rights reserved.
	<!--
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 
	-->
	</li>
  </ul>
</div>
</body>
</html>