1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 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 7.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>CARD Demos</TITLE> 9</HEAD> 10<BODY> 11<H1>CARD Library (CARD) Sample Demo</H1> 12<H2>Location</H2> 13<P><CODE>$TwlSDK/build/demos/card</CODE></P> 14<H2>Compilation</H2> 15<P>Move to the <CODE>$TwlSDK/build/demos/card</CODE> directory and enter the following.</P> 16<BLOCKQUOTE><CODE>% make</CODE></BLOCKQUOTE> 17<P> The compilation begin, and the SRL executable file and the NEF or TEF files with binary information are generated in <CODE>$TwlSDK/build/demos/fs/(sample name)/bin/(platform)/(target)/</CODE>.</P> 18<BLOCKQUOTE><CODE>$TwlSDK/build/demos/card/sample_name/bin/platform/target/</CODE></BLOCKQUOTE> 19<P> For example:</P> 20<BLOCKQUOTE><CODE>$TwlSDK/build/demos/card/card-1/bin/ARM9-TS/Release/main.srl</CODE></BLOCKQUOTE> 21<P>will be the executable file for the <CODE>card-1</CODE> demo.</P> 22 23<H2>Execution</H2> 24<H3>For NITRO ROMs:</H3> 25 26<P>If using the Ensata emulator:</P> 27<UL> 28<LI>Execute NEF and SRL files with <CODE>ensata</CODE> 29</UL> 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<H2>Description</H2> 63<TABLE width="720"> 64 <TBODY> 65 <TR> 66<TH>Name</TH> 67<TH>Directories</TH> 68<TH>Operation</TH> 69 </TR> 70 <TR> 71<TD width="187"><CODE>backup</CODE></TD> 72<TD><CODE>demos</CODE></TD> 73<TD width="525">This simple sample shows how to use the CARD library to access a backup device.</TD> 74 </TR> 75 <TR> 76<TD width="187"><CODE>card-1trom</CODE></TD> 77<TD><CODE>demos</CODE></TD> 78<TD width="525">This demo uses one-time PROM as the ROM type and outputs the transfer speed to the debugger.</TD> 79 </TR> 80 <TR> 81<TD width="187"><CODE>card-mrom</CODE></TD> 82<TD><CODE>demos</CODE></TD> 83<TD width="525">This demo uses mask ROM as the ROM type and outputs the transfer speed to the debugger.</TD> 84 </TR> 85 <TR> 86<TD><code>ctrdg/pullout-1</code><br /> (included in the cartridge demo)</TD> 87<TD><CODE>demos</CODE></TD> 88<TD>This sample is included in the Game Pak demo (<code>$TwlSDK/build/demos/ctrdg</code>). Detects removal of card and cartridge.</TD> 89 </TR> 90 </TBODY> 91</TABLE> 92 93<H2>Operation</H2> 94<P>The card-mrom demo works properly only in NTR mode.</P> 95<H2>See Also</H2> 96<P><A href="../../card/list_card.html">CARD Function List</A></P> 97<H2>Revision History</H2> 98<P> 992008/12/12 Renamed the card-1 demo to the <CODE>backup</CODE> demo.<BR> 2008/07/11 Changed the notation corresponding to TWL.<br> 2005/04/26 Changed term from "1-time ROM" to "one-time PROM."<br /> 2005/04/06 Added descriptions of <code>card-1trom</code> and <code>card-mrom</code> demos.<br /> 2005/03/02 Revised descriptions to reflect current support environment conditions.<br /> 2004/10/06 Added description regarding <code>ctrdg/pullout-1</code> demo.<br /> 2004/09/10 Initial version. 100</P> 101<hr><p>CONFIDENTIAL</p></body> 102</HTML>