Customize your own Windows CE 5.0 arm Chinese simulator)

Source: Internet
Author: User

1. Generate OS

1. Install Windows CE 5.0 (remember to select armv4i In the CPU type) and install deviceemulatorbsp. MSI. This is the bsp of the armv4i simulator.

I will add a deviceemulatorbsp. MSI:

Http://www.microsoft.com/downloads/details.aspx? Familyid = 474b03a6-e87d-455d-bc16-b8cf18ef39b4 & displaylang = en

2. Run platform builder to create a new platform and give your new platform a name. Here I will use myceemu. BSP: Microsoft deviceemulator: armv4i, design template: Mobile handheld, application & Media, Networking & Communications: Select Local Area Network (LAN)-> WIRED local area network, remove the rest. Finally, complete the wizard.

3. Add a nic. In the catalog view's device drivers-> networking-> Local Area Networking (LAN) devices directory, add the NE2000-compatible (PCMCIA car.

4. To develop a hosting program, add the core OS of catalog View> Windows CE devices> Applications-End User> cab file installer/uninstaller.

5. Add ActiveSync (optional) in the core OS-> Windows CE devices-> Applications-end user directory of catalog view.

6. Add Flash Support. There are three parts: smflash, partition driver, and fat.
First go to catalog View:
In BSP-> Microsoft device emulator-> storage drivers-> msflash drivers-> smartmedia NAND Flash Driver (smflash ),
Partition driver in core OS-> Windows CE devices-> file systems and data store-> Storage Manager-> partition driver
Fat in core OS-> Windows CE devices-> file systems and data store-> Storage Manager-> FAT file system.

7. Open the menu platform-> setting. You need to set the settings in three places:
1) under the build options tab, remove enable ce target control support and enable kitl;
2) Environment tab, add the environment variable ce_modules_serial = 1, which is used to add DMA;
3) the locale tab is used to add the language support you want. You can change it or not. Here I first clear all and then select Chinese and English ). Select Chinese as the default language.

8. Add other required components as needed. I added support for MSXML.

9. buildos-> sysgen.

Ii. Generate the SDK

1. Run the SDK wizard (platform-> SDK-> New SDK), fill in the necessary information, and check all supported development tools. The following describes how to configure the SDK (choose platform-> SDK-> Configure SDK). skip this step if you feel that there is no configuration.

2. open exportsdk. sdkcfg file (back up the file first. This file is generally in the project root directory, which is the directory specified in step 2nd of the new platform wizard. The default value is % _ winceroot %/pbworkspaces ). This is an XML text file. Find these two lines:
<Propertybag name = "deviceemulation">
</Propertybag>
Replace the two rows with the following parts:
<Propertybag name = "deviceemulation">
<Property name = "default image"> 1 </property>
<Propertybag name = "1">
<Property name = "imagename"> myceemu </property>
<Property name = "vmid"> </property>
<Property name = "Default skin"/>
<Property name = "height"> 240 </property>
<Property name = "width"> 320 </property>
<Property name = "bitdepth"> 16 </property>
<Property name = "Memory"> 128 </property>
<Property name = "bin DEST"> Emulation/nk. Bin </property>
<Property name = "Fixed Screen"> 1 </property>
<Property name = "cpuname"> armv4i </property>
<Property name = "dpix"> 96 </property>
<Property name = "dpiy"> 96 </property>
<Property name = "supportrotation"> 0 </property>
<Property name = "enabled"> 1 </property>
<Property name = "bin path"> </property>
<Property name = "Ethernet"> 1 </property>
<Property name = "ports"> 1 </property>
<Property name = "additionalparameters"> </property>
<Propertybag name = "skins"/> </propertybag>
</Propertybag>
<Propertybag name = "added Files">
<Propertybag name = "{3b388597-0924-4102-adfa-2519d2c3e11b}">
<Property name = "Source"> C:/wince500/myceemu/releaseimage </property>
<Property name = "destination"> emulation </property>
<Property name = "subfolders"> 0 </property>
</Propertybag>
</Propertybag>

3. Set variables. Several variables need to be set in the replaced code above:
1) imagename: the name that the programmer sees in Visual Studio IDE;
2) vmid: a guid, which can be generated using guidgen.exe;
3) height/width: the width and height of the simulator screen;
4) bitdepth: color depth;
5) memory: The ram size allocated to the simulator;
6) dpix/dpiy: screen DPI;
7) Source: This is a directory that contains the compiled NK. Bin. We recommend that you create a directory under % _ winceroot % to store NK. Bin.

Here I set it to C:/wince500/myceemu/releaseimage.
Save the modification.

3. Generate the SDK. Platform-> SDK-> build SDK. If everything goes well, you can find the SDK installation package into an MSI file in the SDK directory of the current project directory.

3. Configure Visual Studio 2005
1. Install the generated SDK first. Run Visual Studio 2005 and choose tools> options. In the Options dialog box that appears, select device tools> devices from the tree list on the left ", the drop-down list box on the right shows "myceemu", which is the platform we just generated. There are two items in the following device list. Double-click myceemu, set transmission to DMA transmission, click "select Simulator", and set the simulator screen size on the "display" tab, color depth, etc., save all.

2. Create a new smart device project. When selecting the platform in step 1 of the wizard, replace Pocket PC 2nd with myceemu. Then press F5 to run the program. If nothing happens, the simulator should come out.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.