diff options
author | Ali Labbene <ali.labbene@st.com> | 2019-12-11 08:59:21 +0100 |
---|---|---|
committer | Ali Labbene <ali.labbene@st.com> | 2019-12-16 16:35:24 +0100 |
commit | 9f95ff5b6ba01db09552b84a0ab79607060a2666 (patch) | |
tree | 8a6e0dda832555c692307869aed49d07ee7facfe /docs/Pack/html/createPackBoard.html | |
parent | 76177aa280494bb36d7a0bcbda1078d4db717020 (diff) | |
download | st-cmsis-core-lowfat-9f95ff5b6ba01db09552b84a0ab79607060a2666.tar.gz st-cmsis-core-lowfat-9f95ff5b6ba01db09552b84a0ab79607060a2666.tar.bz2 st-cmsis-core-lowfat-9f95ff5b6ba01db09552b84a0ab79607060a2666.zip |
Official ARM version: v5.4.0
Add CMSIS V5.4.0, please refer to index.html available under \docs folder.
Note: content of \CMSIS\Core\Include has been copied under \Include to keep the same structure
used in existing projects, and thus avoid projects mass update
Note: the following components have been removed from ARM original delivery (as not used in ST packages)
- CMSIS_EW2018.pdf
- .gitattributes
- .gitignore
- \Device
- \CMSIS
- \CoreValidation
- \DAP
- \Documentation
- \DoxyGen
- \Driver
- \Pack
- \RTOS\CMSIS_RTOS_Tutorial.pdf
- \RTOS\RTX
- \RTOS\Template
- \RTOS2\RTX
- \Utilities
- All ARM/GCC projects files are deleted from \DSP, \RTOS and \RTOS2
Change-Id: Ia026c3f0f0d016627a4fb5a9032852c33d24b4d3
Diffstat (limited to 'docs/Pack/html/createPackBoard.html')
-rw-r--r-- | docs/Pack/html/createPackBoard.html | 256 |
1 files changed, 256 insertions, 0 deletions
diff --git a/docs/Pack/html/createPackBoard.html b/docs/Pack/html/createPackBoard.html new file mode 100644 index 0000000..c3532ae --- /dev/null +++ b/docs/Pack/html/createPackBoard.html @@ -0,0 +1,256 @@ +<!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>Pack with Board Support</title> +<title>CMSIS-Pack: Pack with Board Support</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-Pack +  <span id="projectnumber">Version 1.5.0</span> + </div> + <div id="projectbrief">Delivery Mechanism for Software Packs</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 Page</span></a></li> + <li class="current"><a href="pages.html"><span>Usage and 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('createPackBoard.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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </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">Pack with Board Support </div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><p>A <a class="el" href="cp_SWComponents.html">Software Pack</a> that contains a <a class="el" href="pdsc_boards_pg.html"><board></a> element is called Board Support Pack (BSP). A BSP may contain additional <b>Software Components</b>, <b>Example Projects</b>, as well as <b>Code Templates</b>. The typical content of a BSP is:</p> +<ul> +<li>Source code, libraries, header/configuration files for the underlying hardware and documentation (for example user manuals, getting started guides, and schematics).</li> +<li><a class="el" href="cp_SWComponents.html#cp_Examples">Example Projects</a> that show the usage of the development board and its peripherals.</li> +<li><a class="el" href="cp_SWComponents.html#cp_CodeTemplates">User Code Templates</a> that can be used as a starting point for using the development board or the mounted device.</li> +</ul> +<p>This section is a tutorial that explains how to create a BSP. Initially the PDSC file in the BSP only describes an evaluation board. This BSP is then extended to contain also software components that interface with the hardware of the board. Example projects and code templates may be added as described in the section <a class="el" href="cp_SWComponents.html">Pack with Software Components</a>.</p> +<h2>BSP Use Cases </h2> +<p>A BSP is typically provided by a Board Vendor and is used to <b>extend development tools</b> with support for development boards. In general, the BSP enables Board Vendors to distribute tool independent board support for their development platforms.<br/> +BSPs can also be used to provide information for the display on <b>web sites</b>. One example is the new boards page on <a href="http://www.keil.com/boards2/" class="el" target="_blank">www.keil.com/boards2/</a>:</p> +<div class="image"> +<img src="BoardsSectionMCB1500.png" alt="BoardsSectionMCB1500.png"/> +<div class="caption"> +Board information on a web site extracted from a BSP</div></div> +<h1><a class="anchor" id="cp_SpecDevBoard"></a> +Specify a Development Board</h1> +<p><b>Preparations</b></p> +<ol type="1"> +<li>Install the Software Pack <a href="http://www.keil.com/dd2/arm/armcm3/" class="el" target="_blank">Keil::ARMCortex_DFP</a> as this will be required for the BSP to function properly.</li> +<li>Create a working directory on your PC, for example <b>C:\temp\working_bsp</b>.</li> +<li>Go to the directory <b>\CMSIS\Pack\Tutorials</b> available in the <b>ARM::CMSIS</b> Pack installation. Please consult your development tool's documentation for more information on the Pack installation directory structure. In a standard µVision installation, you will find it below <b>C:\Keil_v5\ARM\Pack\ARM\CMSIS\<em>version</em></b>.</li> +<li>Open the file <b>Pack_with_Board_Support.zip</b>.</li> +<li>Copy the <em>content</em> of the ZIP file's <b>01_Specify_Dev_Board</b> directory into your working directory.</li> +<li>Make sure that files/directories are not write protected (remove read-only flag).</li> +<li>Copy from the directory <b>\CMSIS\Utilities</b> available in the <b>ARM::CMSIS</b> Pack installation the following files into your working directory:<ul> +<li>packChk.exe</li> +<li>PACK.xsd</li> +</ul> +</li> +<li>Open the <b>MyVendor.MyBSP.pdsc</b> file in an editor.</li> +</ol> +<p><b>Code Example</b> </p> +<ol> +<li> +Add a <a class="el" href="pdsc_boards_pg.html#element_boards"><boards></a> section in the PDSC file with the following: <div class="fragment"><div class="line"><boards></div> +<div class="line"> <board vendor=<span class="stringliteral">"MyVendor"</span> name=<span class="stringliteral">"MyDevBoard"</span> revision=<span class="stringliteral">"V1"</span> salesContact=<span class="stringliteral">"sales@keil.com"</span> orderForm=<span class="stringliteral">"http://www.keil.com"</span>></div> +<div class="line"> <description>MyVendor MyDevBoard Board Description</description></div> +<div class="line"> <image small=<span class="stringliteral">"Images/MyDevBoard_small.png"</span> large=<span class="stringliteral">"Images/MyDevBoard_large.png"</span>/></div> +<div class="line"> <book category=<span class="stringliteral">"setup"</span> name=<span class="stringliteral">"Docs/MyDevBoard/MyDevBoard_setup.pdf"</span> title=<span class="stringliteral">"Getting Started"</span>/></div> +<div class="line"> <book category=<span class="stringliteral">"schematic"</span> name=<span class="stringliteral">"Docs/MyDevBoard/MyDevBoard_schematics.pdf"</span> title=<span class="stringliteral">"Schematics"</span>/></div> +<div class="line"> <book category=<span class="stringliteral">"manual"</span> name=<span class="stringliteral">"Docs/MyDevBoard/MyDevBoard_um.pdf"</span> title=<span class="stringliteral">"User Manual"</span>/></div> +<div class="line"> <mountedDevice deviceIndex=<span class="stringliteral">"0"</span> Dvendor=<span class="stringliteral">"ARM:82"</span> Dname=<span class="stringliteral">"ARMCM3"</span>/></div> +<div class="line"> <compatibleDevice deviceIndex=<span class="stringliteral">"0"</span> Dvendor=<span class="stringliteral">"ARM:82"</span> Dfamily=<span class="stringliteral">"ARM Cortex M3"</span>/></div> +<div class="line"> <feature type=<span class="stringliteral">"ODbg"</span> n=<span class="stringliteral">"1"</span> name=<span class="stringliteral">"On-board J-LINK Lite"</span>/></div> +<div class="line"> <feature type=<span class="stringliteral">"PWR"</span> n=<span class="stringliteral">"5"</span> name=<span class="stringliteral">"USB Powered"</span>/></div> +<div class="line"> <feature type=<span class="stringliteral">"DIO"</span> n=<span class="stringliteral">"8"</span>/></div> +<div class="line"> <feature type=<span class="stringliteral">"SPI"</span> n=<span class="stringliteral">"1"</span>/></div> +<div class="line"> <feature type=<span class="stringliteral">"LED"</span> n=<span class="stringliteral">"6"</span> name=<span class="stringliteral">"User LEDs"</span>/></div> +<div class="line"> <feature type=<span class="stringliteral">"ArduinoFF"</span> n=<span class="stringliteral">"1"</span>/></div> +<div class="line"> <debugInterface adapter=<span class="stringliteral">"J-Link Lite"</span> connector=<span class="stringliteral">"Mini-USB"</span>/></div> +<div class="line"> </board></div> +<div class="line"></boards></div> +</div><!-- fragment --> <dl class="section note"><dt>Note</dt><dd>All code examples in this and the following sections can be found in the <code>snippets.xml</code> file in the <b>01_Specify_Dev_Board</b> directory. </dd></dl> +</li> +<li> +<p class="startli">Finally, save the PDSC file and generate the Pack file using the <b>gen_pack.bat</b> script. See <a class="el" href="cp_SWComponents.html#cp_GeneratePack">Generate a Pack</a> for further details. Afterwards, install the Pack in your development tool.</p> +<div class="image"> +<img src="DevBoardDisplay.png" alt="DevBoardDisplay.png"/> +<div class="caption"> +Display of development boards in development tools</div></div> + </li> +</ol> +<dl class="section note"><dt>Note</dt><dd>packChk.exe will display <b>M346</b> informations: <pre class="fragment">*** WARNING M346: .\Files\MyVendor.MyBSP.pdsc (Line 29) + Referenced device(s) in 'MyDevBoard' not found: 'ARMCM3' + +*** WARNING M346: .\Files\MyVendor.MyBSP.pdsc (Line 29) + Referenced device(s) in 'MyDevBoard' not found: 'ARM Cortex M3' +</pre> This is because this BSP does not contain a device section with the mentioned devices. To work aroung this problem, you might add the ARM:CMSIS PDSC file to the checking process.</dd></dl> +<h1><a class="anchor" id="cp_BundleExample"></a> +Create a BSP Bundle</h1> +<p>A bundle is basically a variant on the <code>Cclass</code> level. It specifies the attributes <code>Cclass</code>, <code>Cversion</code> and optionally <code>Cgroup</code> and <code>Cvendor</code> for a collection of interdependent components. Components within a bundle inherit the attributes set by the bundle and must not set these attributes again. Bundles ensure consistency of attributes across multiple interworking components and restrict the mix and match of components within a <code>Cclass</code> from different solutions. In addition to components, a bundle has the mandatory elements <code>description</code> and <code>doc</code> (for documentation).</p> +<p>Copy the <em>content</em> of the <b>02_BSP_Bundle</b> directory of the <b>Pack_with_Board_Support.zip</b> file to the <b>Files</b> directory in your working environment: </p> +<ol> +<li> +Add a <code><conditions></code> section in your PDSC with the following (the <a class="el" href="cp_SWComponents.html#cp_Conditions">conditions</a> section provides more information on this step): <div class="fragment"><div class="line"><condition <span class="keywordtype">id</span>=<span class="stringliteral">"ARM Cortex M3 Series"</span>></div> +<div class="line"> <description>ARM Cortex M3 device required</description></div> +<div class="line"> <require Dfamily=<span class="stringliteral">"ARM Cortex M3"</span> Dvendor=<span class="stringliteral">"ARM:82"</span>/></div> +<div class="line"></condition></div> +<div class="line"><condition <span class="keywordtype">id</span>=<span class="stringliteral">"MyDevBoard Board Setup"</span>></div> +<div class="line"> <description>Board Setup Code required</description></div> +<div class="line"> <require condition=<span class="stringliteral">"ARM Cortex M3 Series"</span>/></div> +<div class="line"> <require Cclass=<span class="stringliteral">"Board Support"</span> Cgroup=<span class="stringliteral">"Board Setup"</span>/></div> +<div class="line"></condition></div> +</div><!-- fragment --> </li> +<li> +Add a <code><components></code> section in your PDSC with the following (the <a class="el" href="cp_SWComponents.html#cp_Components">components</a> section provides more information on this step): <div class="fragment"><div class="line"><bundle Cbundle=<span class="stringliteral">"MyDevBoardSupport"</span> Cclass=<span class="stringliteral">"Board Support"</span> Cversion=<span class="stringliteral">"1.0.1"</span>></div> +<div class="line"> <description>MyDevBoard custom board support package</description></div> +<div class="line"> <doc>Docs/BSP/MyBSP.htm</doc></div> +<div class="line"> <component Cgroup=<span class="stringliteral">"Board Setup"</span> condition=<span class="stringliteral">"ARM Cortex M3 Series"</span>></div> +<div class="line"> <description>Custom board setup code</description></div> +<div class="line"> <files></div> +<div class="line"> <file category=<span class="stringliteral">"doc"</span> name=<span class="stringliteral">"Docs/BSP/Setup.htm"</span>/></div> +<div class="line"> <file category=<span class="stringliteral">"header"</span> name=<span class="stringliteral">"MySWComp/Include/setup.h"</span>/></div> +<div class="line"> <file category=<span class="stringliteral">"source"</span> name=<span class="stringliteral">"MySWComp/Source/setup.c"</span>/></div> +<div class="line"> </files></div> +<div class="line"> </component></div> +<div class="line"> <component Cgroup=<span class="stringliteral">"I/O"</span> Csub=<span class="stringliteral">"LED"</span> condition=<span class="stringliteral">"MyDevBoard Board Setup"</span>></div> +<div class="line"> <description>LED code <span class="keywordflow">for</span> custom board</description></div> +<div class="line"> <files></div> +<div class="line"> <file category=<span class="stringliteral">"doc"</span> name=<span class="stringliteral">"Docs/BSP/LED.htm"</span>/></div> +<div class="line"> <file category=<span class="stringliteral">"header"</span> name=<span class="stringliteral">"MySWComp/Include/led.h"</span>/></div> +<div class="line"> <file category=<span class="stringliteral">"header"</span> name=<span class="stringliteral">"MySWComp/Include/config_led.h"</span> attr=<span class="stringliteral">"config"</span> version=<span class="stringliteral">"1.0.0"</span>/></div> +<div class="line"> <file category=<span class="stringliteral">"source"</span> name=<span class="stringliteral">"MySWComp/Source/led.c"</span>/></div> +<div class="line"> </files></div> +<div class="line"> </component></div> +<div class="line"> <component Cgroup=<span class="stringliteral">"I/O"</span> Csub=<span class="stringliteral">"GPIO"</span> condition=<span class="stringliteral">"MyDevBoard Board Setup"</span>></div> +<div class="line"> <description>GPIO code <span class="keywordflow">for</span> custom board</description></div> +<div class="line"> <files></div> +<div class="line"> <file category=<span class="stringliteral">"doc"</span> name=<span class="stringliteral">"Docs/BSP/GPIO.htm"</span>/></div> +<div class="line"> <file category=<span class="stringliteral">"header"</span> name=<span class="stringliteral">"MySWComp/Include/gpio.h"</span>/></div> +<div class="line"> <file category=<span class="stringliteral">"header"</span> name=<span class="stringliteral">"MySWComp/Include/config_gpio.h"</span> attr=<span class="stringliteral">"config"</span> version=<span class="stringliteral">"1.0.0"</span>/></div> +<div class="line"> <file category=<span class="stringliteral">"source"</span> name=<span class="stringliteral">"MySWComp/Source/gpio.c"</span>/></div> +<div class="line"> </files></div> +<div class="line"> </component></div> +<div class="line"></bundle></div> +</div><!-- fragment --> </li> +<li> +Add a new version number: <div class="fragment"><div class="line"><release version=<span class="stringliteral">"1.0.1"</span>></div> +<div class="line"> Board support bundle added</div> +<div class="line"></release></div> +</div><!-- fragment --> </li> +<li> +<p class="startli">Finally, save the PDSC file and regenerate the Pack file using the <a class="el" href="cp_SWComponents.html#cp_GeneratePack">gen_pack.bat</a> script. Afterwards, install the Pack in your development tool and observe the differences to version 1.0.0.</p> +<div class="image"> +<img src="BSPBundleDisplay.png" alt="BSPBundleDisplay.png"/> +<div class="caption"> +BSP bundle display in development tools</div></div> + </li> +</ol> +</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 Aug 1 2018 17:12:42 for CMSIS-Pack 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> |