<body>
<div class="title">Lesson 1: Getting Started with TinyOS and nesC</div>
-<div class="subtitle">Last updated June 24 2006</div>
+<div class="subtitle">Last updated April 8 2007</div>
<h1>Introduction</h1>
useful.</p>
<p>If your system says some command is not available, then
- chances are you need to install the TinyOS tools (tos-*).
+ chances are you need to install the TinyOS tools (tos-*) RPM.
+ Please refer to your installation instructions. If you have
+ installed the RPM, then look in /usr/bin and /usr/local/bin
+ for tos-check-env. If you have downloaded from CVS rather than
+ used RPMs, then you need to compile and build the tools.
Go to <code>tinyos-2.x/tools/tinyos</code> and type:</p>
<pre>
as building TOSSIM requires several steps, such as building shared
libraries and scripting support.</p>
+ <p>If you are running Cygwin and see the error message "The procedure entry point basename could not be located in the dynamic link library cygwin1.dll" then you need to install the other Cygwin nesC RPM (step 4 of the <A HREF="../install-tinyos.html">install instructions</A> or step 2 of the <A HREF="../upgrade-tinyos.html">upgrade instructions</A>)</p>
+
<h2>Making sure you're invoking the right version of the nesC compiler</h2>
<p>If you see an error message along the lines of this:</p>
components new TimerMilliC() as Timer2;
BlinkC -> MainC.Boot;
- MainC.SoftwareInit -> LedsC;
BlinkC.Timer0 -> Timer0;
BlinkC.Timer1 -> Timer1;
BlinkC.Timer2 -> Timer2;
uses interface Timer<TMilli> as Timer1;
uses interface Timer<TMilli> as Timer2;
uses interface Leds;
- users interface Boot;
+ uses interface Boot;
}
implementation
{
components new TimerMilliC() as Timer2;
BlinkC -> MainC.Boot;
- MainC.SoftwareInit -> LedsC;
BlinkC.Timer0 -> Timer0;
BlinkC.Timer1 -> Timer1;
BlinkC.Timer2 -> Timer2;