首页 j-link配套资料\官方使用说明\UM08004_JLinkRDI

j-link配套资料\官方使用说明\UM08004_JLinkRDI

举报
开通vip

j-link配套资料\官方使用说明\UM08004_JLinkRDIJ-LinkARMRDIUserguideoftheJ-LinkRDIInterfaceforJ-LinkARMEmulatorSoftwareVersion4.08ManualRev.0Date:August6,2009Document:UM08004AproductofSEGGERMicrocontrollerGmbH&Co.KGwww.segger.com2DisclaimerSpecificationswritteninthisdocumentarebelievedtobeaccurate,butareno...

j-link配套资料\官方使用说明\UM08004_JLinkRDI
J-LinkARMRDIUserguideoftheJ-LinkRDIInterfaceforJ-LinkARMEmulatorSoftwareVersion4.08ManualRev.0Date:August6,2009Document:UM08004AproductofSEGGERMicrocontrollerGmbH&Co.KGwww.segger.com2DisclaimerSpecificationswritteninthisdocumentarebelievedtobeaccurate,butarenotguar-anteedtobeentirelyfreeoferror.Theinformationinthismanualissubjecttochangeforfunctionalorperformanceimprovementswithoutnotice.Pleasemakesureyourmanualisthelatestedition.Whiletheinformationhereinisassumedtobeaccurate,SEGGERMicrocontrollerGmbH&Co.KG(themanufacturer)assumesnoresponsibilityforanyerrorsoromissions.Themanufacturermakesandyoureceivenowarrantiesorconditions,express,implied,statutoryorinanycommunicationwithyou.Themanufacturerspecificallydisclaimsanyimpliedwarrantyofmerchantabilityorfitnessforaparticularpurpose.CopyrightnoticeYoumaynotextractportionsofthismanualormodifythePDFfileinanywaywithoutthepriorwrittenpermissionofthemanufacturer.Thesoftwaredescribedinthisdoc-umentisfurnishedunderalicenseandmayonlybeusedorcopiedinaccordancewiththetermsofsuchalicense.©2002-2008SEGGERMicrocontrollerGmbH&Co.KG,Hilden/GermanyTrademarksNamesmentionedinthismanualmaybetrademarksoftheirrespectivecompanies.Brandandproductnamesaretrademarksorregisteredtrademarksoftheirrespec-tiveholders.ContactaddressSEGGERMicrocontrollerGmbH&Co.KGIndenWeiden11D-40721HildenGermanyTel.+492103-2878-0Fax.+492103-2878-28Email:support@segger.comInternet:http://www.segger.comManualversionsThismanualdescribesthelatestsoftwareversion.Ifanyerroroccurs,pleaseinformusandwewilltrytoassistyouassoonaspossible.Forfurtherinformationontopicsorroutinesnotyetspecified,pleasecontactus.ManualversionDateByExplanationChapter"UsingJ-LinkRDIwithdifferentdebuggers"3.91Rev.0080826AG*Section"IAREmbeddedWorkbenchIDE"updated.Chapter"Flashdownload":3.90Rev.0080811AG*Section"Supportedflashdevices"updated.Chapter"Flashdownload"updated.3.86Rev.0080630AGChapter"Breakpointsinflashmemory"updated.3.80Rev.0080307AGChapter"Licensing"added.Chapter"Configuration":9070919SK*Section"ConfigurationfileJLinkRDI.ini"included.Chapter"UsingJ-LinkRDIwithdifferentdebuggers":8070803SK*Section"ARM’sRVDS"updated.Chapter"UsingJ-LinkRDIwithdifferentdebuggers":*Section"KEILµVision3IDE"added.Chapter"Configuration":7070115SK*Somechangesinchapterstructure.*Section"LocationofConfigfile"renamedto"Configfile"*Section"Configfile"enhanced.6061221SKPreface:Companydescriptionadded.J-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG3ManualversionDateByExplanationSection"UsingGHSMulti"added.5061106SKSection"License(J-LinkRDILicensemanagment)"added.4060801TQUpdatedlistofsupportedflashdevices.3060703OOSection"Resetstrategy":Addedlistingofavailableresettypes.2051111TQAddingdescriptionofadaptiveclocking.Minorcorrections.1051028OOInitialversion.SoftwareversionsReferstoRelease.htmlforinformationaboutthechangesofthesoftwareversions.J-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG4J-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG5AboutthisdocumentAssumptionsThisdocumentassumesthatyoualreadyhaveasolidknowledgeofthefollowing:•Thesoftwaretoolsusedforbuildingyourapplication(assembler,linker,Ccom-piler)•TheCprogramminglanguage•Thetargetprocessor•DOScommandline.IfyoufeelthatyourknowledgeofCisnotsufficient,werecommendTheCProgram-mingLanguagebyKernighanandRichie(ISBN0-13-1103628),whichdescribesthestandardinC-programmingand,innewereditions,alsocoverstheANSICstandard.HowtousethismanualThisdocumentdescribesJ-LinkRDI.ItprovidesanoverviewoverthemajorfeaturesofJ-LinkRDI,givesyousomebackgroundinformationaboutFlashbreakpointsandconfigurationingeneralanddescribesusingRDIcompliantdebuggerswithJ-LinkRDI.Finally,thechapterSupportonpage83helpstotroubleshootcommonprob-lems.TypographicconventionsforsyntaxThismanualusesthefollowingtypographicconventions:StyleUsedforBodyBodytext.Textthatyouenteratthecommand-promptorthatappearsontheKeyworddisplay(thatissystemfunctions,file-orpathnames).ParameterParametersinAPIfunctions.SampleSamplecodeinprogramexamples.ReferenceReferencetochapters,tablesandfiguresorotherdocuments.GUIElementButtons,dialogboxes,menunames,menucommands.EmphasisVeryimportantsectionsTable1.1:TypographicconventionsJ-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG6SEGGERMicrocontrollerGmbH&Co.KGdevelopsanddistributessoftwaredevelopmenttoolsandANSICsoftwarecomponents(middleware)forembeddedsystemsinseveralindustriessuchastelecom,medi-caltechnology,consumerelectronics,automotiveindustryandindustrialautomation.SEGGER’sintentionistocutsoftwaredevelopment-timeforembeddedapplicationsbyofferingcompactflexibleandeasytousemiddleware,allowingdeveloperstoconcentrateontheirapplication.OurmostpopularproductsareemWin,auniversalgraphicsoftwarepackageforembed-dedapplications,andembOS,asmallyetefficentreal-timekernel.emWin,writtenentirelyinANSIC,caneasilybeusedonanyCPUandmostanydisplay.Itiscomple-mentedbytheavailablePCtools:BitmapConverter,FontConverter,SimulatorandViewer.embOSsupportsmost8/16/32-bitCPUs.Itssmallmemoryfootprintmakesitsuitableforsingle-chipapplications.Apartfromitsmainfocusonsoftwaretools,SEGGERdevelopesandproducesprogram-mingtoolsforflashmicrocontrollers,aswellasJ-Link,aJTAGemulatortoassistindevel-opment,debuggingandproduction,whichhasrapidlybecometheindustrystandardfordebugaccesstoARMcores.CorporateOffice:UnitedStatesOffice:http://www.segger.comhttp://www.segger-us.comEMBEDDEDSOFTWARESEGGERTOOLS(Middleware)emWinFlasherGraphicssoftwareandGUIFlashprogrammeremWinisdesignedtoprovideaneffi-FlashProgrammingtoolprimarilyformicrocon-cient,processor-anddisplaycontrol-trollers.ler-independentgraphicaluserinterface(GUI)foranyapplicationthatJ-Linkoperateswithagraphicaldisplay.JTAGemulatorforARMcoresStarterkits,eval-andtrial-versionsareUSBdrivenJTAGinterfaceforARMcores.available.J-TraceembOSJTAGemulatorwithtraceRealTimeOperatingSystemUSBdrivenJTAGinterfaceforARMcoreswithembOSisanRTOSdesignedtoofferTracememory.supportingtheARMETM(Embed-thebenefitsofacompletemultitaskingdedTraceMacrocell).systemforhardrealtimeapplicationswithminimalresources.TheprofilingJ-Link/J-TraceRelatedSoftwarePCtoolembOSViewisincluded.Add-onsoftwaretobeusedwithSEGGER’sindus-trystandardJTAGemulator,thisincludesflashemFileprogrammingsoftwareandflashbreakpoints.FilesystememFileisanembeddedfilesystemwithFAT12,FAT16andFAT32support.emFilehasbeenoptimizedformini-mummemoryconsumptioninRAMandROMwhilemaintaininghighspeed.VariousDevicedrivers,e.g.forNANDandNORflashes,SD/MMCandCom-pactFlashcards,areavailable.emUSBUSBdevicestackAUSBstackdesignedtoworkonanyembeddedsystemwithaUSBclientcontroller.Bulkcommunicationandmoststandarddeviceclassesaresup-ported.J-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG7TableofContents1Introduction....................................................................................................................111.1WhatisRDI?...........................................................................................121.1.1FeaturesofJ-LinkRDI..............................................................................121.2Requirements..........................................................................................121.3Basicprinciples.......................................................................................131.4Purchase................................................................................................131.5Requiredlicenses.....................................................................................132Licensing........................................................................................................................152.1Introduction............................................................................................162.2Softwarecomponentsrequiringalicense....................................................162.3Licensetypes..........................................................................................162.3.1Built-inlicense........................................................................................172.3.2Key-basedlicense....................................................................................172.3.3Device-basedlicense................................................................................173UsingJ-LinkRDIwithdifferentdebuggers.....................................................................213.1IAREmbeddedWorkbenchIDE..................................................................223.1.1Softwareversion.....................................................................................223.1.2ConfiguringtouseJ-LinkRDI....................................................................223.1.3Limitations..............................................................................................243.2ARM’sAXD(ARMDeveloperSuite,ADS).....................................................243.2.1Softwareversion.....................................................................................243.2.2ConfiguringtouseJ-LinkRDI....................................................................253.2.3Limitations..............................................................................................263.3ARM’sRVDS(RealViewdevelopersuite)......................................................273.3.1Softwareversion.....................................................................................273.3.2ConfiguringtouseJ-LinkRDI....................................................................273.3.3Limitations..............................................................................................323.4GHSMULTI.............................................................................................333.4.1Softwareversion.....................................................................................333.4.2ConfiguringtouseJ-LinkRDI....................................................................333.4.3Limitations..............................................................................................353.5KEILµVisionIDE.....................................................................................363.5.1Softwareversion.....................................................................................363.5.2ConfiguringtouseJ-LinkRDI....................................................................363.5.3Limitations..............................................................................................394Configuration..................................................................................................................414.1Overview................................................................................................424.1.1ConfigurationfileJLinkRDI.ini....................................................................424.1.2Usingdifferentconfigurations....................................................................424.1.3UsingmutlipleJ-Linkssimulatenously.........................................................424.2Configurationdialog.................................................................................434.2.1General..................................................................................................434.2.2Init........................................................................................................454.2.3Comandsinthemacrofile........................................................................464.2.4Exampleofmacrofile...............................................................................464.2.5JTAG......................................................................................................474.2.6Flashconfiguration..................................................................................48J-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG84.2.7Breakpoints............................................................................................494.2.8CPU.......................................................................................................504.2.9Log.......................................................................................................535Flashdownload..............................................................................................................555.1Overview...............................................................................................565.2WhyshouldIuseRDIflashdownload?.......................................................565.3Enablingflashdownload...........................................................................565.4Supportedflashdevices...........................................................................566Breakpointsinflashmemory..........................................................................................576.1Introduction...........................................................................................586.2Howdobreakpointswork?........................................................................586.3Whatisspecialaboutsoftwarebreakpointsinflash?....................................................................................................586.4Howdoesthiswork?................................................................................586.5WhatperformancecanIexpect?...............................................................586.6Howisthisperformanceachieved?............................................................586.7Settingupflashbreakpoints.....................................................................597Devicespecifics.............................................................................................................617.1AnalogDevices.......................................................................................627.1.1ADuC7xxx..............................................................................................627.2ATMEL...................................................................................................637.2.1AT91SAM7.............................................................................................637.3NXP.......................................................................................................647.3.1LPC2xxx................................................................................................647.4OKI.......................................................................................................657.4.1ML67Q40x..............................................................................................657.5STMicroelectronics..................................................................................667.5.1STR71x.................................................................................................667.5.2STR73x.................................................................................................667.5.3STR75x.................................................................................................667.5.4STR91x..................................................................................................667.6TexasInstruments..................................................................................677.6.1TMS470.................................................................................................678Semihosting...................................................................................................................698.1Overview...............................................................................................708.2TheSWIinterface...................................................................................708.2.1ChangingthesemihostingSWInumbers....................................................718.3ImplementationofsemihostinginJ-LinkRDI..............................................718.3.1DCCsemihosting.....................................................................................718.4SemihostingwithAXD..............................................................................718.4.1UsingSWIsinyourapplication..................................................................718.5Unexpected/unhandledSWIs..................................................................729Backgroundinformation.................................................................................................739.1JTAG.....................................................................................................749.1.1Testaccessport(TAP).............................................................................749.1.2Dataregisters.........................................................................................749.1.3Instructionregister..................................................................................749.1.4TheTAPcontroller...................................................................................759.2TheARMcore.........................................................................................769.2.1Processormodes.....................................................................................779.2.2RegistersoftheCPUcore.........................................................................779.2.3ARM/Thumbinstructionset......................................................................789.3EmbeddedICE.........................................................................................789.3.1Breakpointsandwatchpoints....................................................................78J-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG99.3.2TheICEregisters.....................................................................................799.4Flashprogramming..................................................................................799.4.1HowdoesflashprogrammingviaJ-LinkARMwork?.....................................799.4.2Availableoptionsforflashprogramming.....................................................8010FAQs............................................................................................................................8110.1FAQs......................................................................................................8211Support........................................................................................................................8311.1Troubleshooting......................................................................................8411.1.1Generalprocedure...................................................................................8411.1.2Typicalproblemscenarios.........................................................................8411.2Contactingsupport..................................................................................8412Glossary.......................................................................................................................85J-FlashARMUserGuide(UM08003)(UM08004)©2002-2008SEGGERMicrocontrollerGmbH&Co.KG10J-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG11Chapter1IntroductionThischaptergivesashortoverviewabouttheuseofJ-LinkRDI,flashbreakpointsandflashdownload.J-LinkRDI(UM08004)©2004-2009SEGGERMicrocontrollerGmbH&Co.KG12CHAPTER1Introduction1.1WhatisRDI?RemoteDebugInterface(RDI)isanApplicationProgrammingInterface(API)thatdefinesastandardsetofdatastructuresandfunctionsthatabstracthardwarefordebuggingpurposes.J-LinkRDImainlyconsistsofaDLLdesignedforARMcorestobeusedwithanyRDIcompliantdebugger.J-LinkRDIoffersfeatureslikeflashbreak-pointsandflashdownload.Host(PC)RDIcompliantData+FileDebugger(e.g.elf)elf.gifJ-LinkRDIDLLUSBJ-LinkJTAGARM1.1.1FeaturesofJ-LinkRDI•UsablewitheveryRDIcompliantdebugger•Supportsmorethan2breakpointswhendebugginginflashbyusingtheflashbreakpointsfeature(add.licenserequired)•Offersdownloadintoflashwithouttheneedforaflashloader(add.licenserequired)•Instructionsetsimulation(improvesdebuggingperformance)•AnycoresupportedbyJ-LinkARM(ARM7/ARM9)•Easytouse1.2RequirementsHostSystemInordertouseJ-LinkRDIyouneedahostsystemrunningWindows2000orWin-dowsXPwithSEGGER’sJ-LinkUSBdriverandaRDIco
本文档为【j-link配套资料\官方使用说明\UM08004_JLinkRDI】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_515275
暂无简介~
格式:pdf
大小:796KB
软件:PDF阅读器
页数:0
分类:互联网
上传时间:2018-09-10
浏览量:49