group__DAP__TI__TransferBlock.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <title>DAP_TI_TransferBlock</title>
  7. <title>CMSIS-DAP: DAP_TI_TransferBlock</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <link href="cmsis.css" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <script type="text/javascript" src="printComponentTabs.js"></script>
  13. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  14. <script type="text/javascript" src="resize.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(initResizable);
  18. $(window).load(resizeHeight);
  19. </script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/search.js"></script>
  22. <script type="text/javascript">
  23. $(document).ready(function() { searchBox.OnSelectItem(0); });
  24. </script>
  25. </head>
  26. <body>
  27. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  28. <div id="titlearea">
  29. <table cellspacing="0" cellpadding="0">
  30. <tbody>
  31. <tr style="height: 46px;">
  32. <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td>
  33. <td style="padding-left: 0.5em;">
  34. <div id="projectname">CMSIS-DAP
  35. &#160;<span id="projectnumber">Version 1.2.0 (Proposal)</span>
  36. </div>
  37. <div id="projectbrief">Interface Firmware for CoreSight Debug Access Port</div>
  38. </td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. <!-- end header part -->
  44. <div id="CMSISnav" class="tabs1">
  45. <ul class="tablist">
  46. <script type="text/javascript">
  47. <!--
  48. writeComponentTabs.call(this);
  49. //-->
  50. </script>
  51. </ul>
  52. </div>
  53. <!-- Generated by Doxygen 1.8.6 -->
  54. <script type="text/javascript">
  55. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  56. </script>
  57. <div id="navrow1" class="tabs">
  58. <ul class="tablist">
  59. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  60. <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li>
  61. <li><a href="modules.html"><span>Reference</span></a></li>
  62. <li>
  63. <div id="MSearchBox" class="MSearchBoxInactive">
  64. <span class="left">
  65. <img id="MSearchSelect" src="search/mag_sel.png"
  66. onmouseover="return searchBox.OnSearchSelectShow()"
  67. onmouseout="return searchBox.OnSearchSelectHide()"
  68. alt=""/>
  69. <input type="text" id="MSearchField" value="Search" accesskey="S"
  70. onfocus="searchBox.OnSearchFieldFocus(true)"
  71. onblur="searchBox.OnSearchFieldFocus(false)"
  72. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  73. </span><span class="right">
  74. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  75. </span>
  76. </div>
  77. </li>
  78. </ul>
  79. </div>
  80. </div><!-- top -->
  81. <div id="side-nav" class="ui-resizable side-nav-resizable">
  82. <div id="nav-tree">
  83. <div id="nav-tree-contents">
  84. <div id="nav-sync" class="sync"></div>
  85. </div>
  86. </div>
  87. <div id="splitbar" style="-moz-user-select:none;"
  88. class="ui-resizable-handle">
  89. </div>
  90. </div>
  91. <script type="text/javascript">
  92. $(document).ready(function(){initNavTree('group__DAP__TI__TransferBlock.html','');});
  93. </script>
  94. <div id="doc-content">
  95. <!-- window showing the filter options -->
  96. <div id="MSearchSelectWindow"
  97. onmouseover="return searchBox.OnSearchSelectShow()"
  98. onmouseout="return searchBox.OnSearchSelectHide()"
  99. onkeydown="return searchBox.OnSearchSelectKey(event)">
  100. <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>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Pages</a></div>
  101. <!-- iframe showing the search results (closed by default) -->
  102. <div id="MSearchResultsWindow">
  103. <iframe src="javascript:void(0)" frameborder="0"
  104. name="MSearchResults" id="MSearchResults">
  105. </iframe>
  106. </div>
  107. <div class="header">
  108. <div class="headertitle">
  109. <div class="title">DAP_TI_TransferBlock<div class="ingroups"><a class="el" href="group__DAP__TestInput__gr.html">Test Input Commands</a></div></div> </div>
  110. </div><!--header-->
  111. <div class="contents">
  112. <p>Transfer the data that are recorded for various Test Input channels.
  113. <a href="#details">More...</a></p>
  114. <p>Transfer the data that are recorded for various Test Input channels. </p>
  115. <p>The <b>DAP_TI_TransferBlock Command</b> initiates the data transfer of a single trace data block of the recorded trace data. The command delivers the content of one trace data block in the Trace Data Management system.</p>
  116. <p><b>DAP_TI_TransferBlock Request:</b> </p>
  117. <div class="fragment"><div class="line">| BYTE | BYTE *******|</div>
  118. <div class="line">&gt; 0x20 | DataRequest |</div>
  119. <div class="line">|******|*************|</div>
  120. </div><!-- fragment --><ul>
  121. <li><b>DataRequest:</b> specifies the requested data from the Trace Data Management system.<ul>
  122. <li><b>bit 0</b>: 1 = deliver one trace data block from any full trace data block (this includes SWO).</li>
  123. <li><b>bit 1</b>: 1 = deliver one trace data block from SWO channel (even when partially filled).</li>
  124. <li><b>bit 2</b>: 1 = deliver one trace data block from any partially filled trace data block (this includes SWO).</li>
  125. </ul>
  126. </li>
  127. </ul>
  128. <p><b>DAP_TI_TransferBlock Response:</b> </p>
  129. <div class="fragment"><div class="line">| BYTE | BYTE ***| SHORT ****| WORD ********|+++++++++++++|</div>
  130. <div class="line">&lt; 0x20 | Channel | DataParms | TD_TimeStamp | ChannelData |</div>
  131. <div class="line">|******|*********|<span class="comment">///////////|//////////////|+++++++++++++|</span></div>
  132. </div><!-- fragment --><ul>
  133. <li><b>Channel:</b> <ul>
  134. <li><b>bit 0..3</b>: number of the channel that the data belong to.</li>
  135. <li><b>bit 4</b>: SWO record indicator: 1 = data belong to SWO data recording.</li>
  136. <li><b>bit 6</b>: First record indicator: 1 = DataParms and TimeStamp is transferred. 0 = Only ChannelData.</li>
  137. <li><b>bit 7</b>: No data indicator: 1 = No ChannelData available for this request. 0 = ChannelData are available.</li>
  138. </ul>
  139. </li>
  140. <li><b>DataParms:</b> parameters for ChannelData.<ul>
  141. <li><b>bit 0..12</b>: number of data values in <b>ChannelData</b>. <a class="el" href="group__DAP__TI__TransferBlock.html">DAP_TI_TransferBlock</a> Response is repeated until all values are transmitted.</li>
  142. <li><b>bit 14</b>: 1 = difference value format. 0 = contiguous value format.</li>
  143. <li><b>bit 15</b>: 1 = Trace Data Management overflow since last <a class="el" href="group__DAP__TI__TransferBlock.html">DAP_TI_TransferBlock</a> Request. 0 = no overflow.</li>
  144. </ul>
  145. </li>
  146. <li><b>TD_TimeStamp:</b> Test Domain Timer value at the read time of data values for ChannelData.</li>
  147. <li><b>ChannelData:</b> data values from the recorded Test Input channel.</li>
  148. </ul>
  149. <p>The <b>ChannelData</b> reply has depending on <b>DataParms bit 14</b> two different formats. If <b>ChannelDiff</b> in <b>DAP_TI_Capture Request</b> is set for the specific channel, the Debug Unit may decide the data format depending on the trace data values.</p>
  150. <p><b>Contiguous Value Format</b> transmits sequentially all data values stored in the trace data buffer. When <b>DataParms bit 14 = 0 </b> the <b>ChannelData</b> has the following format: </p>
  151. <div class="fragment"><div class="line">|************|************|************|......</div>
  152. <div class="line">| TraceValue | TraceValue | TraceValue |</div>
  153. <div class="line">|************|************|************|......</div>
  154. </div><!-- fragment --><p>The size of <b>TraceValue</b> depends on the data size for the channel (see <a class="el" href="group__DAP__TI__Info.html">DAP_TI_Info</a> Response, Attributes bit 0..2). <a class="el" href="group__DAP__TI__TransferBlock.html">DAP_TI_TransferBlock</a> Response is repeated until the number of <b>TraceValues</b> specified by <b>DataParms bit 0 .. 12</b> is transmitted.</p>
  155. <p><b>Difference Value Format</b> transmits data values only when there is a significant difference. When <b>DataParms bit 14 = 1 </b> the <b>ChannelData</b> has the following format: </p>
  156. <div class="fragment"><div class="line">|*************| SHORT *****|*************|......</div>
  157. <div class="line">| TraceValue0 | ValueIndex | TraceValueI |</div>
  158. <div class="line">|*************|<span class="comment">////////////|/////////////|......</span></div>
  159. </div><!-- fragment --><ul>
  160. <li><b>TraceValue0:</b> is the first data value on the trace data buffer</li>
  161. <li><b>ValueIndex:</b> information about the next data value in TraceValueI.<ul>
  162. <li><b>bit 0..12</b>: <b>index</b> in trace data buffer of next data value with significant difference.</li>
  163. <li><b>bit 15</b>: 1 = last trace value of trace data buffer send by <a class="el" href="group__DAP__TI__TransferBlock.html">DAP_TI_TransferBlock</a> Response.</li>
  164. </ul>
  165. </li>
  166. <li><b>TraceValueI:</b> is the trace data value in in trace data buffer referenced by <b>index</b>.</li>
  167. </ul>
  168. <p>The size of <b>TraceValue0</b> and <b>TraceValueI</b> depends on the data size for the channel (see <a class="el" href="group__DAP__TI__Info.html">DAP_TI_Info</a> Response, Attributes bit 0..2). <a class="el" href="group__DAP__TI__TransferBlock.html">DAP_TI_TransferBlock</a> Response is repeated until <b>ValueIndex</b> with <b>bit 15 = 1</b> is transmitted.</p>
  169. <dl class="section note"><dt>Note</dt><dd>When all data values in the trace buffer are identical, <b>ValueIndex</b> is set to number of data values with bit 15 set to 1. </dd></dl>
  170. </div><!-- contents -->
  171. </div><!-- doc-content -->
  172. <!-- start footer part -->
  173. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  174. <ul>
  175. <li class="footer">Generated on Thu Nov 16 2017 17:06:00 for CMSIS-DAP by ARM Ltd. All rights reserved.
  176. <!--
  177. <a href="http://www.doxygen.org/index.html">
  178. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6
  179. -->
  180. </li>
  181. </ul>
  182. </div>
  183. </body>
  184. </html>