Application debugging Based on WinCE Simulator

Source: Internet
Author: User
Tags microsoft website
-

Author: arm-WinCE

 

I have introduced the use of the wince simulator in my previous blog. It should be said that it is more convenient to debug the application on the wince simulator. Today, we will introduce how to debug applications on the wince simulator.

 

Here I assume that you do not have any tools on your PC and you have no money to buy them. Then you can register on the Microsoft website, and then you can download the evaluation versions of wince6.0 and vs2005, download and install them, and then upgrade your wince6.0 to wince6.0 R2, for detailed steps, see my previous blog:How to installWince6.0. Finally, we need to download and install ActiveSync from Microsoft's website.

 

Now that I think you have installed wince6.0 R2, you can open vs2005 to create a wince project. When selecting BSP, select "device emulator: armv4i ", when selecting a template, select "PDA device" and then "Mobile handled". The default mode is Debug. Switch to release mode and compile the template. After compilation, you need to configure the simulator and finally download the compiled wince to the simulator for running. For detailed steps, see my previous blog:Wince emulatorIntroduction.

 

First, we will introduce wince on the simulator.Configuration:

1. After running wince in the simulator, choose Start> Settings> Control Panel,

 

 

2. In the displayed Control Panel dialog box, select Network and Dail-up connections, double-click make new connection, and select direct connection from the connection type,

 

3. Select next, and then select Serial over DMA,

 

4. Select finish to create a new connection. After the creation is complete, return to the Control Panel Interface and select PC connection, select change in the pop-up interface, and then select the newly added my connection,

 

5. Click OK and close the control panel. Now the simulator device is configured.

 

The following describes ActiveSync.Configuration:

1. Install and run ActiveSync. Select file from the menu, select connect settings, and set the settings as follows:

 

2. After the settings are complete, select OK, select Tools in the vs2005 environment, and then select device emulator manager. An application interface is displayed, and click Refresh on the interface to refresh the page,

 

3. Select the current simulation device and click "Cradle". The system displays ActiveSync for connection,

 

After the connection is successful, you can access the files in wince running on the simulator in ActiveSync. At this time, the application debugging environment based on the simulator has been basically established.

 

Next, create an application to debug it:

1. the first step is to export the SDK based on the previously created wince project. The specific steps are not described. After the Export SDK is exported and installed, you can create an application based on the Export SDK. Open a new vs2005 and create a new project.

 

 

2. After Entering the name, click Next. When selecting the Platform SDK, you can only select your own customized wince SDK. Here, the customized wince SDK is called emulatorsdk,

 

3. Select next. You can select a single document and multiple documents. Based on the dialog box, click Finish. The following is the same as the VC program written on the PC. Simply add a button and a MessageBox will pop up. After the program is completed, it can be compiled and debugged, press F5. If the program compilation is correct, it will be downloaded to the simulator for running. This process takes a while, and then you will see the application you just compiled on your simulator,

 

If your application is in debug mode, you can set a breakpoint in your application. After the program is executed, it stops and can be tracked in one step.

 

I don't know what I mentioned above. In short, after vs2005 and wince6.0 R2 are installed, I can debug the wince kernel and application programs on the simulator on the PC. I can customize the kernel by myself, export your own SDK and use your own SDK to compile and debug the application.

 

 

 

Transferred from:

 

 

Http://blog.csdn.net/nanjianhui/archive/2009/01/13/3769519.aspx

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.