2. Integrated Development Environment

Source: Internet
Author: User

Author: Wen Bin
Source: Wen bin program network http://www.wenbinweb.com

To customize the CE operating system, Microsoft provides an integrated development environment for platform Builder (PB for short, but different from the database development tools of Power Builder, next, let's take a look at this development environment and use it to generate a CE operating system.

Let's talk about the purchase of Pb. PB is a commercial software. You need to contact Microsoft's agencies in China to purchase it. The price is about 10000 ~ 15000, which can be queried by agencies. For non-commercial purposes, you can download the evaluation version from Microsoft's website. It seems that this version only supports the cepc architecture and cannot be used in commercial development. The PB used in this tutorial is a genuine software purchased from Microsoft. The version number is 4.2, so it may be different from the evaluation version because I have never used the evaluation version, therefore, the details are unknown.

You can install the ghost program. There are two points that need to be emphasized during the installation process. First, we need to select the architecture we actually need. Ce supports the embedding of X86, arm, and RISC architectures, you need to choose based on your needs. Do not select multiple or occupy hard disk space, and do not select less or wrong options to re-install them when they are used in the future, here we use the x86 Structure and Its simulator. The second is to try to put the wince420 folder in the non-boot partition as much as possible, that is, if your hard disk's boot area is a drive C, so wince420 is best placed on a large disk with other spaces to prevent the CE system you have prepared from being formatted when the boot partition damages and reinstalls the system in the future, because the items in the wince420 folder are CE system components and your own CE system.

After Pb is installed, you can run it. Let's take a look at its window structure.

 

How is it like VC ++? Yes, the workspace window is on the left. It will contain your CE system and the start window is in the middle. It is of no specific use. The Catalog window is on the right, it is a CE kernel package provided by PB for you to choose from. You only need to select the components you need from the workspace window on the left and compile them, then you can get your CE system, which is simple and intuitive. At the bottom is the output window, which is the output window for compilation, debugging, logs, and search, which is the same as that of VC ++.

Next, we will first generate our CE system on the simulator.

We have seen a "new platform" button in the middle of the screen. You can also find this command in the "file" menu. We will start by clicking this button.

Someone has figured out what will happen. That's right, it's a wizard that Microsoft uses.

The first step is to show you what the wizard can do for you and click "Next ";

The second step is to let you choose BSP, the so-called BSP is the board support package, is provided by the motherboard manufacturers to your ce components, x86 as an example, there are three options, cepc is a BSP Based on PC hardware on the X86 architecture; emulator is a simulator on the X86 architecture, that is, a hardware platform is simulated by software on the PC, if we do not have a hardware platform, we can use this simulator to simulate a platform on our PC. Of course, the function is limited. National geode uses the x86 structure of geode microprocessor, if the CPU you are using is like this, you should first use this BSP. Select a simulator first.

Step 3: Configure your platform, as shown in:

You can select an item in the available configuration, such as a digital multimedia device, enterprise terminal, or mobile phone. You can also select a custom configuration, and select the storage path and platform name of your system, here we will first select an Internet appliance and place it in the default path. The platform name is "hello.

Step 4: configure the applications and multimedia options you want to include in your system, for example, whether or not to include. NET Compact frameworks support, whether to include IE browser, whether to include MP3 play or MPEG-4 play and so on, in addition to the default value.

Step 5: configure the network communication component as step 4 and take the default value.

Step 6: complete.

So far, our first CE operating system has been customized, And the next thing we need to do is compile, run the "build platform" or "rebuild platform" command under the "build" menu, before compilation, use "set Active configuration" under the "build" menu to determine whether to compile the debug or release version. The compilation time is relatively long and generally takes more than 10 minutes, let's take a look at the selected components. Please wait for a while, or take a rest.

Now that the compilation is complete, let's take a look at the changes in the wince420/public/Hello folder. There are debug and release folders in the reldir folder, respectively, in the release folder, We can find many files during and after compilation and find NK. binfile, which is the package file of our CE system, that is, the final CE system.

Next let's use the simulator to run our own system.

First, run the "configure remote connection" command under the "target" menu. In the displayed dialog box, configure the following:

Then run the "download/initialize" command in the "target" menu to download the generated operating system to the device and initialize the device. Here we have already configured it, download To the simulator. In the dialog box popped up during this period, you can select "yes". Finally, we can see the System Simulator Interface, which is our customized Hello CE system.

If the operation is complete, in addition to closing the simulator window, run the "Disconnect" command under the "target" menu to disconnect the device.

Now, we will introduce the integrated development environment Pb. Have you learned how to use PB to build your CE operating system?

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.