CARD Demos

# CARD Library (CARD) Sample Demo

## Location

`$NitroSDK/build/demos/card`

## Compilation

Move to the `$NitroSDK/build/demos/card` and input

> `% make`

Executable (`.nef`, `.srl`) files will be generated in

> `$NitroSDK/build/demos/card/sample_name/bin/platform/target/`

For example:

> `$NitroSDK/build/demos/card/card-1/bin/ARM9-TS/Release/`

## Execution

Move to the `$NitroSDK/build/demos/card/sample_name/bin/platform/target/` directory and do one of the following.

- Execute `*.nef`, `*.srl` with ensata.
- Load and execute a `*.nlf` file with IS-NITRO-DEBUGGER.
- Execute a `*.srl` file with IS-NITRO-DEBUGGER

## Description

`card-1` | This is a very simple sample that shows how to use the CARD library to access a backup device.
`card-1trom` | This demo uses one-time PROM as the ROM type and outputs the transfer speed to the debugger.
`card-mrom` | This demo uses mask ROM as the ROM type and outputs the transfer speed to the debugger.
`ctrdg/pullout-1` (included in the cartridge demo) | This sample is included in cartridge demo (`$NitroSDK/build/demos/ctrdg`). Detects removal of card and cartridge.

## Emulator

`Works in all execution environments.`

## See Also

`CARD Function List`

## Revision History

04/26/2005 Changed term from "1-time ROM" to "one-time PROM".
04/06/2005 Added descriptions of `card-1trom` and `card-mrom` demos.
03/02/2005 Revised descriptions to reflect current support environment conditions.
10/06/2004 Added description regarding `ctrdg/pullout-1` demo.
09/10/2004 Initial version