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

📄 rom6.htm

📁 ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片机顶盒软件的开发平台,2.0.5版本,国内找不到的.在国外论坛上花了N天才找到!
💻 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="book_html">
<meta name="LASTUPDATED" content="12/04/03 16:05:52">
<title>9.2.3 Building a ROM image  </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 width="331" border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_refman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"> </a></td>
    <td><a href="rom5.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="rom7.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"> </a></td>
    <td><a href="a_refmaa.htm"><img src="images/navidx.gif" width="84" height="23"
    border="0" alt="INDEX"> </a></td>
  </tr>
</table>

<p><br clear="all">
</p>

<hr align="left">

<blockquote>
<h3>
  <a name="1204503"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">9.2.3 	 Building a ROM image</font>
</h3>


<p>
  <a name="1204504"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">A ROM image file is generated with the command:</font>
</p>


<a name="1204505"> </a><font size=2 face=Courier><strong>st20cc example.c led.c watchdog.c -p STi5500MB159 -M example_ram.map g<br>-O0 DENABLE_WATCHDOG -romimage -o example_ram.hex<br></strong></font>



<p>
  <a name="1204507"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The key difference between this command and the command to build an LKU is the <font size=2 face=Courier><strong>romimage</strong></font> option. By default, the <font size=2 face=Courier><strong>romimage</strong></font> option produces hexadecimal format output.</font>
</p>


<p>
  <a name="1208126"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The <font size=2 face=Courier><strong>DENABLE_WATCHDOG</strong></font> option defines the <font size=2 face=Courier><strong>ENABLE_WATCHDOG</strong></font> symbol to <font size=2 face=Courier><strong>example.c</strong></font>, enabling the use of the <font size=2 face=Courier><strong>watchdog_reset</strong></font> function. This is an external command language procedure which can be found in <font size=2 face=Courier><strong>example.cfg</strong></font>.</font>
</p>


<p>
  <a name="1204508"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">All pokes encountered during the link phase are converted to a table in the ROM image executed by the bootstrap code, so as <font size=2 face=Courier><strong>STi5500MB159</strong></font> performs EMI configuration, the ROM image has access to <font size=2 face=Courier><strong>EXTERNAL</strong></font> memory when running. The example output files are generated with the name "<font size=2 face=Courier><strong>example_ram</strong></font>" because they are executed in RAM.</font>
</p>


<p>
  <a name="1204509"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">By default, program code is moved to RAM by the bootstrap. Such code is listed as <font size=2 face=Courier><strong>MVTORAM</strong></font> in the map file. To execute code from ROM, the following command must be included at link time:</font>
</p>


<a name="1204510"> </a><font size=2 face=Courier><strong>place def_code FLASH<br></strong></font>



<p>
  <a name="1204511"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">This can be done by adding <font size=2 face=Courier><strong>T example.cfg</strong></font> to the command line used to create the ROM image, and exchanging the <font size=2 face=Courier><strong>p STi500MB159</strong></font> option with <font size=2 face=Courier><strong>p STi5500MB159_rom</strong></font>.</font>
</p>


<p>
  <a name="1204512"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">A debug information file, <font size=2 face=Courier><strong>example_ram.dbg</strong></font>, is created. A ROM image file named <font size=2 face=Courier><strong>example_ram.hex</strong></font> is created which represents the memory segment <font size=2 face=Courier><strong>FLASH</strong></font>.</font>
</p>


<p>
  <a name="1204513"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Use a flash-burn linked unit (see the <font size=2 face=Courier><strong>examples/flash</strong></font> directory) or a programmer to burn the ROM/FLASH with the ROM image <font size=2 face=Courier><strong>example_ram.hex</strong></font>.</font>
</p>
</blockquote>

<hr>



<table width="331" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_refman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"> </a></td>
    <td><a href="rom5.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="rom7.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"> </a></td>
    <td><a href="a_refmaa.htm"><img src="images/navidx.gif" width="84" height="23"
    border="0" alt="INDEX"> </a></td>
  </tr>
</table>
<font size=1 face="Verdana, Arial, Helvetica, sans-serif">&nbsp; &copy; 2001, 2002, 2003 STMicroelectronics. All Rights Reserved.<br>
&nbsp; ADCS 7250966F</font>
</body>
</html>

⌨️ 快捷键说明

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