1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Homepage Builder Version 6.0.4.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>HIO2 Demos</title>
10</head>
11
12<body>
13
14<h1>HIO2 Sample Demos</h1>
15
16<h2>Location</h2>
17
18<p><font face="Courier New">$REVOLUTION_SDK_ROOT/build/demos/hio2demo</font></p>
19
20<h2>Compilation</h2>
21<p>Each demo consists of two parts: the target side and the host side.</p>
22<h5>[Target side]</h5>
23<p>Change directories to <CODE>$REVOLUTION_SDK_ROOT/build/demos/hio2demo</CODE> and enter <CODE>make</CODE>. The executable programs (<CODE>.elf</CODE> files) will be generated under <CODE>$REVOLUTION_SDK_ROOT/build/demos/hio2demo/bin/RVL/</CODE>.</p>
24<h5>[Host side]</h5>
25<p>Change directories to <CODE>$REVOLUTION_SDK_ROOT/build/demos/hio2demo</CODE> and enter <CODE>make X86 = TRUE</CODE>. The executables (<CODE>.exe</CODE> files) will be generated under <CODE>$REVOLUTION_SDK_ROOT/X86/hio2demo/</CODE>. </p>
26<p>Prebuilt demos are available under</p>
27<p><CODE>$REVOLUTION_SDK_ROOT/RVL/bin/demos/hio2demo/</CODE> (Target side)<br><CODE>$REVOLUTION_SDK_ROOT/X86/hio2demo/</CODE>&nbsp;(Host side)</p>
28<p>These files are overwritten when you compile the demos.</p>
29
30<h2>Execution</h2>
31<p>To run an application on the host side, move to <code>$REVOLUTION_SDK_ROOT/X86/hio2demo/</code> in the bash shell called from <CODE>RVL_NDEV.bat</CODE> and execute the <code>.exe</code> file. </p>
32
33<p><strong>Note: </strong>This must be done due to the fact that these programs use dll files in the <CODE>/X86/bin/</CODE> portion of the SDK install directories and that path settings are made inside <CODE>RVL_NDEV.bat</CODE>. Note that applications cannot be started from Explore or under other conditions where the path has not been set. </p>
34
35<p>To run the target side application, go to <CODE>$REVOLUTION_SDK_ROOT/build/demos/hio2demo/bin/RVL/</CODE> and do one of the following:</p>
36
37
38<ul>
39<li>To execute the program, run the <code>ndrun</code> script using a <code>.elf</code> file as an argument.</li>
40<li>Run <CODE>ide</CODE> with a <CODE>.elf</CODE> file as an argument (if you want to debug with CodeWarrior).</li>
41</ul>
42
43<h2>Description</h2>
44
45<table border="0" width="776" height="1">
46  <tr>
47    <td><code><em><strong>simple.exe/simple.elf</strong></em></code></td>
48    <td>Sample on how to use HIO2.</td>
49  </tr>
50  <tr>
51    <td></td>
52<td>See <a href="simple.html">here</a> for more detail.</td>
53  </tr>
54  <tr>
55    <td><code><em><strong>dual.exe/dual.elf</strong></em></code></td>
56    <td>Demo for communicating between a stand-alone Revolution and a stand-alone PC.</td>
57  </tr>
58    <tr>
59    <td></td>
60<td>See <a href="dual.html">here</a> for more detail.</td>
61  </tr>
62    <tr>
63    <td><code><em><strong>multi.exe/multi.elf</strong></em></code></td>
64    <td>Demo for communicating between a multiple Revolutions and a stand-alone PC.</td>
65  </tr>
66    <tr>
67    <td></td>
68<td>See <a href="multi.html">here</a> for more detail.</td>
69  </tr>
70  </table>
71
72<h2>See Also</h2>
73
74<p><a href="../list.html"><code>HIO2 API</code></a></p>
75<H2>Revision History</H2>
76<P>
774/7/2006 Revised the description of how to start the hio2demo program for the PC .<br>03/01/2006 Initial version.
78</P>
79CONFIDENTIAL
80</body>
81</html>