⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c-builder6.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Projects   </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="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-builder.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-builder5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-buildera7.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="99096">4.6  &nbsp;&nbsp;Configuring the Target-Host Communication Interface</a></i></h3></font><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/warning.gif"></td><td><hr><div class="CalloutCell"><a name="102550"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b></a>During development you must configure VxWorks with the target agent communication interface required for the connection between your host and target system (network, serial, NetROM, an so on). By default, VxWorks is configured for a network connection. Also note that before you use Tornado tools such as the shell and debugger, you must start a target server that is configured for the same mode of communication. See <a href="c-start4.html#90094"><i class="title">2.4&nbsp;Host-Target Communication Configuration</i></a>; and <a href="c-tools2.html#84049"><i class="title">5.2&nbsp;Configuring and Starting a Target Server</i></a>.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="99113"> </a>To display the options for the communication interface for the target agent in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks</font></b> view, select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">development tool components</font></b>&gt;<b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">WDB agent components</font></b>&gt;<b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">select WDB connection </font></b>(<a href="c-builder6.html#99120">Figure&nbsp;4-44</a>). <div class="frame"><h4 class="EntityTitle"><a name="99120"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-44:&nbsp;&nbsp;Target Agent Connection Options</font></a></h4><dl class="margin"><div class="CellBody"><a name="99125"> </a><img class="figure" border="0" src="images/c-builder23.gif"></div></dl></div></p><dd><p class="Body"><a name="99126"> </a>To select an interface, select it from the list and select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Include '</font></b><i class="textVariable">component name</i><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">' </font></b>option from the context menu. (You can also make a selection by double clicking on the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">select WDB connection</font></b> option to display the property sheet, and then making the selection from the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Components</font></b> page.)</p><dd><p class="Body"><a name="99596"> </a>To display general information about a component, or to change its parameters, simply double-click on its name, which displays its property sheet (see <a href="c-builder6.html#99160">Figure&nbsp;4-45</a>). The options for the target agent communication interface are described below.</p><dd><p class="Body"><a name="99143"> </a>Also see <a href="c-builder6.html#99241"><i class="title">Scaling the Target Agent</i></a> and <a href="c-builder6.html#101589"><i class="title">Starting the Agent Before the Kernel</i></a>. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="99146">Configuration for an END Driver Connection</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="99147"> </a>When VxWorks is configured with the standard network stack, the target agent can use an END (Enhanced Network driver) connection. Add the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">WDB END driver connection</font></b> component. This connection has the same characteristics as the network connection, but also has a polled network interface that allows system and task mode debugging. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="99148">Configuration for Integrated Target Simulators</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="99149"> </a>To configure a target agent for an image that will run with the VxWorks target simulator, add the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">WDB simulator pipe connection</font></b> component. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="99151">Configuration for NetROM Connection</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="99152"> </a>To configure the target agent to use a NetROM communication path, add the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">WDB netROM connection</font></b> component. (See <a href="c-start4.html#90342"><i class="title">2.4.4&nbsp;The NetROM ROM-Emulator Connection</i></a>). </p><dd><p class="Body"><a name="99156"> </a>Several configuration macros are used to describe a board's memory interface to its ROM banks. You may need to override some of the default values for your board. To do this, display the component property sheet, and select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params</font></b> tab to display and modify macro values. <div class="frame"><h4 class="EntityTitle"><a name="99160"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-45:&nbsp;&nbsp;NetROM Connection Macros</font></a></h4><dl class="margin"><div class="CellBody"><a name="99165"> </a><img class="figure" border="0" src="images/c-builder27.gif"></div></dl></div></p></dl><dl class="margin"><dd><div class="Item"><a name="99167"> </a><b class="symbol_UC">WDB_NETROM_MTU </b></div><dl class="margin"><dd><div class="Indent"><a name="99168"> </a>The default is 1500 octets. </div><br></dl><dd><div class="Item"><a name="99170"> </a><b class="symbol_UC">WDB_NETROM_INDEX </b></div><dl class="margin"><dd><div class="Indent"><a name="99171"> </a>The value 0 indicates that pod zero is at byte number 0 within a ROM word. </div><br></dl><dd><div class="Item"><a name="99173"> </a><b class="symbol_UC">WDB_NETROM_NUM_ACCESS</b> </div><dl class="margin"><dd><div class="Indent"><a name="99174"> </a>The value 1 indicates that pod zero is accessed only once when a word of memory is read. </div><br></dl><dd><div class="Item"><a name="99176"> </a><b class="symbol_UC">WDB_NETROM_POLL_DELAY</b> </div><dl class="margin"><dd><div class="Indent"><a name="99177"> </a>The value 2 specifies that the NetROM is polled every two VxWorks clock ticks to see if data has arrived from the host.</div><br></dl><dd><div class="Item"><a name="99179"> </a><b class="symbol_UC">WDB_NETROM_ROMSIZE</b> </div><dl class="margin"><dd><div class="Indent"><a name="99180"> </a>The default value is <b class="symbol_UC">ROM_SIZE</b>, a makefile macro that can be set for a specific build. See <a href="c-builder5.html#93401"><i class="title">Makefile Macros</i></a>.</div><br></dl><dd><div class="Item"><a name="99185"> </a><b class="symbol_UC">WDB_NETROM_TYPE</b> </div><dl class="margin"><dd><div class="Indent"><a name="99186"> </a>The default value of 400 specifies the old 400 series.</div><br></dl><dd><div class="Item"><a name="99188"> </a><b class="symbol_UC">WDB_NETROM_WIDTH </b></div><dl class="margin"><dd><div class="Indent"><a name="99189"> </a>The value 1 indicates that the ROMs support 8-bit access. To change this to 16- or 32-bit access, specify the value 2 or 4, respectively.</div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="99190"> </a>The size of the NetROM dual-port RAM is 2 KB. The NetROM permits this 2 KB buffer to be assigned anywhere in the pod 0 memory space. The default position for the NetROM dual-port RAM is at the end of the pod 0 memory space. The following line in <b class="file">c:\tornado\target\src\config\usrWdb.c</b> specifies the offset of dual-port RAM from the start of the ROM address space.</p><dl class="margin"><dd><pre class="Code2"><b><a name="99191">dpOffset = (WDB_ROM_SIZE - DUALPORT_SIZE) * WDB_NETROM_WIDTH;</a></b></pre></dl><dd><p class="Body"><a name="99192"> </a>If your board has more than one ROM socket, this calculation gives the wrong result, because the VxWorks macro <b class="symbol_lc">ROM_SIZE</b> describes the total size of the ROM space--not the size of a single ROM socket. In that situation, you must adjust this calculation. </p><dd><p class="Body"><a name="99193"> </a>Refer to the NetROM documentation for more information on the features governed by these parameters.</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/warning.gif"></td><td><hr><div class="CalloutCell"><a name="102580"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b></a>On Intel i960 processors, the IMI (Initial Memory Image) file is located at the top of the ROM, and this memory space cannot be used for communication between the target server and the target agent (netrom dual-port RAM). <b class="symbol_UC">WDB_NETROM_ROMSIZE</b> must be assigned the value <b class="symbol_UC">WDB_NETROM_ROM_SIZE   ROM_SIZE</b> <b class="symbol_lc">- 0x1000</b>. The dualport RAM base address in the NetROM must also be modified to reflect this change. For example, for a 27020 EPROM, <i class="textVariable">dprbase</i> should be set to 0x3e800 (rather than the default 0x3f800).</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="H4"><i><a name="99205">Configuration for Network Connection</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="99206"> </a>To configure the target agent for use with a network connection, add the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">WDB network connection</font></b> component. (See <a href="c-start4.html#90237"><i class="title">2.4.1&nbsp;Network Connections</i></a>). </p><dd><p class="Body"><a name="99210"> </a>The default MTU is 1500 octets. To change it, display the component property sheet, select the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params tab</font></b>, select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">WDB_MTU</font></b> item and change the value associated with it (<a href="c-builder6.html#99213">Figure&nbsp;4-46</a>). <div class="frame"><h4 class="EntityTitle"><a name="99213"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 4-46:&nbsp;&nbsp;Network Connection Macro</font></a></h4><dl class="margin"><div class="CellBody"><a name="99218"> </a><img class="figure" border="0" src="images/c-builder32.gif">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -