codewarrior使用指南

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

TMTransitionTitleCodewarrior使用指南田云锋汽车电子现场应用工程师2005年6月R63492@freescale.comTMFreescale™andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.©FreescaleSemiconductor,Inc.2005.Slide2内容•codewarrior简介•利用向导创建一个新工程项目•在新项目中加入或删除文件•编译•调试•启动程序•PRM文件设置•如何对IO及寄存器进行操作•如何写中断程序•如何使用汇编和C语言混合编程•嵌入式编程注意事项•如何使用ProcessorExpertTMFreescale™andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.©FreescaleSemiconductor,Inc.2005.Slide3项目创建•ProjectcreationImportantchoicesaremade(derivative,language,targetsusedforthedevelopment)Usuallydifficulttochangeanyoftheseoncetheprojectisstarted•CodeWarriorsolution:ProjectWizardIntuitivemenutoguidethedeveloperthroughtheselectionprocess,Choiceofthederivative,Choiceofthelanguage(Absoluteassembly,assembly,C,CwithProcessorExpert,C++)Choiceoftarget(simulator,varioushardwareconnections)Otheroptions(PC-Lint,Boardsupportpackages)Completeprojecttemplatepreparedwithfiles,developercanjust“insertthecodehere”ProjectCreationH/WSpecificCodegenerationApplicationSpecificCodeDevelopmentTest/Debug&ValidationH/W–S/WIntegrationProjectWizard-Derivative-Language-TargetsTMFreescale™andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.©FreescaleSemiconductor,Inc.2005.Slide4Hardwarespecificcode•HardwarespecificcodegenerationDevelopershavetounderstandthedetailsofperipheralregisters,bitfields,setupandaccesssequencesTrendisformoreandcomplexperipherals,withmoreregisters,increasingtheeffortofwritingaccuratecodeforeachperipheralofthederivative.Butthereisnoaddedvaluefromaprojectstandpoint,allapplicationsneedsomefromofcodetoperformthefunctionProjectCreationH/WSpecificCodegenerationApplicationSpecificCodeDevelopmentTest/Debug&ValidationH/W–S/WIntegrationProcessorExpertDerivativesKnowledgeDatabaseCodeWarriorsolution:ProcessorExpert-Applicationdesigntoolusingknowledgedatabase,-Graphicalselectionofperipheralparameters,-Auto-generationoflow-leveldrivers,-High-level‘beans’available,-Makestheuser’smanualeasy.TMFreescale™andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.©FreescaleSemiconductor,Inc.2005.Slide5Applicationspecificcode•ApplicationspecificcodedevelopmentNeedauser-friendlyeditor,beabletodevelopabsoluteassemblycode,needanefficientcompiler(codesize,speed)•CodeWarriorsolution:IDE,Editor,Assembler,Compiler,LinkerIDEwithutilitiessuchasfilecompare,projectsettings,targetsettingsMulti-panecolorcodededitor,‘goto’codedefinition,‘goto’proceduresdefinitionAbsoluteassemblerandreallocateableassemblerCompilerwith50+optimizationsLinkerwitheditableparametersprojectsthatchangeoftenorhavemultipledevelopers.ProjectCreationH/WSpecificCodegenerationApplicationSpecificCodeDevelopmentTest/Debug&ValidationH/W–S/WIntegrationEditorCompilerAssemblerLinkerTMFreescale™andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.©FreescaleSemiconductor,Inc.2005.Slide6Test,debugandvalidation•Test,debugandvalidationWithoutsimulator,itisimpossibletotestsoftwareuntilhardwareisavailable,Developershavetomakeupfordelaysatthecriticalstage,reducingtesting,integrationandquality,Improvedcodevalidationwillreduceproductmaintenance,reduce“endofproject”costs.•CodeWarriorsolution:IDE,DebuggerandSimulator,DataVisualization,I/OStimulationProjectCreationH/WSpecificCodegenerationApplicationSpecificCodeDevelopmentTest/Debug&ValidationH/W–S/WIntegrationDebuggerMulti-TargetInterfaceSimulatorDataVisualizationI/OStimulationRTOSawarenessProjectmanagerallowingtargetspecificfilesselectionandsystemsettingsFullyconfigurabledebugger,Instructionsetaccuratesimulator,I/OsimulationDataVisualization(direct,commandfiles)I/OStimulation(direct,commandfiles)RTOSawareness(e.g.OSEK)TMFreescale™andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.©FreescaleSemiconductor,Inc.2005.Slide7Hardwareandsoftwareintegration•HardwareandsoftwareintegrationWithoutsimulation,developersriskofgettingH/WandS/Wproblemsmixedup(nonehasbeenqualifiedyet),Developershavedifficultiestocompareaworkingcase(simulation)withanon-workingcase(hardwaretarget),•CodeWarriorsolution:Sameaspreviousslideplus:EasilyswitchbetweentargetsforcomparisonofresultsDataVisualizationandI/Ostimulation(simulationandtargets)FlashprogrammingsupportRTOSawareness(e.g.OSEK)ForeigntargetcapabilitythroughAPIProjectCreationH/WSpecificCodegenerationApplicationSpecificCodeDevelopmentTest/Debug&ValidationH/W–S/WIntegrationDebuggerMulti-TargetInterfaceSimulatorMultilinkDataVisualizationI/OStimulationRTOSawarenessUSB(e.g.inDart)APIFreescale™andtheFreescalelogoaretrademarksofFreescaleSemiconductor,Inc.Allotherproductorservicenamesarethepropertyoftheirrespectiveowners.©FreescaleSemiconductor,Inc

1 / 219
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功