📄 main25.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="noindex_htm">
<meta name="LASTUPDATED" content="12/04/03 16:47:07">
<title>5.6 Checking the installation</title>
<STYLE TYPE="text/css">
<!--
span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>
</head>
<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">
<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>
<table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="a_delman.htm"><img src="images/navtoc.gif" width="84" height="23"
border="0" alt="TOC"></a></td>
<td><a href="main24.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"></a></td>
<td><a href="main26.htm"><img src="images/navnext.gif" width="83" height="23"
border="0" alt="NEXT"></a></td>
</tr>
</table>
<p><br clear="all">
</p>
<hr align="left">
<blockquote>
<h2>
<a name="1210664"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">5.6 Checking the installation</font>
</h2><hr>
<p>
<a name="1210665"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">You can check the installation by running the getting started example program. The program may be run on the simulator, so no target hardware is needed.</font>
</p>
<ol type="1">
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li value="1"><a name="1210666"> </a>Change directories to the getting started example directory. For example, for the default installation directory:</font></p>
<dl>
<dt> <a name="1210667"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><font size=2 face=Courier><strong>cd $ST20ROOT/examples/getstart</strong></font></font>
<dt> <a name="1210668"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">This contains several files including <font size=2 face=Courier><strong>hello.c</strong></font> and <font size=2 face=Courier><strong>sti5500.cfg</strong></font>.</font>
</dl>
</ol>
<p>
<a name="1222474"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><em>Note: You may wish to make a copy of the examples directory so that you can change and experiment with the examples, keeping the originals safe.</em></font>
</p>
<ol type="1">
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li value="2"><a name="1210669"> </a>Compile and link:</font></p>
<dl>
<dt> <a name="1210670"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><font size=2 face=Courier><strong>st20cc hello.c -T sti5500.cfg -p link -g</strong></font></font>
<dt> <a name="1210671"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The output file created is called <font size=2 face=Courier><strong>hello.lku</strong></font>. </font>
</dl>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li value="3"><a name="1210672"> </a>To run the program on the simulator, enter the command:</font></p>
<dl>
<dt> <a name="1210673"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><font size=2 face=Courier><strong>st20run -i sti5500.cfg -t eval5500sim hello.lku</strong></font></font>
<dt> <a name="1210674"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The program displays the message:</font>
<dt> <a name="1210675"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><font size=2 face=Courier><strong>Hello World from Osprey</strong></font></font>
</dl>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li value="4"><a name="1210676"> </a>To start the debugger graphical interface, use the command line:</font></p>
<dl>
<dt> <a name="1210677"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><font size=2 face=Courier><strong>st20run -i sti5500.cfg -t eval5500sim hello.lku -g</strong></font></font>
<dt> <a name="1210678"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">This opens the code window. Click on the <font size=2 face=Courier><strong>Go</strong></font> button to run the program. To close down the debugger, click <font size=2 face=Courier><strong>File</strong></font> > <font size=2 face=Courier><strong>Exit</strong></font> > <font size=2 face=Courier><strong>No save</strong></font>.</font>
</dl>
</ol>
</blockquote>
<hr>
<table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><a href="a_delman.htm"><img src="images/navtoc.gif" width="84" height="23"
border="0" alt="TOC"></a></td>
<td><a href="main24.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"></a></td>
<td><a href="main26.htm"><img src="images/navnext.gif" width="83" height="23"
border="0" alt="NEXT"></a></td>
</tr>
</table>
<font size=1 face="Verdana, Arial, Helvetica, sans-serif"> © 2001, 2002, 2003 STMicroelectronics. All Rights Reserved.<br>
ADCS 7257995G</font>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -