1 <!-- HTML header for doxygen 1.9.6-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=11"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>CMSIS-Driver: Driver Validation</title>
9 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
12 <link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
13 <link href="extra_search.css" rel="stylesheet" type="text/css"/>
14 <script type="text/javascript" src="jquery.js"></script>
15 <script type="text/javascript" src="dynsections.js"></script>
16 <script type="text/javascript" src="printComponentTabs.js"></script>
17 <script type="text/javascript" src="footer.js"></script>
18 <script type="text/javascript" src="navtree.js"></script>
19 <link href="navtree.css" rel="stylesheet" type="text/css"/>
20 <script type="text/javascript" src="resize.js"></script>
21 <script type="text/javascript" src="navtreedata.js"></script>
22 <script type="text/javascript" src="navtree.js"></script>
23 <link href="search/search.css" rel="stylesheet" type="text/css"/>
24 <script type="text/javascript" src="search/searchdata.js"></script>
25 <script type="text/javascript" src="search/search.js"></script>
26 <script type="text/javascript">
27 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
28 $(document).ready(function() { init_search(); });
31 <script type="text/javascript" src="darkmode_toggle.js"></script>
32 <link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
33 <link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
34 <link href="extra_search.css" rel="stylesheet" type="text/css"/>
35 <link href="version.css" rel="stylesheet" type="text/css" />
36 <script type="text/javascript" src="../../version.js"></script>
39 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
41 <table cellspacing="0" cellpadding="0">
43 <tr style="height: 55px;">
44 <td id="projectlogo" style="padding: 1.5em;"><img alt="Logo" src="cmsis_logo_white_small.png"/></td>
45 <td style="padding-left: 1em; padding-bottom: 1em;padding-top: 1em;">
46 <div id="projectname">CMSIS-Driver
47  <span id="projectnumber"><script type="text/javascript">
49 writeHeader.call(this);
50 writeVersionDropdown.call(this, "CMSIS-Driver");
55 <div id="projectbrief">Peripheral Interface for Middleware and Application Code</div>
57 <td> <div id="MSearchBox" class="MSearchBoxInactive">
59 <span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </span>
60 <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
61 onfocus="searchBox.OnSearchFieldFocus(true)"
62 onblur="searchBox.OnSearchFieldFocus(false)"
63 onkeyup="searchBox.OnSearchFieldChange(event)"/>
64 </span><span class="right">
65 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
69 <!--END !PROJECT_NAME-->
74 <!-- end header part -->
75 <div id="CMSISnav" class="tabs1">
77 <script type="text/javascript">
78 writeComponentTabs.call(this);
82 <!-- Generated by Doxygen 1.9.6 -->
83 <script type="text/javascript">
84 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
85 var searchBox = new SearchBox("searchBox", "search/",'.html');
89 <div id="side-nav" class="ui-resizable side-nav-resizable">
91 <div id="nav-tree-contents">
92 <div id="nav-sync" class="sync"></div>
95 <div id="splitbar" style="-moz-user-select:none;"
96 class="ui-resizable-handle">
99 <script type="text/javascript">
100 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
101 $(document).ready(function(){initNavTree('driverValidation.html',''); initResizable(); });
104 <div id="doc-content">
105 <!-- window showing the filter options -->
106 <div id="MSearchSelectWindow"
107 onmouseover="return searchBox.OnSearchSelectShow()"
108 onmouseout="return searchBox.OnSearchSelectHide()"
109 onkeydown="return searchBox.OnSearchSelectKey(event)">
112 <!-- iframe showing the search results (closed by default) -->
113 <div id="MSearchResultsWindow">
114 <div id="MSearchResults">
117 <div id="SRResults"></div>
118 <div class="SRStatus" id="Loading">Loading...</div>
119 <div class="SRStatus" id="Searching">Searching...</div>
120 <div class="SRStatus" id="NoMatches">No Matches</div>
126 <div><div class="header">
127 <div class="headertitle"><div class="title">Driver Validation </div></div>
129 <div class="contents">
130 <div class="textblock"><p>The <a href="https://www.keil.com/pack/" target="_blank">Software Pack</a> named <b>ARM::CMSIS-Driver_Validation</b> contains the following:</p>
132 <li>Source code of a CMSIS-Driver Validation Suite along with configuration file.</li>
133 <li>Documentation of the CMSIS-Driver Validation Suite.</li>
134 <li>Examples that shows the usage of the CMSIS-Driver Validation Suite on various target platforms.</li>
136 <p>The CMSIS-Driver Validation Suite performs the following tests:</p><ul>
137 <li>Generic Validation of API function calls</li>
138 <li>Validation of Configuration Parameters</li>
139 <li>Validation of Communication with loopback tests</li>
140 <li>Validation of Communication Parameters such as baudrate</li>
141 <li>Validation of Event functions</li>
143 <p>The following CMSIS-Drivers can be tested with the current release:</p><ul>
144 <li><a class="el" href="group__can__interface__gr.html">CAN Interface</a> : with loop back test of communication.</li>
145 <li><a class="el" href="group__eth__interface__gr.html">Ethernet Interface</a> : MAC and PHY with loop back test of communication.</li>
146 <li><a class="el" href="group__i2c__interface__gr.html">I2C Interface</a> : only API and setup; does not test data transfer.</li>
147 <li><a class="el" href="group__mci__interface__gr.html">MCI Interface</a> : only API and setup; does not test data transfer.</li>
148 <li><a class="el" href="group__spi__interface__gr.html">SPI Interface</a> : with loop back test of communication.</li>
149 <li><a class="el" href="group__usart__interface__gr.html">USART Interface</a> : with loop back test of communication.</li>
150 <li><a class="el" href="group__usbd__interface__gr.html">USB Device Interface</a> : only API and setup; does not test data transfer.</li>
151 <li><a class="el" href="group__usbh__interface__gr.html">USB Host Interface</a> : only API and setup; does not test data transfer.</li>
152 <li><a class="el" href="group__wifi__interface__gr.html">WiFi Interface</a> : extensive tests for WiFi Driver.</li>
154 <p>The Driver Validation output can be printed to a console or saved in an XML file, via standard output (usually ITM).</p>
155 <h1><a class="anchor" id="test_output"></a>
156 Sample Test Output</h1>
157 <pre class="fragment">CMSIS-Driver USART Test Report Dec 6 2019 11:44:30
159 TEST 01: USART_GetCapabilities PASSED
160 TEST 02: USART_Initialization PASSED
161 TEST 03: USART_PowerControl
162 DV_USART.c (301): [WARNING] Low power is not supported
164 TEST 04: USART_Config_PolarityPhase PASSED
165 TEST 05: USART_Config_DataBits
166 DV_USART.c (387): [WARNING] Data Bits = 9 are not supported
168 TEST 06: USART_Config_StopBits
169 DV_USART.c (425): [WARNING] Stop Bits = 1.5 are not supported
170 DV_USART.c (429): [WARNING] Stop Bits = 0.5 are not supported
172 TEST 07: USART_Config_Parity PASSED
173 TEST 08: USART_Config_Baudrate PASSED
174 TEST 09: USART_Config_CommonParams PASSED
175 TEST 10: USART_Send PASSED
176 TEST 11: USART_AsynchronousReceive PASSED
177 TEST 12: USART_Loopback_CheckBaudrate PASSED
178 TEST 13: USART_Loopback_Transfer PASSED
179 TEST 14: USART_CheckInvalidInit PASSED
181 Test Summary: 14 Tests, 14 Passed, 0 Failed.
183 </pre><h1><a class="anchor" id="loop_back_setup"></a>
184 Setup for Loop Back Communication</h1>
185 <p>To perform loop back communication tests it is required to connect the input and the output of the peripherals as shown in this table:</p>
186 <table class="markdownTable">
187 <tr class="markdownTableHead">
188 <th class="markdownTableHeadLeft">Peripheral </th><th class="markdownTableHeadLeft">Loop Back Configuration </th></tr>
189 <tr class="markdownTableRowOdd">
190 <td class="markdownTableBodyLeft">Ethernet </td><td class="markdownTableBodyLeft">Connect TX+ (Pin 1) with RX+ (Pin 3), TX- (Pin 2) with RX- (Pin 6) </td></tr>
191 <tr class="markdownTableRowEven">
192 <td class="markdownTableBodyLeft">SPI </td><td class="markdownTableBodyLeft">Connect MISO to MOSI </td></tr>
193 <tr class="markdownTableRowOdd">
194 <td class="markdownTableBodyLeft">USART </td><td class="markdownTableBodyLeft">Connect TX with RX </td></tr>
196 <p>The following picture shows the necessary external loop back connections for the Keil MCBSTM32F400 evaluation board:</p><ul>
197 <li>SPI: PB14 (SPI2_MISO) and PB15 (SPI2_MOSI)</li>
198 <li>USART: PB6 (USART1_TX) and PB7 (USART1_RX)</li>
199 <li>Ethernet: Pin 1 (TX+) and Pin 3 (RX+), Pin 2 (TX-) and Pin 6 (RX-)</li>
202 <img src="image006.png" alt=""/>
203 <div class="caption">
204 Connections for Loop Back Communication Tests on Keil MCBSTM32F400</div></div>
205 </div></div><!-- contents -->
206 </div><!-- PageDoc -->
207 </div><!-- doc-content -->
208 <!-- start footer part -->
209 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
212 <script type="text/javascript">
214 writeFooter.call(this);