MTK mobile phone software development process (1)

Source: Internet
Author: User
Tags imagemagick

MTK mobile phone softwareThe process is the content to be introduced in this article, mainly to understand and learnMTK mobile phone softwareThis article provides a detailed description of the application.MTK mobile phone softwareDetailed process of development. For details, refer to this article.

Compilation tools and auxiliary tools:

 
 
  1. ADS1.2  
  2. ADS12_update_842.exe  
  3. MSYS-1.0.10.exe  
  4. MinGW-3.1.0-1.exe  
  5. ImageMagick-6.2.5-5-Q16-windows-dll.exe  
  6. 7z313.exe 

MTK mobile phone software compilation process

Compilation tools and auxiliary tools:

 
 
  1. ADS1.2  
  2. ADS12_update_842.exe  
  3. MSYS-1.0.10.exe  
  4. MinGW-3.1.0-1.exe  
  5. ImageMagick-6.2.5-5-Q16-windows-dll.exe  
  6. 7z313.exe 

Start Compilation:

Switch to the project root directory and run the following command in the command line:

 
 
  1. makecustom=projgprsnew 

The command can be clean, update, and remake.

Target file:

The generated target file is the. binfile, which is located inMTKUnder the \ build \ proj directory, the build directory is a generated directory.

Log File:

The Log file is also located in the build directory like the. binfile. If a compilation error occurs, you can view the error module in the command line and find the corresponding log file in the build directory.

Simulation Environment:

The project file PixtelMMI. dsw is located under the MTK \ plutommi \ mmi directory, and thus enters the simulation environment.

Program:

Tool flash_tool.exe can be used to burn a program.

The tool mainly sets the Comport and target file location.

You can use the built-in Downloadargent and scatterfile. After you select these two items, the ROM option is displayed. You can select the. binfile after clicking. For example:

After setting the above parameters, connect to the phone, power off the phone, and press the power on key to burn the program.

Trace Tool

Tracetool ---catcher.exe needs to be used to perform tracetrace operations on the mobile phone.

The trace interface is kal_prompt_trace on the mobile phone, just like GSMprinf on agere.

Use catcher.exe,

You must set the DataBase first. This file is generated during compilation and is a binary file without an extension. The file is located in \ MTK \ tst \ database_classb, for example, BPLGU...

In catcher.exe, the method for setting the DataBase is config à setdatabasepath.

Second, you must set the mode to logging so that the following settings can be performed.

This setting is in control à mode à logging

Third, set the comport.

4. When the connection is switched on and off, catcher.exe is on standby.

Fifth, set filter. This filters out some logs that you do not need. Sometimes the log does not appear for half a day. In this case, selecting filter again will solve the problem.

Set the Filter path to control à setfilter.

Catcher.exe uses the same connection line for the program.

Save log:

In the log area, select the log you want to save (shift + mouse available), right-click and select saveas...

Sometimes, to facilitate testing, trace is disabled by default and can be enabled as needed.

This setting is in engineering mode.

Set up a proper UART port on the device. For example, UART1 can be traced.

Compilation error:

Sometimes there may be some inexplicable errors during compilation. For example, if the code can be compiled just now, but not now ,. the above is the basic environment and basic process of project development. The following content is the specific development details.

Add file:

In the development process, addition and subtraction are indispensable. Deleting a file is actually the opposite process of adding a file, so it is skipped.

MTKMany lst and pth files are set for users to add files, all of which are in the make folder. You can add modules by yourself or use the original lst and pth files. The following uses MTK \ make \ plutommi as an example.

Add the header file path:

 
 
  1. plutommi.inc 

Add the path to this module:

 
 
  1. plutommi.pth 

Add source file path:

 
 
  1. plutommi.lis 

After the files are added, they can be compiled.


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.