RSS
热门关键字:
当前位置 : 主页>嵌入式开发>Symbian OS>列表

How to define the memory configuration of the Symbian WINS emulator

来源:我要研发网 作者: 时间:1970-01-01 点击:




With the multiplication of Symbian devices, more and more different configurations reach the market. As it is most of the time for an individual or a small company to test its software on all real devices, it is important to be able to simulate each particular device with as much accuracy as possible.

字串3

An important file for configuring the emulator is the epoc.ini file located in %EPOCROOT%\epoc32\data\. 字串3

We will see here how to configure the disk drives and the total RAM memory that the emulator uses.

字串6

Drives configuration

The emulator maps the Symbian platform file system onto the PC’s file system. Two drives: C: (the flash file system on NS60 devices) and Z: (the device ROM) are created by default. 字串9

The default location for these drives is:
C: = %EPOCROOT%\epoc32\wins\c
Z: = %EPOCROOT%\epoc32\data\z %EPOCROOT%\epoc32\release\wins\udeb\z 字串7

This setting can be overriden and new drives can be added by editing the epoc.ini file. A line shall be added for each extra drive:


_EPOC_DRIVE_

Here is my default setting to simulate a mobile with a MMC card : 字串2


_EPOC_DRIVE_D c:\symbian\6.1\Series60\epoc32\wins\d
_EPOC_DRIVE_E c:\symbian\6.1\Series60\epoc32\wins\e

Another interesting setting could be to redirect the MMC drive to the PC floppy disk. You will then be able to simulate the presence or not of the MMC without reconfiguring the emulator:

字串5


_EPOC_DRIVE_D c:\symbian\6.1\Series60\epoc32\wins\d
_EPOC_DRIVE_E a:

RAM Configuration

The epoc.ini file can also be used to define how much RAM memory our simulated device has. This is achieved by using the MegabytesOfFreeMemory keyword: 字串4


// extract from epoc.ini
// simulate a device with 16MB memory,
// (considering that the system requires 1MB RAM to run)
MegabytesOfFreeMemory 15

The default value in the NS60 SDK (1.x and 2.0) is 16. If the line is missing in the ini file, the emulator will run with its default 64MB value.

字串8



Note: user of the Coderarrior environment may have to replace WINS by WINSCW in the above exemples.
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
相关文章