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 http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<title>Wii Console NAND Memory (NAND) Sample Demos</title>
9</head>
10
11<body>
12
13<H1>Wii Console NAND Memory (NAND) Sample Demos</H1>
14
15<H2>Location</H2>
16<p>
17<CODE>$REVOLUTION_SDK_ROOT/build/demos/nanddemo</CODE>
18</p>
19
20<H2>Compilation</H2>
21<p>
22Navigate to the <code>$REVOLUTION_SDK_ROOT/build/demos/nanddemo</code> directory and enter &quot;<code>make</code>&quot;. Executable (<code>.elf</code>) files will be generated under the path <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/nanddemo</code>.
23</p>
24
25<H2>Execution</H2>
26<p>
27Navigate to the <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/nanddemo</code> directory and perform the following steps.
28</p>
29
30<ul>
31<li>To simply execute the application, run the <code>ndrun</code> script using the <code>.elf</code> file as the argument.</li>
32<li>To debug using CodeWarrior, do one of the following.</li>
33<ul>
34<li>Run <code>$CWFOLDER/bin/IDE.exe</code> with the <code>.elf</code> file as an argument.</li>
35<li>Launch <code>$CWFOLDER/bin/IDE.exe</code>, then drag and drop the <code>.elf</code> file.</li>
36<li>If the <code>.elf</code> file is associated with <code>$CWFOLDER/bin/IDE.exe</code>, double-click the <code>.elf</code> file.</li>
37</ul>
38
39</ul>
40
41<H2>Description</H2>
42<TABLE class="demo_list" border="1" >
43  <TBODY>
44    <TR>
45<TH>basic</TH>
46<TD>This sample demo program is for learning the basic usage of NAND functions. It shows how to create, open, write, seek, read, close and delete a file.</TD>
47    </TR>
48    <TR>
49<TH>directory</TH>
50<TD>This sample demo program is for learning directory operations. It shows how to display the contents of a directory, create/delete directories, and get/move the current directory.</TD>
51    </TR>
52    <TR>
53<TH>async</TH>
54<TD>This sample demo program shows an example of how to use asynchronous functions.</TD>
55    </TR>
56    <TR>
57<TH>gamesave</TH>
58<TD>This is a simple sample demo program that can display the contents of a save data directory, delete the files, and so on.</TD>
59    </TR>
60    <TR>
61<TH>safe</TH>
62<TD>This demo program shows that a file update can be terminated in an incomplete state. However, a workaround for this problem is introduced, using the <CODE>NANDSimpleSafeOpen</CODE> and <CODE>NANDSimpleSafeClose</CODE> functions.</TD>
63    </TR>
64    <TR>
65<TH>check</TH>
66<TD>Shows an example of using the <CODE>NANDCheck</CODE> function.</TD>
67    </TR>
68    <TR>
69<TH><a href="./banner.html">banner</a></TH>
70<TD>Demonstrates the procedures for creating a banner file. Includes a sample <CODE>.tga</CODE> file used as the banner's raw image and a sample <CODE>.tcs</CODE> script file for the <CODE>TexConv</CODE> tool, located in the <CODE>./tpl</CODE> folder.</TD>
71    </TR>
72    <TR>
73<TH><a href="./cancel.html">cancel</a></TH>
74<TD>Shows error processing code that is applicable when <CODE>NANDSimpleSafe</CODE>-related functions are in use.</TD>
75    </TR>
76  </TBODY>
77</TABLE>
78
79<H2>See Also</H2>
80<p class="reference">
81<a href="../list.html">NAND Function List</a>
82</p>
83
84<H2>Revision History</H2>
85<p>
862007/05/09 Added the <CODE>cancel</CODE> demo.<br>2006/10/25 Added information about the <CODE>banner</CODE> sample demo. Added links.<br>2006/09/19 Added the <CODE>banner</CODE> sample demo.<br>2006/09/07 Added the <CODE>check</CODE> sample demo.<br>2006/08/15 Added the <CODE>safe</CODE> sample demo.<br>2006/06/16 Initial version.<br>
87</p>
88
89<hr><p>CONFIDENTIAL</p></body>
90</HTML>
91