]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - doc/html/tutorial/lesson1.html
Updates.
[tinyos-2.x.git] / doc / html / tutorial / lesson1.html
index d0343687aed9e4da7d15ef86bec96699507adcb0..d461a6a6d63a3b85e534100481ff90a531cb679d 100644 (file)
@@ -8,7 +8,7 @@
 <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>
 
@@ -47,7 +47,11 @@ $ tos-check-env
          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>
@@ -103,6 +107,8 @@ msp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex
        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>
@@ -597,7 +603,6 @@ implementation {
   components new TimerMilliC() as Timer2;
 
   BlinkC -> MainC.Boot;
-  MainC.SoftwareInit -> LedsC;
   BlinkC.Timer0 -> Timer0;
   BlinkC.Timer1 -> Timer1;
   BlinkC.Timer2 -> Timer2;
@@ -660,7 +665,7 @@ module BlinkC {
   uses interface Timer&lt;TMilli&gt; as Timer1;
   uses interface Timer&lt;TMilli&gt; as Timer2;
   uses interface Leds;
-  users interface Boot;
+  uses interface Boot;
 }
 implementation
 {
@@ -715,7 +720,6 @@ implementation {
   components new TimerMilliC() as Timer2;
 
   BlinkC -> MainC.Boot;
-  MainC.SoftwareInit -> LedsC;
   BlinkC.Timer0 -> Timer0;
   BlinkC.Timer1 -> Timer1;
   BlinkC.Timer2 -> Timer2;