📄 c-vxsim.html
字号:
</td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90458"></a>inet on ethernet (e) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90460"></a>Do not change.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90462"></a>inet on backplane (b) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90464"></a>Do not change.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90466"></a>host inet (h) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90468"></a>Do not change.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90470"></a>gateway inet (g) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90472"></a>Do not change.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90474"></a>user (u) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90476"></a>Do not change.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90478"></a>ftp password (pw) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90480"></a>Refer to description of boot parameters (1)<sup><b class="FootnoteMarker">1</b></sup> </div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90482"></a>flags (f) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90484"></a>Refer to description of boot parameters (1)<a href="c-vxsim.html#90889"><sup>*</sup></a> </div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90486"></a>target name (tn) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90488"></a>Refer to description of boot parameters (1)<a href="c-vxsim.html#90889"><sup>*</sup></a> </div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90490"></a>startup script (s) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90492"></a>Refer to description of boot parameters (1)<a href="c-vxsim.html#90889"><sup>*</sup></a> </div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90494"></a>other (o) </div></td><td colspan=1 rowspan=1><div align="left"><a name="90496"></a>Refer to description of boot parameters (1)<a href="c-vxsim.html#90889"><sup>*</sup></a> </div></td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"><span class="TableFootnote"><a name="90889"></a><p class="FootnoteNumberMarker">1: <span class="TableFootnote"><a name="90889"></a>See <a href="c-start.html#84962"><i class="title">2.5.4 Description of Boot Parameters</i></a>.</span></p></span></p></td></tr></table></dl></dl></p><dl class="margin"><dl class="margin"></p></dl></dl><dl class="margin"><dd><p class="table"><table border="0" cellpadding="2" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1></td><td><hr></td></tr><tr valign="top"><td><img border="0" alt="*" src="icons/warning.gif"> </td><td colspan=1 rowspan=1><div class="CalloutCell"><a name="90519"></a><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING: </font></b>The Windows simulator does not simulate non-volatile RAM (NVRAM), so boot parameter modifications are lost on subsequent reboots. </div></td></tr><tr valign="top"><td colspan=1 rowspan=1></td><td colspan=1 rowspan=1><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="90375"></a>Rebooting VxSim</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85850"></a>As with other targets, you can reboot VxSim by typing <b class="symbol_UC">CTRL+X</b> in the VxSim window. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85849"></a>Exiting VxSim</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85827"></a>Exit VxSim by closing the VxSim window.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="88020"></a>Back End</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="88021"></a>The integrated simulator uses the pipe back end (<b class="symbol_UC">INCLUDE_WDB_COMM_PIPE</b>), which is configured by default, to communicate with the target session. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84424"></a>System-Mode Debugging </i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="91006"></a>System-mode debugging allows developers to suspend the entire VxWorks operating system.<sup><a href="#foot"><b class="FootnoteMarker">1</b></a></sup> One notable application of system mode is to debug ISRs, which--because they run outside any task context--are not visible to debugging tools in the default task mode. For more discussion of system mode, see the chapters <a href="c-shell.html#103164"><i class="title">7. Shell</i></a> and <a href="c-debugger.html#83918"><i class="title">10. Debugger</i></a>.</p><dd><p class="Body"><a name="91016"></a>The Windows integrated simulator is configured by default for system mode debugging.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84430"></a>Symbols</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="88796"></a>Particular care must be taken when using absolute symbols from loaded object modules in the simulators. The VxWorks simulators execute within the memory space of a host operating system. Their actual execution address space is more constrained than is the case for the real VxWorks operating system. Absolute references to addresses must be carefully chosen in order to point to memory areas actually existing and allocated to the simulator. The values of absolute symbols defined within object modules are not modified by the loader so these values (in other words, addresses) must be set correctly by the code developers.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="88795"></a>File Systems</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84431"></a>VxSim can use any VxWorks file system. </p><dd><p class="Body"><a name="88029"></a>The default file system is the pass-through file system, ntPassFs, which is unique to VxSim. ntPassFs allows direct access to any files on the host. Essentially, the VxWorks functions <b class="routine">open( )</b>, <b class="routine">read( )</b>, <b class="routine">write( )</b>, and <b class="routine">close( )</b> eventually call the host equivalents in the host library <b class="file">libc.a</b>. With ntPassFs, you can open any file available on the host, including NFS-mounted files. By default, the <b class="symbol_UC">INCLUDE_NTPASSFS</b> macro is enabled to cause this file system to be mounted on startup. </p><dd><p class="Body"><a name="84433"></a>In the target shell, a path name should be prefixed by <b class="command">host:</b> to prevent the Windows disk device from interpreting it as a VxWorks device. Moreover, you can use both <b class="command">/</b> and <b class="command">\</b> in the path; be careful when using <b class="command">\</b> in a string as the next character will be interpreted as a special character. For example, all these usages yield expected results:</p><dl class="margin"><dd><font color="009090"><pre class="Terminal2"><a name="88836"></a>-> <font color="00a000"><b>ld < host:c:/test/testFile.o </b></font>-> <font color="00a000"><b>ld < host:c:\test\testFile.o </b></font> -> <font color="00a000"><b>cd "host:c:/test" </b></font>-> <font color="00a000"><b>cd "host:c:\\test"</b></font></pre></font></dl><dd><p class="Body"><a name="88843"></a>However, the following does not work:</p><dl class="margin"><dd><font color="009090"><pre class="Terminal2"><a name="90552"></a>-> <font color="00a000"><b>cd "host:c:\test"</b></font></pre></font></dl><dd><p class="Body"><a name="90553"></a>In WindSh, do not use the <b class="command">host: </b>prefix in the path name.</p><dd><p class="Body"><a name="88844"></a>For more information on ntPassFs, see the reference entry for <b class="library">ntPassFsLib</b>. For more information on other VxWorks file systems, see the <i class="title">VxWorks Programmer's Guide: Local File Systems</i>. </p></dl></dl><br class="H2"><a name="84437"></a><br class="H2navbar"><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i>6.3 Building Applications</i></h3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -