Mt6573 debug mode for Android in eclipse

Source: Internet
Author: User
Mt6573 debug mode for Android in eclipse

Mt6573 android has two debugging methods in Eclipse: Compile the simulator, debug the simulator, and remote debug through the real machine.

The simulator debugging passes. /mK emulator new compiles the mt6573 simulator to generate *. the imgfile overwrites the file to the Android-SDK-Windows \ platforms \ Android-10 directory, and then creates a simulator for debugging. However, the simulator runs very slowly. In addition, some functions of the simulator run differently from those of the real machine. So it is very difficult to use. The following describes remote debug through a real machine.

1. Install the driver. It is best to use the MTK release driver.

2. Compile the code and install the target BIN file on your mobile phone. Boot.

3. Connect the USB cable to your mobile phone and computer. Enable the mobile phone debugging mode. See figure 1.

Figure 1

4. Import the mt6573 project to eclipse. Use the New-> JAVA project method to create an existing project. The import time may be a little long and there may be n errors, but it does not matter. 2.

Figure 2

5. Prepare for the next breakpoint. Open ddms and select an app process. For example, MMS, Com. Android. MMS. Open Java and configure remote Java application in run-> debug configurations. Note that the debug port is set to 8700. After the settings are completed, a prompt is displayed, selecting proceed. Then go to ddms and you will see a bug icon before the com. Android. MMS process. 3. Figure 4, Figure 5, and figure 6.

Figure 3

Figure 4

Figure 5

Figure 6

6. breakpoint. Taking Compose New message in messaging as an example, the breakpoint is placed in oncreate of composemessageactivity. java. Click Debug. Then, enable MMS on the mobile phone and click compose new message to open the breakpoint. 7. Real machine debugging is OK.

Figure 7

Related Article

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.