AboutMTK DevelopmentThe Learning document is the content to be introduced in this article.MTK DevelopmentThis article describes in detailMTKFor more information, see this article.
Compilation tools and auxiliary tools:
- ADS1.2
- ADS12_update_842.exe
- MSYS-1.0.10.exe
- MinGW-3.1.0-1.exe
- ImageMagick-6.2.5-5-Q16-windows-dll.exe
- 7z313.exe
Start Compilation:
Switch to the project root directory and run the following command in the command line:
- make custom=proj gprs new
The command can be clean, update, and remake.
Target file:
The generated target file is the. binfile, which is located under the MTK \ build \ proj directory. The build directory is the 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:
The Flash_tool.exe tool can be used to program the program.
The tool mainly sets the Comport and the target file location to Download argent and scatter file. After these two items are selected, the ROM option will appear, click to select. binfile.
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.
To use Catcher.exe, you must first set the DataBase. 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:
1. BPLGU. In Catcher.exe, set the DataBase to config à set database path.
2. Set the mode to logging so that the following settings can be performed. This setting is in control à mode à logging.
3. Set the comport.
4. Turn on the connection switch, indicating that Catcher.exe is on standby. Fifth, set filter to filter 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 à set filter. 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 choose save... Sometimes, to facilitate testing, trace is disabled by default and can be enabled as needed. In engineering mode, set the device to set UART to TST Config and set the appropriate UART port. For example, UART1 can be traced.
Compilation error:
Sometimes there may be inexplicable errors in compilation, for example, if you can just compile and pass, but not now. The above is the basic environment and basic process for project development.
The following content is 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.
MTK sets many lst and pth files for users to add files, all of which are in the make folder. You can add modules on your own, or use the original lst and pth files to add the following to MTK \ make \ plutommi.
Add the header file path:
Plutommi. inc
Add the path to this module:
Plutommi. pth
Add source file path:
Plutommi. lis
After the files are added, they can be compiled.
Add switch:
The switch is really a good thing. Relying on it, you can instantly block unvaluable functions, and enable the functions we need but are shelved. What a social law can be like a person who can't.
The add switch is in the. mak file under the make folder.
Note:
Some people like to imitate the original MTK practice and use one switch in the. mak file to hold another switch. The two switches must not have the same name. Otherwise, the switches cannot be switched off.
Add a string resource:
1. Add the ID in GlobalDefs. h.
2. Associate ID and string in population. c.
3. You can use this text resource by adding the ID and text in various languages in plutommi \ Customer \ CustResource \ PLUTO_MMI \ ref_list.txt.
After compilation, a new CustStrMap. c and CustStrRes. c files are generated under plutommi \ Customer \ CustResource, which contain the newly added string resources.
Add image:
1. Add ID in GlobalDefs. h
2. Associate ID and string in population. c.
3. Add images to the decompressed package. After adding images, package them. The folder in plutommi \ Customer \ Images \ PLUTO176X220 is generated and can be seen as private on cc.
4. After the folder is added, it will be packed. If it is added only to the folder, it will be cleared. If no image file is found, when the mobile phone displays a red * when adding an image, note that the path is added to NVRam with 4 bars: You need to increase the ID to indicate the size of each block, and the total number of blocks and default values. The size of each block is preferably an even number. Modify the following file: Nvram_user_defs.h: ID, size, and number.
- NVRAMEnum.h
- Nvram_user_config.c
- custom_nvram_editor_data_item.h
Summary: DetailsMTK DevelopmentThe content of the learning document has been introduced.MTK DevelopmentLearning an article is helpful to you!