.
MTK入门资料
文档内容:
-?MTK软件架构
-?如何编译
-?开发目录结构解析
-?开发工具的了解
-?程序入口,程序导读
-?MMI的制作
1.MTK软件构架
参考文档:MT6218_SW_
MTK为MediaTek公司提供的GSM软件方案。它包含5个局部:
-?L1协议
-?设备驱动
-?协议栈
-?MMI
-?WAP应用
MediaTek为用户提供3个工具:
-?Catcher
-?META
-?MCT
MTK软件架构图:
.
下面3个局部组成该软件方案:
utableSoftware,whichisthesoftwarerunning
ontheMS,includesthefollowingmodules
-OS:NucleusOS.
-L1ProtocolStack:GSMphysicallayer.
-Drivers:devicedriver,likeSIM,UART,GPIO,etc.
-L2/L3protocolstack:GSMprotocolstacklayer.
-MMI:man-machineinterface.
-WAP:Wirelessapplicationprotocol.
-JAVA:J2MESoftware
ileEngineeringTestingArchitecture,also
knownasMETA
r
.
-?OS
MediaTek采用NucleusOS实时操作系统。KALOS层为
MediaTek’s软件和Nucleus操作系统的接口。它为任务提供许多系
统效劳函数,比方计时器,队列,内存管理,事件等等。
-?L1ProtocolStack
ThephysicallayerorLayer1supportsthetransferof
bitstreamsontheradiomediumaccordingtotheTechnical
idesrvicetoupper
layersandcontrolthemappingandschedulingbetweenthe
Aframingandradio
controlpartsarealsoimplemented.
.
Layer1Asynchronous:handlesthemessagerequestfrom
upperlayersandforwardtheresultgeneratedbylayer1to
upperlayer.
SurroundingCellEngine:handlestheneighborcellpower
measurementandneighborcellsynchronizationinformation
acquisition.
Layer1Control:handlestheTDMAschedulingontheradio
environment,includingtimingadvanceandpowercontrol
commandfromrvingbastation.
Layer1Driver:handlestheDSPandRadiocontrol
-?Drivers
MCU外围设备的驱动,如下:
SIM:SubscriberIdentityModule
UART:UniversalAsynchronousReceiver/Transmitter
SPI:SerialPortInterface
LCD:LiquidCrystalDisplay
GPIO:GeneralPurpoInput/Output
GPT:GeneralPurpoTimer
RTC:RealTimeClock
WDT:WatchDogTimer
PWM:PulWidthModulation
Alerter
Keypad
PMIC:PowerManagementIC
BMT:BatteryChargingManagementtask
AUXtask:Auxiliarytask
ADCSched.:AnalogtoDigitalConverterScheduler
USBtask:TheUSB1.1protocolanddriver
IrDAtask:TheIrDAanddriver
Camera:Cameradriverforintegratingwith3rdpartycamera
module
MSDC:Memorycarddriver,supportingSD,MMCcardsandMemory
.
Stick
JPEGDecoder:SoftwareforcontrollinghardwareJPEGdecoder
-?L2/L3/L4ProtocolStack
这局部包含大量的GSM/GPRS需求以及提供一个优秀的GSM/GPRS
平台给应用程序。本地MMI和远程PC通过AT命令可以方便的使用该软
件平台。详细的结构如下:
RMI:远程MMI,比方PC端,可以使用AT命令通过串口与协议栈进
行通讯。
FMI:FeaturerichMMI,describedinthe
istheproductionco-workedwithPixtel.
L4:Layer4.L4isataskthroughwhichFMIand/orRMI
communicatewithPS.L4taskincludesveralsub-modules.
ATCI:retstheATcommandsfrom
PCsideandcommandstheL4Ctodotherelativeactions.
L4A:betweenFMIandL4A
isprimitiveba.
L4C:sallapplicationsrequestand
respon.
UEM:tionfordrivers,like
Keypad,LED,GPIO,Audio…etc.
PHB:sthephonebooksrelated
processing,like:sorting…etc.
SMU:SIMthecuritymanagement,and
STK.
CSM:Circuitswitchingprotocolstackmanagement.
RAC:Registrationaccesscontrol.
SMSAL:Shortmessagerviceapplicationlayer.
TCM:Terminalcontextmanagement.
.
NVRAM:adaptationlayertoflash
memory.
SIM:SIMbehaviorasETSI
11.11description.
DATA:skincludes
veralsub-modules.
FAX:Group3Facsimile.
TDT:Transparentcircuitswitchingdata.
L2R:Layer2relayprotocolfornon-transparentcircuit
switchingdata.
RLP:Radiolinkprotocolfornon-transparentcircuit
switchingdata.
CC:Circuit-switchedcallcontrol.
SS:Supplementaryrvice.
SMS:Shortmessagervice.
SM:Sessionmanagement.
MM/GMM:Mobilitymanagement/GPRSmobilitymanagement.
SNDCP:Subnetworkdependentconvergenceprotocol.
LLC:Logicallinkcontrol.
RR:includesveral
sub-modules.
RRM:HandlescelllectionandPLMNlection.
RMPC:HandlestheproceduresinIdle/Dedicatedstateincluding
thesurroundingcellschemeandmeasurementreporting.
LAPDM:HandlestheproceduredefinedinGSMlayer2.
RLC:Radiolinkcontrolprotocol.
MAC:Mediumaccesscontrolprotocol.
MPAL:AdaptationlayerforRRandL1A.
PPP:clientPPPlayer.
.
-?MMI
这局部包括用户的接口架构,应用以及和协议栈的通讯。
.
Framework:Thiscoversthat
OSL:OSadaptationlayer
Task:communicationwithL4task.
Filesystem:communicationwithstoragedevice.
GUI:Thiscoversthat
Theme
UIcomponent
Categoryscreen
Font
Editor
T9orEziinputmethod.
AccessLCDdriver.
Customizationtool.
Application
Phonebook
Messages(SMS,EMS4.0,CB)
Callhistory
Setting.(Phonetting,networktting,curitytup)
5kindsofurprofiles
Funandgames
Organizers
Services
Shortcuts
Incallmanagement.
Interruptevents,likecharging,alarm.
-?WAP
如何编译
参考文档:wcr-MTK_MakeBuild_Design_Customer_
-?编译环境
.
操作系统:Windows2000,WinXP.推荐Windows2000withSP2or
later.
编译器:ADS(ArmDeveloperSuite)v1.2.
Perl解析:ActivePerl.推荐使用ActivePerl版本
-?
Itwillparcommandlinetodetermineprojectname,
platform,ile,checkingmakedirectoryexist
checking,ldscripttoperform
action.
使用:
Usage:Make[custom=customername]
[module]"
custom=Monza
project=GPRS(GSMonly)
action=new(clean,scan,compile,link)(default)
=update(scan,compile,link)
=remake(compile,link)
=clean(clean)
module=componentmodulename(nucleus,l1,...)
Example:
Tomake/buildnewGPRSproject,cleanalloldobjects,libraries,
andlogfiletc.,thenewactionalsocreatesnecessary
directoriesandremovesalltemporaryfiles,andflusheslogfiles
automatically.
d:>pvcsmauimcuMakecustom=MonzaGPRSnew
Toupdateprojectdependency,andcompilechangedmodules,link.
Noticethat,updateandremakeactionwon’tremovetemporary
files,esultswillbeappendafterlast
logfile.
d:>pvcsmauimcuMakecustom=MonzaGPRSupdate
Torecompilechangedfiles,andlink
d:>pvcsmauimcuMakecustom=MonzaGPRSremake
Tocleanallobjects,temporaryfiles,libraries,andexecutable
ilelogfilewillalsobeflushed.
d:>pvcsmauimcuMakecustom=MonzaGPRSclean
Tocleandedicatedinitmodules’ilelog
filewillalsobeflushed.
d:>pvcsmauimcuMakecustom=MonzaGPRScleaninit
-?howtocustomizeyourbuildenvironment
!!!Toaddsomemodulesintoorremovesomemodulesfromthebuilding
.
procedure.
Tocompletethiskindofconfiguration,itisnecessaryto
understandthefollowingvariablesinthemakefile
Monza_
COMPLIST:.
Ininitialcustomrelea,COMPLIST
shouldbethesumofCUS_REL_SRC_COMPandCUS_REL_PAR_SRC_COMP.
Thefollowingistheinitialttingincustomrelea.
ifeq($(strip$(CUSTOM_RELEASE)),TRUE)
COMPLIST=$(strip$(CUS_REL_SRC_COMP))
COMPLIST+=$(strip$(CUS_REL_PAR_SRC_COMP))
endif
CUS_REL_MTK_COMP:y.
putinmcumtk_libs.
Ifyouwanttoaddasourcemodule
1、addthemodule"xyz"(inlowerca)intoCOMPLIST.
ifeq($(strip$(CUSTOM_RELEASE)),TRUE)
COMPLIST=$(strip$(CUS_REL_SRC_COMP))
COMPLIST+=$(strip$(CUS_REL_PAR_SRC_COMP))
COMPLIST+=xyz
endif
2、addafolder“mcumakexyz〞,,
,.
-?编译生成的文件以及log
1.编译的log在目录C:code_100builda100中的。
目录C:code_100builda100log下的log文件为各个模块编译时生成
的log。
2.编译生成的bin为C:code_100builda100下的
a100_PCB01_gprs_MT6218B_FN.W05_。
3.编译生成的目标文件在
C:code_100builda100gprsMT6218Bo目录中。
3、开发目录结构解析
参考文档:wcr-MTK_MakeBuild_Design_Customer_
目录结构:
.
本文发布于:2022-12-30 12:38:04,感谢您对本站的认可!
本文链接:http://www.wtabcd.cn/fanwen/fan/90/59805.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |