While the H4 development board now provides support for MultiMediaCard development and testing, the emulator can be set up so that it behaves as if a MultiMediaCard (MMC) is present. This can be used to do some basic tests to see how an application behaves when reading data from the card and writing data to the card, or when the card is removed and/or swapped. Specifically, it allows you to check that data stored on a card is not lost or corrupted during MMC drive events and that card locking and password notification work correctly.
It is possible to emulate a user opening and closing the MMC drive door, replacing and removing the MMC card.
MMC emulation does not involve access to any kind of MultiMediaCard
hardware interface. Instead, the memory area of each emulated card is
represented by a file, a .bin
type file in the Windows system temp
directory.
Emulated MultiMediaCard drives are defined by the emulator-specific
(Wins) versions of estart.exe
and estart.txt
.
By default, the generic Symbian emulator is set up so that an MMC drive
1 is mapped to drive letter X:
. While the emulator is running, key
stroke combinations using F5
and F4
will trigger MMC drive events, and emulate MMC card swapping/removing.
This emulates a single stack containing two separate cards, the first
in slot 0, and the second in slot 1. Each emulated card has an associated
.bin
file on the host machine. As the emulator only supports the
swapping of cards in slot 0, there are two .bin
files, one for
each of the two emulated MMC cards in slot 0. There is no support for card
swapping on slot 1 and this has only one .bin
file.
For the purpose of testing, we are interested in drive 1, the emulated MMC drive. See how to control the emulated MMC cards on drive 1.
The drive mappings for an MMC drive are defined by the
emulator-specific (Wins) versions of estart.exe
and
estart.txt
. However, the following keywords, which can be defined
in epoc.ini
except the first one, affect the emulated MMC drive.
For more information on ESTART, see Background information: ESTART
|
Note that these items are case-insensitive.
MMC drive 1 events are triggered in the emulator by pressing the
F5
key in conjunction with the F4
key. The following table shows the various combinations of keystrokes and the
associated MMC events.
|
There are some limitations to emulating the MMC controller:
When you configure ...\epoc32\data\epoc.ini
for the
first time for an emulator (WINS) build, the emulated cards are initially
unformatted. They must be formatted (within the emulator, possibly using the
file manager application) before writing files to them.
Each emulated card is stored in a file with the name
mmccrdXX.bin
. The files are stored in
...\epoc\data\media\...
.