1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
5<meta name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows" />
6<meta http-equiv="Content-Style-Type" content="text/css" />
7<link rel="stylesheet" type="text/css" href="../../css/nitro.css" />
8<title>WFS Demos</title>
9</head>
10<body>
11
12<h1>Wireless File System (WFS) Library Sample Demos</h1>
13
14<h2>Compilation</h2>
15<p>
16Open a directory containing a sample demo and enter the following.
17</p>
18<blockquote><code>% make</code></blockquote>
19<p>&nbsp;The compilation begins, and the SRL executable file and the NEF or TEF files with binary information are generated in the following directory.</p>
20<blockquote><code>$TwlSDK/(sample_demo_directory)/bin/(platform)/(target)/</code></blockquote>
21<p>
22&nbsp;&nbsp;&nbsp;For example:
23</p>
24<blockquote><code>$TwlSDK/build/demos/mb/multiboot-wfs/bin/ARM9-TS/Release/main.srl</code></blockquote>
25<p>is the executable file for the <code>multiboot-wfs</code> demo.</p>
26
27<H2>Execution</H2>
28<H3>For NITRO ROMs</H3>
29
30<P>If using IS-NITRO-DEBUGGER:</P>
31<UL>
32<LI>Load and execute an NLF file with IS-NITRO-DEBUGGER
33<LI>Execute an SRL file with IS-NITRO-DEBUGGER
34<LI>Execute an SRL file with IS-NITRO-DEBUGGER using the <CODE>loadrun.exe</CODE> tool from a command line
35</UL>
36<P>If using IS-TWL-DEBUGGER:</P>
37<UL>
38<LI>Load and execute an NLF file with IS-TWL-DEBUGGER
39<LI>Execute an SRL file with IS-TWL-DEBUGGER
40<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line
41</UL>
42<H3>For TWL/NITRO Hybrid ROMs</H3>
43<P>If using IS-NITRO-DEBUGGER:</P>
44<UL>
45<LI>Execute an SRL file with IS-NITRO-DEBUGGER
46<LI>Execute an SRL file with IS-NITRO-DEBUGGER using the <CODE>loadrun.exe</CODE> tool from a command line
47</UL>
48<P>If using IS-TWL-DEBUGGER:</P>
49<UL>
50<LI>Load and execute a TLF file with IS-TWL-DEBUGGER
51<LI>Execute an SRL file with IS-TWL-DEBUGGER
52<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line
53</UL>
54<H3>For TWL Limited ROMs</H3>
55<P>If using IS-TWL-DEBUGGER:</P>
56<UL>
57<LI>Load and execute a TLF file with IS-TWL-DEBUGGER
58<LI>Execute an SRL file with IS-TWL-DEBUGGER
59<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line
60</UL>
61
62<p style="color:Red">Because many of the WFS library sample demos use DS Download Play, you need a number of development machines, all with the same communications environment (wireless or wired). <br /><CODE>$TwlSDK/bin/ARM9-TS/Rom/mb_child_NITRO.srl</CODE> and <CODE>mb_child_TWL.srl</CODE> are samples providing the same functionality as the DS Download Play on the Nintendo DS system, so load the programs into the other machines and execute them together.<BR>Depending on the options set for IS-NITRO-DEBUGGER, a dialog box containing the message &quot;The transfer destination address on the ARM9 Processor is incorrect&quot; appears when the program is loaded. Select <B>NO</B> to proceed with loading.</p>
63
64<h2>Description</h2>
65<table style="width:90%">
66  <tbody>
67    <TR>
68<TH>Name</TH>
69<TH>Directory</TH>
70<TH>Operation</TH>
71    </TR>
72    <tr>
73<td><code>$TwlSDK/build/demos/wireless_shared/wfs</code></td>
74<TD><CODE>demos</CODE></TD>
75<td>This sample code demonstrates a simple procedure for hooking the WFS library to MP communications.<BR>Several sample demos to be described later access this code as a shared process.</td>
76    </tr>
77
78    <tr>
79<td><code>$TwlSDK/build/demos/mb/multiboot-wfs</code></td>
80<TD><CODE>demos</CODE></TD>
81<td>This sample uses the MB library to download a program to the Nintendo DS and then reconnect to that program to provide a wireless file system to the child device program.<BR>The <CODE>$TwlSDK/build/demos/wireless_shared/wc</CODE> sample code is used as the framework for MP communications.<br />The sample code in <CODE>$TwlSDK/build/demos/wireless_shared/wfs</CODE> is used for hooking operations for MP communications.</td>
82    </tr>
83
84    <tr>
85<td><code>$TwlSDK/build/demos/wm/wireless-all</code></td>
86<TD><CODE>demos</CODE></TD>
87<td>This is a comprehensive sample of DS Multi-Card Play.<br />Performing DS Download Play using the clone boot functionality of the MB library, this sample program provides a wireless file system by reconnecting to the downloaded child program and performing data sharing communications.<BR>The sample code contained in <CODE>$TwlSDK/build/demos/wireless_shared/wh</CODE> is used as the framework for MP communications.<br />The sample code in <CODE>$TwlSDK/build/demos/wireless_shared/wfs</CODE> is used for hooking operations for MP communications.<br /></td>
88    </tr>
89
90  </tbody>
91</table>
92
93<h2>Operation</h2>
94<p>
95The WFS library demo does not work properly on <CODE>ensata</CODE>.
96</p>
97<p>
98The <CODE>wireless-all</CODE> demo works only in NTR mode.
99</p>
100
101<h2>See Also</h2>
102<p>
103<A href="../../wfs/list_wfs.html">WFS Function List</A>
104</p>
105
106<h2>Revision History</h2>
107<p>
1082008/07/11 Changed descriptions to support TWL.<BR> 2007/06/15 Initial version.
109</p>
110<hr><p>CONFIDENTIAL</p></body>
111</html>