📄 index.html
字号:
<html><head>
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>scmRTOS - MSP430 Release</title>
<link rel="icon" href="../../favicon.ico" type="ico">
<link rel="stylesheet" type="text/css" href="../../description.css" media="all"
title="Burly Wood Style">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0"
leftmargin="0" rightmargin="0">
<table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr id="banner" valign="top" height="75px"><td>
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td height="72" width="60"><img src="../../scmrtos.png" hspace="4"></td>
<td><h11><nobr>Single-Chip Microcontroller</nobr></h11><br>
<div id="subtitle"><nobr>Real-Time Operating System</nobr></div></td>
</tr></table>
</td></tr>
<tr><td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td class="menu2"><table align="left" border="0" cellpadding="4" cellspacing="8" class="gridmenu" width="100%">
<colgroup>
<col width="100%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">Releases</th>
</tr>
</thead>
<tbody valign="top">
<tr><td><a class="reference" href="../avr/index.html">AVR</a></td>
</tr>
<tr><td>MSP430</td>
</tr>
<tr><td><a class="reference" href="../bf/index.html">Blackfin</a></td>
</tr>
<tr><td><a class="reference" href="../arm7/index.html">ARM7</a></td>
</tr>
<tr><td><a class="reference" href="../fr/index.html">FR</a></td>
</tr>
<tr><td />
</tr>
<tr><td><a class="reference" href="../../ports/index.html">Ports</a></td>
</tr>
</tbody>
</table></td>
<td id="main">
<div id="breadcrumbs"><a href="../../index.html">Main page</a> > <a href="../index.html">Releases</a> > MSP430</div>
<div id="text">
<h1>MSP430 Release</h1><p><strong>IAR Embedded Workbench</strong></p>
<div class="contents topic">
<p class="topic-title first"><a id="table-of-contents" name="table-of-contents">Table of Contents</a></p>
<ul class="simple">
<li><a class="reference" href="#general" id="id6" name="id6">General</a></li>
<li><a class="reference" href="#building" id="id7" name="id7">Building</a><ul>
<li><a class="reference" href="#assembler" id="id8" name="id8">Assembler:</a></li>
<li><a class="reference" href="#compiler" id="id9" name="id9">Compiler:</a></li>
<li><a class="reference" href="#linker" id="id10" name="id10">Linker:</a></li>
</ul>
</li>
</ul>
</div>
<hr class="docutils" />
<div class="section">
<h1><a class="toc-backref" href="#id6" id="general" name="general">General</a></h1>
<p>Release consists of the RTOS sources and three sample projects - see
<a class="reference" href="../index.html">Release description</a> for details. Each sample located in separate
folder. Structure of test project folder (folders are in brackets '[]'):</p>
<pre class="literal-block">
[Config] - linker scripts and other utilities
[Exe] - executable product[s]
[List] - listings and other temporary text files
[Obj] - objects and other intermediate files
[settings] - IAR IDE auxiliary files
[Src] - test project sources
slon.vpj - SlickEdit project file
slon.MSP430.vpw - SlickEdit workspace file
SConstruct - Scons main script file
slon.ewd - IAR IDE auxiliary file
slon.ewp - IAR IDE project
slon.eww - IAR IDE workspace
</pre>
<p><strong>slon</strong> is test project name.</p>
<p>Structure of the RTOS folder:</p>
<pre class="literal-block">
scmRTOS
Common - common RTOS sources
MSP430 - portable part
</pre>
<hr class="docutils" />
<p>See <a class="reference" href="../index.html#distribution">Distribution section</a> and below about release using manners.</p>
</div>
<hr class="docutils" />
<div class="section">
<h1><a class="toc-backref" href="#id7" id="building" name="building">Building</a></h1>
<p>There are several ways to build any sample.</p>
<p>The first is to use <strong>IAR IDE</strong>. Just launch IDE, open appropriate workspace (*.eww file) and build the project.</p>
<p>Another way is to employ <a class="reference" href="http://www.scons.org">SCons</a> build system. <a class="reference" href="http://www.scons.org">Scons</a> is
actually <a class="reference" href="http://www.python.org">Python</a> script, so <a class="reference" href="http://www.python.org">Python</a> interpreter is necessary to use
<a class="reference" href="http://www.scons.org">SCons</a>. <a class="reference" href="http://www.python.org">Python</a> interpreter can be downloaded from Python's official site.
<a class="reference" href="http://www.scons.org">SCons</a>, in a certain sense, is analog of popular build utility make, but much more
powerful because of comprehensive underground of programming language (<a class="reference" href="http://www.python.org">Python</a>).</p>
<p>To use SCons:</p>
<ul class="plain3 simple">
<li>download and install <a class="reference" href="http://www.python.org">Python</a> interpreter v2.4.</li>
<li>download and install <a class="reference" href="http://www.scons.org">SCons</a> tool.</li>
<li>launch <a class="reference" href="http://www.scons.org">SCons</a> by typing tool name in command line in folder
where SConstruct file (SCons main script) located <a class="footnote-reference" href="#id4" id="id2" name="id2">[1]</a>.</li>
</ul>
<div class="line-block">
<div class="line"><tt class="docutils literal"><span class="pre">$PROMPT$>scons</span></tt></div>
</div>
<p>SCons will build the project.</p>
<p>If user want to use his own build system <a class="footnote-reference" href="#id5" id="id3" name="id3">[2]</a> he has to specify the following
command-line options for various tools:</p>
<div class="section">
<h2><a class="toc-backref" href="#id8" id="assembler" name="assembler">Assembler:</a></h2>
<pre class="literal-block">
-S
-DF169
-M()
-LList\
-OObj\
-ISrc
-I../scmRTOS/Common
-I../scmRTOS/MSP430
-I$TOOLKIT_PATH$\430\inc
-I$TOOLKIT_PATH$\430\inc\dlib
</pre>
</div>
<div class="section">
<h2><a class="toc-backref" href="#id9" id="compiler" name="compiler">Compiler:</a></h2>
<pre class="literal-block">
-e
--eec++
-s9
-lC List
--silent
--debug
-o Obj
-DF169
-ISrc
-I../scmRTOS/Common
-I../scmRTOS/MSP430
-I$TOOLKIT_PATH$\430\inc
-I$TOOLKIT_PATH$\430\inc\dlib
</pre>
</div>
<div class="section">
<h2><a class="toc-backref" href="#id10" id="linker" name="linker">Linker:</a></h2>
<pre class="literal-block">
-s __program_start
-r
-xsmeo
dl430fn.r43
-o Exe\slon.d43
-l List\slon.map
-f Config\lnk430F169.xcl
-I$TOOLKIT_PATH$\430\lib\dlib
-f $TOOLKIT_PATH$\430\config\multiplier.xcl
</pre>
<div class="note">
<p class="first admonition-title">Note</p>
<p class="last">where <tt class="docutils literal"><span class="pre">$TOOLKIT_PATH$</span></tt> - path to folder with toolkit installed.</p>
</div>
<hr class="docutils" />
<table class="docutils footnote" frame="void" id="id4" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id2" name="id4">[1]</a></td><td>SConstruct file contains variable <tt class="docutils literal"><span class="pre">TOOLKIT_PATH</span></tt> that specifies path to toolkit on particular PC.
The user should correct this path according to his PC toolkit location. The path can be specified
directly or through system environment variables as well.</td></tr>
</tbody>
</table>
<table class="docutils footnote" frame="void" id="id5" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id3" name="id5">[2]</a></td><td>For example, make utility or simple bat file.</td></tr>
</tbody>
</table>
</div>
</div>
</div>
</td>
</tr></table>
</td></tr>
<tr><td valign="bottom">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tr id="footer">
<td><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=181958&type=3" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a></td>
<td align="right">Copyright 漏 scmRTOS Team 2006-2008</td>
</tr></table>
</td></tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -