📄 c-start4.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> Getting Started </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-start.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-start.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-start3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-starta5.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="90306">2.4 WindView Optional Product</a></i></h3></font><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="86106">2.4.1 Installing WindView</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="83767"> </a>The WindView optional product is an extension to the Tornado cross-development environment. You must have Tornado installed in order to install WindView. If you are installing Tornado for the first time when you install WindView, you will only have to run <b class="symbol_UC">SETUP</b> once. If you already have Tornado 2.0 installed, run <b class="symbol_UC">SETUP</b> with your WindView installation key to install WindView. For detailed information on running <b class="symbol_UC">SETUP</b>, see <i class="title">Tornado Getting Started</i>.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="93534"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE: </font></b></a>In the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Choose Destination Location</font></b> dialog box, be sure to specify a directory where you have already installed Tornado.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="86067">2.4.2 Configuring VxWorks</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86144"> </a>When you install WindView, the default configuration does almost everything necessary for you to begin collecting and analyzing data immediately. The only other step you need to take, in addition to installing WindView, is to reconfigure and build VxWorks to include the WindView libraries. When you start your target and start WindView, WindView collects data on how your real-time system is running and uploads it to your development host.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="86068">WindView Libraries</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="87789"> </a>For information on configuring WindView libraries into VxWorks, see <i class="title">Tornado User's Guide: Projects</i>. The configuration macro for WindView is <b class="symbol_UC">INCLUDE_WINDVIEW</b>.<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="86087">Timestamp Driver</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="88469"> </a>When you install and run WindView, the instrumented kernel tags certain events with either high-resolution timestamps or with sequence numbers; for background information, see <a href="c-datacol6.html#88260"><i class="title">7.6 Timestamping</i></a>. Any BSP provided by Wind River Systems that provides a <i class="term">timestamp driver</i> is listed in the WindView 2.0 Release Notes. The configuration macro for the timestamp driver is <b class="symbol_UC">INCLUDE_TIMESTAMP</b>.</p><dd><p class="Body"><a name="87767"> </a>The drivers are in the directory <i class="textVariable">installDir</i><b class="file">/target/src/drv/timer</b>; the corresponding header files are in <i class="textVariable">installDir</i><b class="file">/target/h/drv/timer</b>. </p><dd><p class="Body"><a name="86102"> </a>On supported targets with limited hardware resources, the system clock, the auxiliary clock, or both may be taken over by WindView when the timestamp driver is enabled. In this case, these clocks are not available for system or application use. For example, the Motorola MVME147 timestamp driver uses the auxiliary clock; thus, that clock is not available for other uses.</p><dd><p class="Body"><a name="86103"> </a>If you are using a board that does not have a timestamp driver or if you do not enable the driver with <b class="symbol_UC">INCLUDE_TIMESTAMP</b>, the BSP is compiled with the sequential event display driver rather than the timestamp driver.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="86105">Upload Path</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="87799"> </a>In order to upload your data from the target to the host, you must provide an upload path. The following options are available:<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93575"> </a><b class="symbol_UC">INCLUDE_WVUPLOAD_FILE </b></p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93577"> </a>upload to a file (includes TSFS files) </p></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93579"> </a><b class="symbol_UC">INCLUDE_WVUPLOAD_SOCK </b></p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93581"> </a>upload through a socket </p></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93583"> </a><b class="symbol_UC">INCLUDE_WVUPLOAD_TSFSSOCK </b></p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93585"> </a>upload through a TSFS socket </p></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93587"> </a><b class="symbol_UC">INCLUDE_WVUPLOAD_ALL </b></p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93589"> </a>include all available upload paths </p></td><td width="10"> </td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="95191"> </a>If no upload path is selected, but <b class="symbol_UC">INCLUDE_WINDVIEW</b> is selected, then <b class="symbol_UC">INCLUDE_WVUPLOAD_FILE</b> and <b class="symbol_UC">INCLUDE_WVUPLOAD_TSFSSOCK</b> are defined automatically. </p><dd><p class="Body"><a name="92579"> </a>To upload WindView data to a file, you must have a file system defined. To upload to the WindView view graph, you must define a socket facility. The easiest way to include these facilities is to configure the Target Server File System (TSFS), which supports upload to both files and sockets. For detailed information on TSFS, see the <i class="title">VxWorks Programmer's Guide: Local File Systems</i>. </p><dd><p class="Body"><a name="92562"> </a>To configure TSFS into your system for use with either upload option, the following options are available:<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93628"> </a><b class="symbol_UC">INCLUDE_WDB_TSFS </b></p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93630"> </a>include the TSFS file system </p></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93632"> </a><b class="symbol_UC">INCLUDE_WDB </b></p></td><td width="10"> </td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93634"> </a>include the WDB target agent </p></td><td width="10"> </td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="92564"> </a>There is no automatic dependency checking between <b class="symbol_UC">INCLUDE_WDB_TSFS</b> and <b class="symbol_UC">INCLUDE_WDB</b>, but WDB must be included for TSFS to work. The WDB agent is included in the default VxWorks configuration (see the project facility), but you should confirm that you have not changed that default.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="93658"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE: </font></b></a>If you are running the Tornado tools on a PC host and wish to use TSFS, you must be sure that you have set the environment variable <b class="symbol_UC">WIND_UID</b>. See the <i class="title">VxWorks Programmer's Guide: Local File Systems</i>. </div></td></tr><tr valign="top"><td></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -