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