MTK development process and development environment learning notes

Source: Internet
Author: User

MTKDevelopment Process andDevelopment EnvironmentLearning notes are the content to be introduced in this article.MTKOfDevelopment EnvironmentAndMTKThe framework and implementation of specific content are described in this article.

I. MTK framework

The MTK Mobile Phone development platform is a mobile phone development platform developed by MediaTek. It encapsulates some basic functions of mobile phones in the source code of MediaTek. Our company's MMI is to develop software based on MTK source code for different customer groups, including adjusting UI resources, encapsulating SP and Corresponding applications ).

The main framework of MTK is as follows:

PS:

MMI Application Layer: Contains custom applications.

UI Layer: encapsulate some UI-related functions

Framework: encapsulate message management and event processing.

Layer Operating System & Protocol Stack Layer & Driver: information about the Protocol Stack and Driver.

2. Build the development environment

To facilitate R & D on the MTK platform, install the following software:

1. ADS compiler. Because the ARM processor used by the MTK platform needs to be compiled using the ADS compiler.

2. beyond compare. This software can be used to compare the differences between two file text files), so that we can understand what changes we have made.

3. Distributed compilation tool. Because MTK has a large number of files, it is time-consuming to use the standalone compilation method, so you need to use the distributed compilation software increditbuild to speed up program compilation.

4. encryption software. The company's MTK source code is encrypted, so IT needs to install the yicaitong software to decrypt the specific installation by IT personnel ).

5. CC. Because the company's version update speed is fast, we use CC for version management.

6. CQ. CQ is used to facilitate communication between testers and developers. Testers submit bugs Through CQ. developers can view the status of bugs, modify the status after handling, and then perform tests.

7. It is better to install the vc assistant plug-in VC6.0 to view the code more clearly ). Facilitate debugging.

8. Sourceinsigt. Allows you to conveniently view and modify code.

3. MTK file structure

The MTK program contains a large number of files. for developers, you only need to know several commonly used folders. The structure of several commonly used file structures is as follows:

PS:

Customer: stores some resource definitions, simulator skins, and icons. Slice, menu, String, Font, language, topic ....

MMI: One of the major changes to code. Among them, INC is some header files, Framework includes file management, event processing, NVRam, history, OSL, task management, and xxxAPP are some application code such as Call and Message). Some UI components and category are defined in the GUI.

Mtkapp: The application definition includes INC and SRC), such as Camera and TV.

Iv. Use of common development tools

InMTKThe following tools may be used during development and the specific usage is as follows:

1. Use of the ADS compiler. Because MTK has written the specific compilation process of the program into batch processing files, we do not need to write tedious make files, just need to callMTKTo complete the compilation. Run the cmd command to go to the command line interface and run the cd command to go to the code path of our project file. The command is as follows :,

Make "project" gprs new: Compile the entire project for the longest time, unless you add resources or modify the mak file, usually rarely use ).

Make "project" gprs r [Module name]: Compile and modify the c file. If you know which module you want to modify, follow the module name directly.

Make "project" gprs gen_modissimulator_gen "project" gprs) regenerate the simulator.

Make ratech35_08b gprs resgen: to modify the resource file, run this command to convert the resource to a C file.

2. How to Use CQ (double-click query condition to add)

À Rational software à Rational ClearQuest à Clear Quest à Log On with the user name and password. Click Create Grid Query in the upper left corner. On the displayed page, select "next" and select the column id and Owner to be queried, project, State, Headline, Description) à select the query option Project and State on the Filter Interface) Next à click the selected option, such as Project) click the Value button to add conditions. Then, Run will display the Bug status.

3. Use of CC.

Kicà Program

 
 
  1. àRational software àRational ClearCaseàClearCase ExporeràBaseClearCaseàCreateView 

Create a View. After creation, we can perform Update, CheckOut, CheckIn, and other operations on the existing View. The Update Rule can also be modified after the View is created. The example is as follows:

 
 
  1. element * CHECKEDOUT  
  2. element * .../rgt_m800_base/LATEST  
  3. element * /main/LATEST -mkbranch rgt_m800_base  
  4. load /RATECH35_08BW0912MP_V1_F1_MMI 

PS: you can create your own branch in CC as follows

In CC, right-click your file, select Explorer Type, open the brunch type folder, and create your own node in the folder.

4. Use of Flash Tool.

In ratech35_08b.mak, set RGT_MODIS_BUILD to FASLE.

Make New generate binfile

Open Flash Tool and select MTK_AllinOne_DA.bin under the installation directory of Flash Tool on download agent. Click Scatter-Loading and select

 
 
  1. code/build/RATECH35_08B/RATECH35_08B_PCB01_gprs_MT6235B_S01.M800_XXX_UIM_0910.bin 

Power on the main board, connect to the main board using USB cable, and click download in Flash Tool to start downloading.

PS:

When you turn off the power supply, remove the power cord of the motherboard first, and then turn off the power supply.

The power supply voltage should be around 3.9v, not higher than 4.1 v

5. Format: kal_prompt_trace (MOD_USB, "LCD _backlight = % d, % d", LCD _backlight, time_enum );)

Download the BIND file to your mobile phone

Start the instance and enter * #9646633 # In the phone to enter the working mode, select a device in the working mode, select Set UART, select UART Setting from the Set UART menu, and Set TST In The UART Setting menu. -PS-Config is UART-1 (baud rate is set to 115200), set PS-Config to the same as the non-baud rate ).

Connect your phone and PC with a serial line. Open catcher.exe and make the following settings:

Config Menu à SetDatabasePath à path select/code/tst/database_classb/... srcp... À select the Catcher shortcut icon loading mode.

Summary:MTKDevelopment Process andDevelopment EnvironmentThe course notes have been introduced, and I hope you can learn through this article to help you!

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.