CP Demos

# Coprocessor Sample Demo

## Location

`$TwlSDK/build/demos/cp`

## Compilation

Move to the `$TwlSDK/build/demos/cp` directory and enter the following:

> `% make`

The compiled SRL executable file, and the NEF or TEF files with binary information are created in `$TwlSDK/build/demos/cp/(sample name)/bin/(platform)/(target)/`.

> ``

For example:

> `$TwlSDK/build/demos/cp/ThreadSafeTest/bin/ARM9-TS/Release/main.srl`

will be the executable file for the `ThreadSafeTest` demo.

## Execution

### For NITRO ROMs:

If using the Ensata emulator:

- Execute NEF and SRL files with ensata.

If using IS-NITRO-DEBUGGER:

- Load and execute an NLF file with IS-NITRO-DEBUGGER.
- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from a command line.

If using IS-TWL-DEBUGGER:

- Load and execute an NLF file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line.

### For TWL/NITRO HYBRID ROMs:

If using IS-NITRO-DEBUGGER:

- Execute an SRL file with IS-NITRO-DEBUGGER
- Execute an SRL file with IS-NITRO-DEBUGGER using the `loadrun.exe` tool from a command line

If using IS-TWL-DEBUGGER:

- Load and execute an TLF file with IS-TWL-DEBUGGER.
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line.

### For TWL LIMITED ROMs:

If using IS-TWL-DEBUGGER:

- Load and execute a TLF file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER
- Execute an SRL file with IS-TWL-DEBUGGER using the `loadrun.TWL.exe` tool from a command line.

## Description

Name | Directories | Operation
--- | --- | ---
`ThreadSafeTest` | `demos` | Indicates a thread safe condition due to also switching coprocessor context when threads are switched.

## Operation

ThreadSafeTest does not work properly with ensata.

## See Also

`CP Function List`

## Revision History

2008/07/11 Changed descriptions to support TWL.
2005/03/02 Revised descriptions to reflect current support environment conditions.
2004/08/17 Standardized the notation of the IS-NITRO-EMULATOR.
2004/07/19 Initial version.

CONFIDENTIAL