Building the Windows Embedded CE 6.0 development environment

Source: Internet
Author: User

The first step is to install VS2K5 and install the vs2k5 SP1 patch (KB926601) after installation, otherwise platform Builder SP1 cannot be installed later.

The second step, installing Windows Embedded CE 6.0, is officially:

http://www.microsoft.com/downloads/details.aspx?familyid=7E286847-6E06-4A0C-8CAC-CA7D4C09CB56&displaylang= En

Windows Embedded CE 6.0 and serial number

It's very cumbersome to install.

Program

http://download.microsoft.com/download/a/0/9/a09e587c-4ff9-4a58-a854-56fe50b862b2/WindowsEmbedded CE 6.0.msi

Serial number:

Your Product Key (s) for installation is:

* Windows Embedded CE 6.0 (Plug-in for Visual Studio 2005):

H8rqr-mmkrp-xfrfc-9hkgj-82r6j

* If You are also evaluating Visual Studio 2005, Visual Studio 2005 Professional Edition Trial:

M3c9x-9k3q9-dc8px-b3yr3-bkqr8

* Other Recommended Downloads:

Visual Studio 2005 Service Pack 1 Beta

If the above serial number is not available, please apply yourself

Http://www.microsoft.com/windows/embedded/eval/trial.mspx

The installation will be prompted to require a file called Data_1.cab, the file is as follows:

Http://download.microsoft.com/download/a/0/9/a09e587c-4ff9-4a58-a854-56fe50b862b2/Data_1.cab

This article provides an offline installation of the file table (click to download), the File table to import thunderbolt can download a complete offline installation package, about 3.7G size. The installation interface for the CE6 is as follows:

The third step installs Windows Embedded CE 6.0 Platform Builder Service Pack 1, which is officially:

Http://www.microsoft.com/downloads/details.aspx?FamilyId=BF0DC0E3-8575-4860-A8E3-290ADF242678&displaylang=en. If the vs2k5 SP1 patch is not installed, the patch needs to be installed first.

After installing the above three steps, open the VS2K5, we can see installed products added a platform Builder for CE6.0, indicating that CE6 has been installed successfully, CE6 is installed in vs2k5 in add-on way.

The fourth step installs Microsoft Device Emulator 2.0, officially: http://www.microsoft.com/downloads/details.aspx? The familyid=dd567053-f231-4a64-a648-fea5e7061303&displaylang=en,2.0 version of the emulator is an upgrade to the 1.0 version of the default installation in Vs2k5.

The fifth step is to install Virtual machine Network Driver for Microsoft Device Emulator, which ensures that the emulator is running properly, and that if it is not installed, it will be a black screen after startup, and I have encountered this problem, The official: http://www.microsoft.com/downloads/details.aspx? familyid=dc8332d6-565f-4a57-be8c-1d4718d3af65&displaylang=en, this download has been turned off by Microsoft, it is recommended to download Microsoft Virtual PC 2007, the official: http://www.microsoft.com/downloads/details.aspx? Familyid=04d26402-3199-48a3-afa2-2dc0b40a73b6&displaylang=en, but here's a problem, VPC2007 can be in Windows xp/vista/windows The Server 2003 standard is installed on the enterprise and cannot be installed on enterprise, it can only install more advanced Virtual Server 2005. So be careful when choosing an operating system. Virtual PC 2007 is installed directly here because I am using Windows XP to operate the system.

The next step is to customize a Windows CE 6.0 system with the PB just installed, which can be loaded onto the Device emulator after the system has been customized so that we could develop and test the system. Open VS2K5, select Create a new installed OS design project template and go to the wizard page.

It is recommended to select device Emulator:armv4i in board support packages. This is a very important step, at the same time here to mention a point, the device simulator is ARM architecture, that is, the x86 architecture of the CE system can not be run on the simulator, this problem I have encountered, with cepc:x86 customized a system, compiled after the completion of attaching to the device simulator when reported error: Invalid or missing ROM image. But it doesn't matter if you choose the wrong choice, you can still modify these options after you've created the template.

PB provides a selection of design templates, I chose PDA Device----Mobile handheld, and then the next step to complete the creation, the final step of the creation will pop up a catalog Item notification dialog box, Click Acknolwlege OK to complete the creation. The topic of customizing Windows CE Systems is described in a future article. From the Vs2k5 menu, select Tools->device Emulator Manager to open the Device Emulator Management window, which lists all the virtual machines available now, such as Pocket PC 2003, Smartphone 2003, etc. But now that we can't find the Wince6_emu simulator, we're going to compile the custom-built system and build the SDK.

One thing to mention before compiling is to cancel kitl (no imgnokitl=1), which cannot be started in non-debug mode without canceling this option. Right-click the project name, select Properties, and in the build options, uncheck Enable KITL (no imgkitl=1). You can then compile and compile for a relatively long time, depending on how much you customize the functionality.

After the compilation is successful, a file named Nk.bin is generated in the reldir corresponding directory, which is the runtime image to use for the virtual machine, and the solution is to attach the compiled system to the device. Before you do this, make some settings for the connection properties. Open the Vs2k5 menu, select Target---Connectivity options, open the Target Device Connection Properties dialog box, target devices Select CE device, download and transport Select device Emulator (DMA), debugger select None. Other settings for the emulator's operating parameters, such as screen size, memory size, and so on, are set in this dialog box.

After modifying the configuration click Apply and Close the window, select Target->attach device in VS2K5 to start attaching to the device, this time will be a few minutes, the Output window will show the added state, if the input window is stuck in a certain position, Emulator or a black screen, there may be a previous step in the configuration of the problem. You need to go back and check that when the simulator starts normally, you can see a Windows CE System Emulator window.

Next we create and install the SDK, which is designed to provide development support for target devices in vs2k5, such as class libraries, emulators, and so on. From the Vs2k5 menu, select the project, ADD New SDK to open the SDK Properties page. In Emulator, modify the configuration to device Emulator armv4i Debug, fill in the necessary information, click OK, then right-click the SDK that you just created in the Project window and select Compile. An MSI installation file is generated after compilation, located in the,sdks\<sdkname> directory under the Osdesign project folder. Close Vs2k5, and click Run this SDK and install.

After the installation is complete, open vs2k5, select Menu tools, Device Emulator Manager, open the Device Emulator Management window, we can see Wince6_emu has added the system we just created, right click on this project select Connect , the simulator window pops up and the CE system starts successfully.

This completes the entire process of customizing the CE6 operating system by PB, generating the SDK and installing it into the development environment. Once the installation is complete, we can develop debug-related applications on this custom CE6 platform.

Continued two:

Using PB6.0 to export an SDK to VS2005, it seems that VS2008 can also use this SDK. It is said that the development of the system must be used vs2005+pb6.0, and the development of the application can be used VS2008. There is no VS2008 on the machine , so it can't be tested. Anyway, we've got a simulator instead of a lab board, and we can use this simulator to debug the program.

Although the simulator, but the basic peripherals have, including network,Storage Card, debug serial port, also support synchronization. A little trick is found in the process of using the simulator. If you connect to the emulator from Device Emulator Manager, you must reset the network and the shared directory each time. This is not too much trouble, but in fact it can be once and for all, do not have to set every time. To do this, open the vs2005--tool-The options-device tool-device, to the interface shown, note the selection in the Red box, and then click Properties.

Click on the "Properties" Pop-up dialog box as shown, click "Emulator Options", to configure, do not introduce each, according to their own needs to set. After the configuration is complete, the next time you connect to this emulator from Device Emulator Manager, the configuration item is used here, and it is no longer necessary to configure it.

When debugging a program, it is unavoidable to use a remote tool. Some time ago when debugging the WinCE6.0 of the 2410 Development Board , we found that there are some minor problems in Remote tools, which need to be changed manually. A new situation was encountered today when testing the simulator. Supposedly, it has been synchronized, it can be used ActiveSync to do the connection. But the test found that it was not possible, as follows, prompting that "Unable to load device side components".


Can't you use Microsoft ActiveSync? Then try the network connection, the CEMGRC and other three files manually copied to the simulator inside, and run a long list of commands, test connection through, can really connect when not, pop up the following prompt box.

This is also the case when connecting WinCE5.0 devices with the 4.0 version of the Remote tools in eVC. is the version of Remote tools wrong? Look at the version of the information, it is really 6.0, this is very strange.

Previously in the directory of C:\Program files saw a CE Remote Tools directory, which should also be a remote tool bar. Go inside and see how many. But less than the directory C:\Program files\common Files\Microsoft Shared\windows CE tools\platman\bin\wce500, the file name is not the same. Do not begin with CE, but with cc. Open to see again, with the previously used Remote zoomin is really different! The left is newly opened, and the right is opened from the Remote tools in PB6.0. Looks like the left side of the more reliable, after all, can see our own simulator.

Connect, wait,downloading Bitmap, sure enough! Compare these two versions exactly where they are.

All become the game of finding fault, in addition to the version are 6.00, there are really a lot of different places. ^_^ I wonder why this difference, two is 6.0 Ah! Try another tool, and there's no problem. Can use the Connection property settings as shown, we can see that it does not use ActiveSync or network connection, so you can not configure the emulator's network card, and do not synchronize with the host.

Finally, you can find this 6.0 version of Remote Tools from the Start \ Program \microsoft Visual Studio 2005\visual Studio Remote Tools . So does it mean that 6.0 of the Remote tools released with VS2005 are really available in the 6.0 version, but not with Platform Builder 6.0?

Building the Windows Embedded CE 6.0 development environment

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.