MB Demos

# Multiboot Library (MB) Sample Demo

## Location

`$NitroSDK/build/demos/mb`

## Compilation

Move to the `$NitroSDK/build/demos/mb` directory and enter

> `% make`

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

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

For example:

> `$NitroSDK/build/demos/mb/multiboot/bin/ARM9-TS/Release/`

## Execution

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

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

The MB library samples use multi-boot functions. Therefore, you must have multiple development machines with the same communication environment (wireless or wired). The `MB_child.srl` program in the directory `$NitroSDK/bin/ARM9-TS/Release` is a sample providing the same features as the multi-boot child in the last device. Therefore, read this binary into other equipment using the same method as for the sample program, and execute them together. Depending on the optional setting on IS-NITRO-DEBUGGER, the "The transfer destination address on the ARM9 Processor is incorrect" dialog box appears when `MB_child.srl` is loaded. Select [NO] in this dialog box to proceed with loading.

## Description

`multiboot` | This is a simple sample that downloads the program file from the multi-boot parent to the child. Opens two program files and downloads to an unspecified connected child. After the download, press the [START] button on the parent to boot the child that has completed the download.
`multiboot-Model` | This is a normative sample that shows the procedure of a multiboot parent downloading a program file to a child and executing data sharing communication with the downloaded child program.
`cloneboot` | This sample downloads the parent's program to a child. This is called clone booting. The program structure is the same as the multiboot-Model sample model.
fake_child | This sample makes an entrance wtih the multiboot parent as a pseudo-multiboot child. This sample sets the same GGID as used in the multiboot-Model sample, allowing it to fake an entry as a multiboot child.
`mbm` | Demo that uses the `WM_MeasureChannel` function to measure the wireless signal use rate.
`multiboot-PowerSave` | A simple demo that selects power save mode and boots the machine as a multiboot parent. Identical to the multiboot demo, except that all settings are fixed as default settings aside from power-save mode.
`multiboot-wfs` | This sample downloads the program file to the child as the multiboot parent, and the child uses the file system via a wireless connection. It uses the sample module, $NitroSDK/build/demos/wireless_shared/wfs.

## Emulator

`The MB library demo does not function in ensata.`

## See Also

`MB Function List`

## Revision History

06/23/2005 Added description of `multiboot-wfs` demo.
05/10/2005 Added explanation of mbm demo.
04/28/2005 Added multiboot-PowerSave demo.
11/16/2004 Added cloneboot sample.
10/06/2004 Corrected the lack of description regarding multiboot-Model sample.
09/13/2004 Added caution for loading `mb_child.srl`.
08/17/2004 Clarified the execution instructions and the multiboot description.
08/10/2004 Initial version.

CONFIDENTIAL