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:
- 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
MTK mobile phone software compilation process
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:
- 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:
- 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.