Microcontrollers Debugger Manual Revised: 22 October 2007
Table of Contents10Microcontrollers Debugger ManualFrom Within an Existing Project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger ComponentsGeneral Debugger Components100Microcontrollers Debugger ManualMemory Context MenuThe Memory Context menu allows you to execute memo
Debugger ComponentsGeneral Debugger Components101Microcontrollers Debugger Manual Drag OutTable 3.22 describes the drag actions possible from the Memo
Debugger ComponentsGeneral Debugger Components102Microcontrollers Debugger ManualDrop IntoTable 3.23 shows the drop actions possible in the Memory com
Debugger ComponentsGeneral Debugger Components103Microcontrollers Debugger Manual The Module component displays all source files (source modules) boun
Debugger ComponentsGeneral Debugger Components104Microcontrollers Debugger ManualProcedure ComponentThe Procedure window shown in Figure 3.46 displays
Debugger ComponentsGeneral Debugger Components105Microcontrollers Debugger Manual Drag OutTable 3.26 shows the drag actions possible from the Procedur
Debugger ComponentsGeneral Debugger Components106Microcontrollers Debugger ManualProfiler ComponentThe Profiler window shown in Figure 3.48 provides i
Debugger ComponentsGeneral Debugger Components107Microcontrollers Debugger Manual Profiler OperationsClick the fold/unfold icon to unfold/fold the sou
Debugger ComponentsGeneral Debugger Components108Microcontrollers Debugger ManualSplit View Associated Context MenuFigure 3.52 shows the Profiler cont
Debugger ComponentsGeneral Debugger Components109Microcontrollers Debugger Manual Output File SaveThe Save As entry opens a Save As dialog box where y
Table of Contents11Microcontrollers Debugger Manual Connection (HCS08FCS) Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432Pe
Debugger ComponentsGeneral Debugger Components110Microcontrollers Debugger ManualAn animation occurs during recording, replaying and pausing. The curr
Debugger ComponentsGeneral Debugger Components111Microcontrollers Debugger Manual In Listing 3.2, an .abs file is loaded, a breakpoint is set, the ass
Debugger ComponentsGeneral Debugger Components112Microcontrollers Debugger ManualTIP Many more registers and registers information might by provided b
Debugger ComponentsGeneral Debugger Components113Microcontrollers Debugger Manual Drag OutTable 3.31 contains the drag actions possible from the Regis
Debugger ComponentsGeneral Debugger Components114Microcontrollers Debugger ManualDemo Version LimitationsNo limitationAssociated CommandsATTRIBUTES.Ta
Debugger ComponentsGeneral Debugger Components115Microcontrollers Debugger Manual Source ComponentThe Source window shown in Figure 3.58 displays the
Debugger ComponentsGeneral Debugger Components116Microcontrollers Debugger Manualto the Control Points chapter. If execution stops, the current positi
Debugger ComponentsGeneral Debugger Components117Microcontrollers Debugger Manual • Holding down the left mouse button and pressing the T key: Highlig
Debugger ComponentsGeneral Debugger Components118Microcontrollers Debugger ManualSetting Permanent Breakpoints• Point to an instruction in the Source
Debugger ComponentsGeneral Debugger Components119Microcontrollers Debugger Manual Figure 3.63 Source Associated Context MenuTable 3.33 Source Associ
Table of Contents12Microcontrollers Debugger ManualMonitor Setup Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger ComponentsGeneral Debugger Components120Microcontrollers Debugger ManualRun To Cursor When selected, sets a temporary breakpoint at the neare
Debugger ComponentsGeneral Debugger Components121Microcontrollers Debugger Manual NOTE If some statements do not show marks although the mark display
Debugger ComponentsGeneral Debugger Components122Microcontrollers Debugger ManualGo to Line This menu entry is only enabled if a source file is loaded
Debugger ComponentsGeneral Debugger Components123Microcontrollers Debugger Manual NOTE If an item (single word or source section) has been selected in
Debugger ComponentsGeneral Debugger Components124Microcontrollers Debugger ManualDrag OutTable 3.35 shows the drag actions possible from the Source co
Debugger ComponentsGeneral Debugger Components125Microcontrollers Debugger Manual Drop IntoTable 3.36 shows the drop actions possible into the Source
Debugger ComponentsGeneral Debugger Components126Microcontrollers Debugger ManualYou can use a virtual SCI (Serial Communication Interface) port provi
Debugger ComponentsGeneral Debugger Components127Microcontrollers Debugger Manual You can simply choose one of the default configurations in the Defau
Debugger ComponentsGeneral Debugger Components128Microcontrollers Debugger ManualESC is the ESC Character (ASCII code 27 decimal).These commands can b
Debugger ComponentsGeneral Debugger Components129Microcontrollers Debugger Manual • TERM_APPEND_BOTH: append output to file and window• TERM_APPEND_FI
Table of Contents13Microcontrollers Debugger Manual DBG Module Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger ComponentsGeneral Debugger Components130Microcontrollers Debugger ManualTrace ComponentThe Trace window shown in Figure 3.73 records and disp
Debugger ComponentsGeneral Debugger Components131Microcontrollers Debugger Manual Figure 3.74 Trace MenuAssociated Context MenuThe Trace context menu
Debugger ComponentsGeneral Debugger Components132Microcontrollers Debugger ManualFigure 3.75 Trace Associated Context MenuFigure 3.76 Trace Search S
Debugger ComponentsVisualization Utilities133Microcontrollers Debugger Manual Demo Version LimitationsThe number of frames is limited to 50.Associated
Debugger ComponentsVisualization Utilities134Microcontrollers Debugger ManualIn the figure above, for example, the Object Pool is expanded. The Object
Debugger ComponentsVisualization Utilities135Microcontrollers Debugger Manual Symbol TableThe symbol table shown in Figure 3.80 displays all loaded sy
Debugger ComponentsVisualization Utilities136Microcontrollers Debugger ManualFigure 3.82 Inspector Window Exceptions IconEvents are only used in the
Debugger ComponentsVisualization Utilities137Microcontrollers Debugger Manual IO RegistersThe IO Registers icon shown in Figure 3.84 shows all the IO
Debugger ComponentsVisualization Utilities138Microcontrollers Debugger ManualValues can be entered in hexadecimal (with preceding 0x), in decimal, in
Debugger ComponentsVisualization Utilities139Microcontrollers Debugger Manual Inspector MenuThe Inspector menu contains entries described in Table 3.4
Table of Contents14Microcontrollers Debugger Manual26 RS08 Open Source BDM Connection 561RS08 Open Source BDM Technical Considerations. . . . . . . .
Debugger ComponentsVisualization Utilities140Microcontrollers Debugger ManualDrag OutItems that can be dragged, depends on which icon is selected. Tab
Debugger ComponentsVisualization Utilities141Microcontrollers Debugger Manual Visualization Tool ComponentThe Visualization Tool component is a very c
Debugger ComponentsVisualization Utilities142Microcontrollers Debugger ManualInstrument SelectionYou can select a single instrument by left clicking t
Debugger ComponentsVisualization Utilities143Microcontrollers Debugger Manual Associated Context MenuThe context menu of the VisualizationTool depends
Debugger ComponentsVisualization Utilities144Microcontrollers Debugger ManualPaste Edit mode Adds instruments, which are temporary stored in the clipb
Debugger ComponentsVisualization Utilities145Microcontrollers Debugger Manual VisualizationTool PropertiesLike other instruments, the VisualizationToo
Debugger ComponentsVisualization Utilities146Microcontrollers Debugger ManualInstrumentsWhen you first add an instrument, it is in “move mode”. Place
Debugger ComponentsVisualization Utilities147Microcontrollers Debugger Manual Analog InstrumentThe Analog instrument (Figure 3.89) represents the clas
Debugger ComponentsVisualization Utilities148Microcontrollers Debugger Manual Bitmap InstrumentYou can use the Bitmap instrument to give a special loo
Debugger ComponentsVisualization Utilities149Microcontrollers Debugger Manual flasher is on, while bit 1 says that the brake light is on. So for your
Table of Contents15Microcontrollers Debugger Manual FCS Visualization Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger ComponentsVisualization Utilities150Microcontrollers Debugger ManualLED InstrumentThe LED instrument is used for observing one definite bit o
Debugger ComponentsVisualization Utilities151Microcontrollers Debugger Manual 7-Segment Display instrument attributes are shown in Table 3.53.Switch
Debugger ComponentsVisualization Utilities152Microcontrollers Debugger ManualText InstrumentThe Text instrument has several functions: Static Text, Va
Debugger ComponentsVisualization Utilities153Microcontrollers Debugger Manual Static Text is used for adding descriptions on the workspace. Its attrib
Debugger ComponentsVisualization Utilities154Microcontrollers Debugger ManualCommand: Use this instrument mode to specify a command to execute by clic
Debugger ComponentsVisualization Utilities155Microcontrollers Debugger Manual Drop IntoIn Edit mode, the drag and drop functionality supplies a very e
Debugger ComponentsVisualization Utilities156Microcontrollers Debugger Manual
157Microcontrollers Debugger Manual4Control PointsThis chapter provides an overview of the debugger control points: Breakpoints, Watchpoints, and Mark
Control PointsBreakpoints158Microcontrollers Debugger Manual• Enable/disable a selected control point by checking or unchecking the related checkbox.•
Control PointsBreakpoints159Microcontrollers Debugger Manual Breakpoints are controlled through the Breakpoints tab of the Controlpoints Configuration
Table of Contents16Microcontrollers Debugger ManualP&E Multilink/Cyclone Pro Setup Dialog Box. . . . . . . . . . . . . . . . . . . . . .674Connect
Control PointsBreakpoints160Microcontrollers Debugger ManualFigure 4.2 Controlpoints Configuration Window (Breakpoints Tab)Breakpoints TabThe Control
Control PointsBreakpoints161Microcontrollers Debugger Manual • Update button to Update all modifications in the dialog box.• Add button to add new bre
Control PointsBreakpoints162Microcontrollers Debugger ManualSaving BreakpointsThe Debugger provides a way to store all defined breakpoints of the curr
Control PointsBreakpoints163Microcontrollers Debugger Manual The codeSize value is an expression. It is usually a constant number to specify (for secu
Control PointsSetting Breakpoints164Microcontrollers Debugger ManualNOTE For more information about this syntax, see BS and SAVEBP commands.Setting Br
Control PointsSetting Breakpoints165Microcontrollers Debugger Manual Temporary BreakpointsTemporary breakpoints are activated next time the instructio
Control PointsSetting Breakpoints166Microcontrollers Debugger ManualHolding down the left mouse button and pressing the P key: 1. Point at a C state
Control PointsSetting Breakpoints167Microcontrollers Debugger Manual 5. Select the breakpoint you want to modify by clicking on the corresponding entr
Control PointsSetting Breakpoints168Microcontrollers Debugger ManualUsing the Source Window Context Menu:1. Point at a C statement in the Source Compo
Control PointsSetting Breakpoints169Microcontrollers Debugger Manual Choosing Show Breakpoints from Source Context Menu1. Point in the Source Componen
Table of Contents17Microcontrollers Debugger Manual Advanced Options: Erase Prevention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 701NV
Control PointsWatchpoints170Microcontrollers Debugger ManualWatchpointsWatchpoints are control points associated with a memory range. Program executio
Control PointsWatchpoints171Microcontrollers Debugger Manual Figure 4.4 Memory Context MenuFigure 4.5 Data Context Menu
Control PointsWatchpoints172Microcontrollers Debugger ManualFigure 4.6 Controlpoints Configuration Window (Watchpoints Tab) Watchpoints TabThe Watchp
Control PointsWatchpoints173Microcontrollers Debugger Manual NOTE Current and Interval values are limited to 2,147,483,647. A beep occurs and the char
Control PointsSetting Watchpoints174Microcontrollers Debugger ManualSetting Watchpoints Watchpoints may be set in a Data or Memory window.NOTE Due to
Control PointsSetting Watchpoints175Microcontrollers Debugger Manual Setting a Write WatchpointA red vertical bar is displayed in front of a variable
Control PointsSetting Watchpoints176Microcontrollers Debugger ManualUsing the Left Mouse Button and Pressing the B Key:1. Point at a variable in the D
Control PointsSetting Watchpoints177Microcontrollers Debugger Manual stops. Current is reloaded with the value stored in the interval field to enable
Control PointsSetting Watchpoints178Microcontrollers Debugger ManualDeleting a WatchpointThe Debugger provides three ways to delete a watchpoint:Use D
Control PointsMarkpoints179Microcontrollers Debugger Manual 4. You can enter the command in the Command field. The command is a single debugger comman
Table of Contents18Microcontrollers Debugger ManualBook VIII - Environment VariablesBook VIII Contents . . . . . . . . . . . . . . . . . . . . . . . .
Control PointsMarkpoints180Microcontrollers Debugger ManualFigure 4.7 Source Window Context MenuFigure 4.8 Memory Context Menu
Control PointsMarkpoints181Microcontrollers Debugger Manual Figure 4.9 Data Context MenuFigure 4.10 Controlpoints Configuration Window (Markpoints T
Control PointsSetting Markpoints182Microcontrollers Debugger Manual• Markpoint: group box that displays the address of the currently selected markpoin
Control PointsSetting Markpoints183Microcontrollers Debugger Manual Setting a Data MarkpointA blue letter L is displayed in front of a variable associ
Control PointsHalting on a Control Point184Microcontrollers Debugger ManualDeleting a MarkpointTo delete a markpoint:Using the Left Mouse Button and P
185Microcontrollers Debugger Manual5Real Time Kernel AwarenessThe Debugger allows you to load and control applications on the target system, or applic
Real Time Kernel AwarenessTask Description Language186Microcontrollers Debugger ManualInspecting Task StateEach multitasking operating system stores t
Real Time Kernel AwarenessTask Description Language187Microcontrollers Debugger Manual Assignment = Ident ':=' Expression.ErrorMsg = 'M
Real Time Kernel AwarenessApplication Example188Microcontrollers Debugger ManualApplication Example Listing 5.1 shows an example of a OSPARAM.PRM file
Real Time Kernel AwarenessInspecting Kernel Data Structures189Microcontrollers Debugger Manual Inspecting Kernel Data Structures To allow the debugger
Table of Contents19Microcontrollers Debugger Manual 38 Legacy Target Interfaces Removed 86739 HC(S)08 Full-Chip Simulator Components No Longer Support
Real Time Kernel AwarenessOSEK Kernel Awareness190Microcontrollers Debugger Manual END PLACEMENT ... OS_DATA INTO RTK_SEC; ...
Real Time Kernel AwarenessOSEK Kernel Awareness191Microcontrollers Debugger Manual OSEK Run Time InterfaceThe OSEK Run Time Interface (ORTI) is an int
Real Time Kernel AwarenessOSEK Kernel Awareness192Microcontrollers Debugger Manualcombination with the dynamic data. The dynamic data gives informatio
Real Time Kernel AwarenessOSEK Kernel Awareness193Microcontrollers Debugger Manual OSEK RTK Inspector ComponentOSEK awareness is described through the
Real Time Kernel AwarenessOSEK Kernel Awareness194Microcontrollers Debugger ManualThe following sections offer a description of typical objects along
Real Time Kernel AwarenessOSEK Kernel Awareness195Microcontrollers Debugger Manual Inspector StackThe Stack shown in Figure 5.4 displays the current s
Real Time Kernel AwarenessOSEK Kernel Awareness196Microcontrollers Debugger Manual• Current Value: displays the current value of the system timer.• Ac
Real Time Kernel AwarenessOSEK Kernel Awareness197Microcontrollers Debugger Manual Inspector MessageThe Message shown in Figure 5.7 displays the curre
Real Time Kernel AwarenessOSEK Kernel Awareness198Microcontrollers Debugger Manual
199Microcontrollers Debugger Manual6How To...This chapter provides answers to frequently asked questions. Topics include:• How To Configure the Debugg
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. CodeWarrior is a trademark or reg-istered trademark of Freescale Sem
Table of Contents20Microcontrollers Debugger Manual
How To...Starting Debugger from CodeWarrior IDE200Microcontrollers Debugger ManualDefining the Default Directory in the MCUTOOLS.INIWhen starting from
How To...Automating Debugger Startup201Microcontrollers Debugger Manual Automating Debugger StartupOften the same tasks have to be performed after sta
How To...How To Load an Application202Microcontrollers Debugger Manualthis file (for example, CALL INIT.CMD), it automatically executes when the conne
How To...How to Stop an Application203Microcontrollers Debugger Manual How to Stop an ApplicationThere are two ways to stop program execution:• Choose
How To...How to Step in the Application204Microcontrollers Debugger ManualOn the Next Source InstructionThe Debugger provides two ways of stepping to
How To...How to Work on Variables205Microcontrollers Debugger Manual STOPPED (STOP) in the status line indicates that the application is stopped by a
How To...How to Work on Variables206Microcontrollers Debugger Manual• Double-clickDouble-click a function name in the Procedure component.The Data com
How To...How to Work on Variables207Microcontrollers Debugger Manual Change Format for Variable Value DisplayThe Debugger allows you to see the value
How To...How to Work on Variables208Microcontrollers Debugger ManualModify a Variable ValueThe Debugger allows you to change the value of a variable,
How To...How to Work on the Register209Microcontrollers Debugger Manual Inspect Memory Starting at a Variable Location AddressThe Debugger provides tw
21Microcontrollers Debugger ManualIntroduction Manual ContentsThe Microcontrollers Debugger Manual consists of the following books:Book 1: Debugger en
How To...How to Work on the Register210Microcontrollers Debugger ManualModify a Register ContentThe Debugger allows you to change the content of index
How To...How to Work on the Register211Microcontrollers Debugger Manual Start Memory Dump at Address Where Register is PointingThe Debugger provides t
How To...Modify Content of Memory Address212Microcontrollers Debugger ManualModify Content of Memory AddressThe Debugger allows you to change the cont
How To...How to View Code213Microcontrollers Debugger Manual How to View CodeThe Debugger allows you to view the code associated with each assembler i
How To...How to Communicate with the Application214Microcontrollers Debugger ManualHow to Communicate with the ApplicationThe Debugger has a pseudo-te
215Microcontrollers Debugger Manual7CodeWarrior IDE IntegrationThis chapter provides information on how to use and configure the Simulator/Debugger wi
CodeWarrior IDE IntegrationDebugger Configuration216Microcontrollers Debugger ManualFigure 7.1 IDE Target Window - Build Extras Panel
217Microcontrollers Debugger Manual8Debugger DDE CapabilitiesIntroductionThe DDE is a form of interprocess communication that uses shared memory to ex
Debugger DDE Capabilities218Microcontrollers Debugger Manual3. Push the Connect button of the DDEClient. The following message appears in DDECLient: C
219Microcontrollers Debugger Manual9Synchronized Debugging Through DA-C IDEThis chapter provides information on how to use and configure Freescale too
Manual Contents22Microcontrollers Debugger Manual• HCS08 On-Chip DBG ModuleBook 4: RS08 Debug Connections• RS08 Full Chip Simulation• RS08 P&E Mul
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit220Microcontrollers Debugger Manualcurrent installation. An example
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit221Microcontrollers Debugger Manual Referential Project Root Directo
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit222Microcontrollers Debugger ManualConfigure Library PathAn addition
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit223Microcontrollers Debugger Manual Preprocessor - Header Directorie
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit224Microcontrollers Debugger ManualAdding Files to ProjectIn the Pro
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit225Microcontrollers Debugger Manual Building The DatabaseDevelopment
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit226Microcontrollers Debugger ManualFigure 9.6 Logical View TabDoubl
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit227Microcontrollers Debugger Manual Compiler ConfigurationIn Menu &q
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit228Microcontrollers Debugger ManualClick on OK to validate these set
Synchronized Debugging Through DA-C IDEConfiguring DA-C IDE for Freescale Tool Kit229Microcontrollers Debugger Manual Maker ConfigurationIn the same w
23Microcontrollers Debugger ManualBook I - Debugger EngineBook I ContentsEach section of the Debugger manual includes information to help you become m
Synchronized Debugging Through DA-C IDEDebugger Interface230Microcontrollers Debugger ManualDebugger InterfaceDA-C v3.5 currently integrates a DAPI in
Synchronized Debugging Through DA-C IDEDebugger Interface231Microcontrollers Debugger Manual Figure 9.10 Communication between DA-C IDE and DebuggerC
Synchronized Debugging Through DA-C IDEDebugger Interface232Microcontrollers Debugger ManualFigure 9.11 DA-C Debugger Options Dialog BoxIn the Debugg
Synchronized Debugging Through DA-C IDESynchronized Debugging233Microcontrollers Debugger Manual Figure 9.13 DA-C Component OpeningThe Debugger DAC w
Synchronized Debugging Through DA-C IDETroubleshooting234Microcontrollers Debugger ManualFigure 9.15 DA-C toolbarNOTE If changes are made to your sou
Synchronized Debugging Through DA-C IDETroubleshooting235Microcontrollers Debugger Manual Open the setup dialog box in the Debugger by clicking on the
Synchronized Debugging Through DA-C IDETroubleshooting236Microcontrollers Debugger Manual
237Microcontrollers Debugger ManualBook II - HC08 Debug ConnectionsBook II ContentsEach section of the Debugger manual includes information to help yo
Book II Contents238Microcontrollers Debugger Manual
239Microcontrollers Debugger Manual10Microcontroller Debugging First StepsSince the initial steps for creating a project are similar, the following in
Book I Contents24Microcontrollers Debugger Manual
Microcontroller Debugging First StepsTechnical Considerations240Microcontrollers Debugger Manualhas a totally different simulation engine to accuratel
Microcontroller Debugging First StepsDebugging First Steps Using the Wizard241Microcontrollers Debugger Manual Refer to the inDART®-HC08 In-Circuit De
Microcontroller Debugging First StepsDebugging First Steps Using the Wizard242Microcontrollers Debugger ManualFigure 10.2 Project Parameters Screen
Microcontroller Debugging First StepsDebugging First Steps Using the Wizard243Microcontrollers Debugger Manual 6. Choose the languages to be supported
Microcontroller Debugging First StepsDebugging First Steps Using the Wizard244Microcontrollers Debugger ManualFigure 10.4 Processor Expert Screen11.
Microcontroller Debugging First StepsDebugging First Steps Using the Wizard245Microcontrollers Debugger Manual 13. Depending on CPU derivative selecte
Microcontroller Debugging First StepsSwitching Connections246Microcontrollers Debugger Manual17. In the IDE main window toolbar Project menu, choose P
Microcontroller Debugging First StepsSwitching Connections247Microcontrollers Debugger Manual 1. From the Debugger main menu, select Component | Set C
Microcontroller Debugging First StepsSwitching Connections248Microcontrollers Debugger Manual3. Press the OK button. The Debugger main menu entry bar
Microcontroller Debugging First StepsSwitching Connections249Microcontrollers Debugger Manual The Set Connection dialog box now appears.Figure 10.12
25Microcontrollers Debugger Manual1IntroductionThis section is an introduction to the Debugger from Freescale used in 8/16 bit embedded applications.F
Microcontroller Debugging First StepsSwitching Connections250Microcontrollers Debugger ManualThe menu selection MultilinkCyclonePro > Connect takes
Microcontroller Debugging First StepsSwitching Connections251Microcontrollers Debugger Manual Loading the HC(S)08 or RS08 Open Source BDM ConnectionTo
Microcontroller Debugging First StepsSwitching Connections252Microcontrollers Debugger Manual3. Press the OK button. The Debugger main menu entry bar
253Microcontrollers Debugger Manual11HC08 Full Chip SimulationFull Chip Simulation (FCS) connection runs a complete simulation of all processor periph
HC08 Full Chip SimulationConfiguration Procedure254Microcontrollers Debugger ManualFigure 11.2 Connection (HCS08FCS) List Menu
HC08 Full Chip SimulationConfiguration Procedure255Microcontrollers Debugger Manual Select Device OptionThe Device option on the HC08FCS menu allows y
HC08 Full Chip SimulationConfiguration Procedure256Microcontrollers Debugger ManualThis command is extremely useful for verifying specific timings of
HC08 Full Chip SimulationConfiguration Procedure257Microcontrollers Debugger Manual viewed and their values modified, and the values can be stored bac
HC08 Full Chip SimulationConfiguration Procedure258Microcontrollers Debugger ManualADC Module OptionIn Full Chip Simulation Mode (FCS), this option le
HC08 Full Chip SimulationConfiguration Procedure259Microcontrollers Debugger Manual For more information on ADC configuration, refer to the Freescale
IntroductionDebugger Features26Microcontrollers Debugger ManualDebugger Features• True 32-bit application• Powerful features for embedded debugging• S
HC08 Full Chip SimulationConfiguration Procedure260Microcontrollers Debugger ManualExample>ADCLRClear the input buffer for ADC simulation.Clock Gen
HC08 Full Chip SimulationConfiguration Procedure261Microcontrollers Debugger Manual Figure 11.11 Frequency DisplayOnce the CGM is properly configured
HC08 Full Chip SimulationConfiguration Procedure262Microcontrollers Debugger ManualCertain peripherals that run directly from the XTAL run at differen
HC08 Full Chip SimulationConfiguration Procedure263Microcontrollers Debugger Manual Figure 11.13 Memory Component WindowIf you enable the Shutdown pi
HC08 Full Chip SimulationConfiguration Procedure264Microcontrollers Debugger ManualCYCLES CommandThe CYCLES command changes the value of the cycles co
HC08 Full Chip SimulationConfiguration Procedure265Microcontrollers Debugger Manual SHTDWN CommandWhen you enable the Shutdown pin in the High Resolut
HC08 Full Chip SimulationConfiguration Procedure266Microcontrollers Debugger ManualFigure 11.15 Simulated Port Inputs Dialog BoxUsing the Simulated P
HC08 Full Chip SimulationConfiguration Procedure267Microcontrollers Debugger Manual INPUT<x> CommandThe INPUT<x> command sets the simulate
HC08 Full Chip SimulationConfiguration Procedure268Microcontrollers Debugger ManualExample>INPUTSShow I/O port input values. External Interrupt Mod
HC08 Full Chip SimulationConfiguration Procedure269Microcontrollers Debugger Manual INPUTS CommandIn Full Chip Simulation and CPU-Only Simulation mode
27Microcontrollers Debugger Manual2Debugger InterfaceThis chapter describes the Debugger Graphical User Interface (GUI). Topics include:• Introduction
HC08 Full Chip SimulationConfiguration Procedure270Microcontrollers Debugger Manualthe INPUTS command to bring up the Simulated Port Inputs for all ge
HC08 Full Chip SimulationConfiguration Procedure271Microcontrollers Debugger Manual INPUT<x> CommandThe INPUT<x> command sets the simulate
HC08 Full Chip SimulationConfiguration Procedure272Microcontrollers Debugger ManualExample>INPUTSShow I/O port input values.Multi-Master Inter-Inte
HC08 Full Chip SimulationConfiguration Procedure273Microcontrollers Debugger Manual The MMIIC data input/output log buffer simulation allows the user
HC08 Full Chip SimulationConfiguration Procedure274Microcontrollers Debugger ManualMulti-Master Inter-Integrated Circuit Module CommandsThe following
HC08 Full Chip SimulationConfiguration Procedure275Microcontrollers Debugger Manual The next two data bytes read are 22 and 23. If the microprocessor
HC08 Full Chip SimulationConfiguration Procedure276Microcontrollers Debugger ManualIICDOThe IICDO command displays a window, which shows data shifted
HC08 Full Chip SimulationConfiguration Procedure277Microcontrollers Debugger Manual FCSMSCAN08 Background and Assembly ExampleThe MSCAN08 peripheral i
HC08 Full Chip SimulationConfiguration Procedure278Microcontrollers Debugger ManualRomStart equ $8000 ; start of Flash1 for AZ6
HC08 Full Chip SimulationConfiguration Procedure279Microcontrollers Debugger Manual db $02 ; Message 3 Length db $55
Debugger InterfaceStarting the Debugger28Microcontrollers Debugger ManualThe following list is an overview of files that the CodeWarrior IDE uses for
HC08 Full Chip SimulationConfiguration Procedure280Microcontrollers Debugger Manual lda 1,x ; get next byte in message address
HC08 Full Chip SimulationConfiguration Procedure281Microcontrollers Debugger Manual lda 7,x ; get the message data sta
HC08 Full Chip SimulationConfiguration Procedure282Microcontrollers Debugger Manual and #$7F lsla sta CT1IDR2 lda 3,x
HC08 Full Chip SimulationConfiguration Procedure283Microcontrollers Debugger Manual lda 1,x ; get next byte in message address
HC08 Full Chip SimulationConfiguration Procedure284Microcontrollers Debugger Manual* after a RESET. ****
HC08 Full Chip SimulationConfiguration Procedure285Microcontrollers Debugger Manual sta CRFLG ; reset receive flag rti****
HC08 Full Chip SimulationConfiguration Procedure286Microcontrollers Debugger Manualwhich give the addresses of peripheral registers on the microcontro
HC08 Full Chip SimulationConfiguration Procedure287Microcontrollers Debugger Manual Figure 11.26 CAN IN DisplayInput packets can be added by double-c
HC08 Full Chip SimulationConfiguration Procedure288Microcontrollers Debugger ManualFigure 11.28 CAN Example Input PacketOnce the DATA packet informat
HC08 Full Chip SimulationConfiguration Procedure289Microcontrollers Debugger Manual key to break the execution. Now type the CANOUT command. Figure 11
Debugger InterfaceStarting the Debugger29Microcontrollers Debugger Manual Starting Debug from the Main Window Menu BarYou can also start the debugger
HC08 Full Chip SimulationConfiguration Procedure290Microcontrollers Debugger ManualFCSMSCAN CommandsYou can use the following FCSMSCAN commands with t
HC08 Full Chip SimulationConfiguration Procedure291Microcontrollers Debugger Manual Where <n> is the value to be entered into the next location
HC08 Full Chip SimulationConfiguration Procedure292Microcontrollers Debugger ManualFigure 11.34 Memory Component WindowIf the PIT interrupt is enable
HC08 Full Chip SimulationConfiguration Procedure293Microcontrollers Debugger Manual Figure 11.35 SCI IN Buffer DisplaySCI Data Output Buffer simulati
HC08 Full Chip SimulationConfiguration Procedure294Microcontrollers Debugger ManualThe user can also observe different SCI flags in the Memory window.
HC08 Full Chip SimulationConfiguration Procedure295Microcontrollers Debugger Manual Syntax>SCDI [<n>]Where:<n> The value to be entered
HC08 Full Chip SimulationConfiguration Procedure296Microcontrollers Debugger ManualFigure 11.39 SCI OUT Buffer DisplayFCS Slave LIN Interface Control
HC08 Full Chip SimulationConfiguration Procedure297Microcontrollers Debugger Manual Figure 11.40 SLIC IN Buffer DisplayFigure 11.41 SLIC Input Data
HC08 Full Chip SimulationConfiguration Procedure298Microcontrollers Debugger ManualAfter the simulated SLIC input is received, the first queued-in pac
HC08 Full Chip SimulationConfiguration Procedure299Microcontrollers Debugger Manual Example>SLCCLRClear input and output buffer for SLC simulationS
3Microcontrollers Debugger ManualTable of ContentsIntroductionManual Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger InterfaceStarting the Debugger30Microcontrollers Debugger ManualCommand Line OptionsDOS command line options are:-T=<time>: Test mode T
HC08 Full Chip SimulationConfiguration Procedure300Microcontrollers Debugger ManualSLCOUT CommandThe SLCOUT command displays the output buffer from th
HC08 Full Chip SimulationConfiguration Procedure301Microcontrollers Debugger Manual Figure 11.46 SPI IN Buffer DisplaySPI data output buffer simulati
HC08 Full Chip SimulationConfiguration Procedure302Microcontrollers Debugger Manualinterrupts are enabled, the FCS jumps to an appropriate subroutine
HC08 Full Chip SimulationConfiguration Procedure303Microcontrollers Debugger Manual Syntax>SPDI [<n>]Where:<n> The value to be entered
HC08 Full Chip SimulationConfiguration Procedure304Microcontrollers Debugger ManualFigure 11.50 SPI OUT Buffer DisplaySPFREQ CommandThe SPFREQ comman
HC08 Full Chip SimulationConfiguration Procedure305Microcontrollers Debugger Manual • Flag polling• Interrupt enabled mode of operation.FCS mode uses
HC08 Full Chip SimulationConfiguration Procedure306Microcontrollers Debugger ManualIf the Timer module is configured for an Output Compare event, once
HC08 Full Chip SimulationConfiguration Procedure307Microcontrollers Debugger Manual FCS Timer Interface Module CommandsThe following FCS timer interfa
HC08 Full Chip SimulationConfiguration Procedure308Microcontrollers Debugger ManualINPUT<x> CommandThe INPUT<x> command sets the simulated
HC08 Full Chip SimulationConfiguration Procedure309Microcontrollers Debugger Manual Syntax>INPUTSExample>INPUTSShow I/O port input values.FCS Un
Debugger InterfaceStarting the Debugger31Microcontrollers Debugger Manual -Nodefaults This prevents the debugger from loading the default layout. For
HC08 Full Chip SimulationConfiguration Procedure310Microcontrollers Debugger Manual; (C)opyright P&E Microcomputer Systems, 2005;; You may use thi
HC08 Full Chip SimulationConfiguration Procedure311Microcontrollers Debugger Manual * The following descriptors give the information to the PC what ty
HC08 Full Chip SimulationConfiguration Procedure312Microcontrollers Debugger Manual db $03 ; Class Code (HID) db $00
HC08 Full Chip SimulationConfiguration Procedure313Microcontrollers Debugger Manual db $26,$FF,$00 ; Logical Maximum ($FF) db
HC08 Full Chip SimulationConfiguration Procedure314Microcontrollers Debugger Manual ldhx #0 ; clear H:X pointer lda wVa
HC08 Full Chip SimulationConfiguration Procedure315Microcontrollers Debugger Manual cpx #8 ; all descriptors more than 8 byte
HC08 Full Chip SimulationConfiguration Procedure316Microcontrollers Debugger Manual ldhx #8SAVE_SETUP: lda {UE0D0-1},x ; save da
HC08 Full Chip SimulationConfiguration Procedure317Microcontrollers Debugger Manual sthx buffptr ; save index to data buffer
HC08 Full Chip SimulationConfiguration Procedure318Microcontrollers Debugger Manual cli ; Allow interrupts to happenmain_lo
HC08 Full Chip SimulationConfiguration Procedure319Microcontrollers Debugger Manual rti********************************************************
Debugger InterfaceDebugger Main Window32Microcontrollers Debugger ManualNOTE The function Open in the File menu interprets any file without an .ini ex
HC08 Full Chip SimulationConfiguration Procedure320Microcontrollers Debugger Manual* Vectors - Specifying Reset and USB Interrupt Routines ********
HC08 Full Chip SimulationConfiguration Procedure321Microcontrollers Debugger Manual In the FLASH, the descriptor tables are created, which describe th
HC08 Full Chip SimulationConfiguration Procedure322Microcontrollers Debugger ManualNow we can use the USBIN command to specify USB packets that come a
HC08 Full Chip SimulationConfiguration Procedure323Microcontrollers Debugger Manual To replicate this stage in the simulator, enter the SETUP packet a
HC08 Full Chip SimulationConfiguration Procedure324Microcontrollers Debugger ManualFigure 11.57 USB Packet Exchange Diagram
HC08 Full Chip SimulationConfiguration Procedure325Microcontrollers Debugger Manual Figure 11.58 USB Packet Setup FullFigure 11.59 USB IN Data Buffe
HC08 Full Chip SimulationConfiguration Procedure326Microcontrollers Debugger ManualFigure 11.62 USB OUT BufferNotice in Figure 11.63 the DATA0 packet
HC08 Full Chip SimulationConfiguration Procedure327Microcontrollers Debugger Manual Figure 11.64 USB IN BufferFigure 11.65 USBOUT BufferNow that we
HC08 Full Chip SimulationConfiguration Procedure328Microcontrollers Debugger ManualFigure 11.66 Set Address Packet ExchangeUSB CommandsThe following
HC08 Full Chip SimulationConfiguration Procedure329Microcontrollers Debugger Manual USBIN CommandThe USBIN command allows the user to create packets f
Debugger InterfaceDebugger Main Window33Microcontrollers Debugger Manual Debugger Main Window ToolbarThe Debugger Main Window toolbar is the default t
HC08 Full Chip SimulationConfiguration Procedure330Microcontrollers Debugger ManualFigure 11.67 USB IN Buffer DisplayUSBOUT CommandThe USBOUT command
HC08 Full Chip SimulationConfiguration Procedure331Microcontrollers Debugger Manual USBRESET CommandThe USB RESET command simulates a USB reset from t
HC08 Full Chip SimulationConfiguration Procedure332Microcontrollers Debugger Manual
333Microcontrollers Debugger Manual12MON08 Interface ConnectionThe MON08 connection setting permits a connection to Class 1-4 devices. Refer to the de
MON08 Interface ConnectionConnection Procedure334Microcontrollers Debugger ManualFigure 12.2 P&E Connection Manager Window - Connect to Target T
MON08 Interface ConnectionConnection Procedure335Microcontrollers Debugger Manual 4. Define the proper communication port and baud rate setting in the
MON08 Interface ConnectionConnection Procedure336Microcontrollers Debugger Manualfor a short time after the supply has been switched off, but the supp
MON08 Interface ConnectionConnection Procedure337Microcontrollers Debugger Manual Power Up and Power Down Radio ButtonsThis is the default option and
MON08 Interface ConnectionConnection Procedure338Microcontrollers Debugger ManualTurn Target Power Off and Leave Target Power On Radio ButtonsThis opt
MON08 Interface ConnectionConnection Procedure339Microcontrollers Debugger Manual Figure 12.8 P&E Connection Manager Window - MON08 16-Pin Header
Debugger InterfaceDebugger Main Window34Microcontrollers Debugger Manual File MenuThe File menu shown in Figure 2.7 is dedicated to the debugger proje
MON08 Interface ConnectionConnection Procedure340Microcontrollers Debugger ManualSTATUS AreaThe status area of the MON08 16-Pin Header Signals tab con
MON08 Interface ConnectionConnection Procedure341Microcontrollers Debugger Manual – The part did not start the monitor mode security check on reset. S
MON08 Interface ConnectionConnection Procedure342Microcontrollers Debugger Manual• 6 – ROM is accessible (un-secured): If the device properly entered
MON08 Interface ConnectionConnection Procedure343Microcontrollers Debugger Manual Advanced Programming/Debug OptionsThe Advanced Programming/Debug Opt
MON08 Interface ConnectionConnection Procedure344Microcontrollers Debugger ManualNOTE The Non-Volatile Memory Preservation and Custom Trim functionali
MON08 Interface ConnectionConnection Procedure345Microcontrollers Debugger Manual View Register Files OptionThe View Register Files menu option also g
MON08 Interface ConnectionDevice Class Description346Microcontrollers Debugger ManualDevice Class DescriptionThe following device information summariz
MON08 Interface ConnectionDevice Class Description347Microcontrollers Debugger Manual mode check and access the Flash on the processor. A simple reset
MON08 Interface ConnectionDevice Class Description348Microcontrollers Debugger Manual
349Microcontrollers Debugger Manual13ICS MON08 Interface ConnectionICS ModeIn-Circuit Simulation (ICS) Mode is a P&E Microcomputer Systems mode of
Debugger InterfaceDebugger Main Window35Microcontrollers Debugger Manual Table 2.2 describes File Menu entries. You can shortcut some of these functio
ICS MON08 Interface ConnectionConnection Procedure350Microcontrollers Debugger ManualConnection ProcedureTo select the ICS MON08 Interface connection:
ICS MON08 Interface ConnectionConnection Procedure351Microcontrollers Debugger Manual 3. Access the Interface Selection Manager assistant by clicking
ICS MON08 Interface ConnectionConnection Procedure352Microcontrollers Debugger ManualAdvanced Settings TabThe P&E Connection Manager window’s Adva
ICS MON08 Interface ConnectionConnection Procedure353Microcontrollers Debugger Manual Target Has RESET Button In Class III boards, the software occasi
ICS MON08 Interface ConnectionConnection Procedure354Microcontrollers Debugger ManualFigure 13.5 Power Down Dialog Box3. Software automatically power
ICS MON08 Interface ConnectionConnection Procedure355Microcontrollers Debugger Manual Serial Port Stop BitsSerial Port Stop Bits allow users of Class
ICS MON08 Interface ConnectionConnection Procedure356Microcontrollers Debugger ManualThis status indicates whether or not the first echoed character f
ICS MON08 Interface ConnectionConnection Procedure357Microcontrollers Debugger Manual check was successfully passed. If a break character is not recei
ICS MON08 Interface ConnectionConnection Procedure358Microcontrollers Debugger ManualActive Mode Connection Menu OptionsWhen the microprocessor is con
ICS MON08 Interface ConnectionConnection Procedure359Microcontrollers Debugger Manual Prompt on Flash Program CheckboxChecking Always Erase and Progra
Debugger InterfaceDebugger Main Window36Microcontrollers Debugger ManualConfiguration WindowOpen the Configuration window by selecting Configuration f
ICS MON08 Interface ConnectionConnection Procedure360Microcontrollers Debugger ManualFigure 13.10 PROG08SZ Programmer WindowView Register Files Optio
ICS MON08 Interface ConnectionDevice Class Description361Microcontrollers Debugger Manual Figure 13.12 Timer Interface Module Register ListingSelecti
ICS MON08 Interface ConnectionDevice Class Description362Microcontrollers Debugger ManualClass 2 DeviceICS Board without processor, connected to the u
ICS MON08 Interface ConnectionDevice Class Description363Microcontrollers Debugger Manual Figure 13.14 Reset ConnectionIn this configuration, because
ICS MON08 Interface ConnectionDevice Class Description364Microcontrollers Debugger Manual
365Microcontrollers Debugger Manual14HC08 P&E Multilink/Cyclone Pro ConnectionThe HC08 P&E Multilink/Cyclone Pro Connection setting permits a
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure366Microcontrollers Debugger ManualFigure 14.2 P&E Connection Manager Window - C
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure367Microcontrollers Debugger Manual 7. To add a serial/parallel port P&E device s
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure368Microcontrollers Debugger ManualAdvanced Settings TabThe Advanced Settings tab of
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure369Microcontrollers Debugger Manual Target Has RESET Button CheckboxWith Class III bo
Debugger InterfaceDebugger Main Window37Microcontrollers Debugger Manual Command Buttons:• OK: Changes are confirmed and saved in current project file
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure370Microcontrollers Debugger Manual3. Software automatically powers up the ICS, which
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure371Microcontrollers Debugger Manual Pulse IRQ on StopThe IRQ on Stop allows the users
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure372Microcontrollers Debugger Manualmonitor mode communications regardless of the secu
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure373Microcontrollers Debugger Manual – No Power to the ICS.If this status bit returns
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure374Microcontrollers Debugger Manual– The processor did not power all the way down bec
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure375Microcontrollers Debugger Manual Figure 14.13 HC08 Device Extended MenusConnect O
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure376Microcontrollers Debugger ManualAdvanced Programming/Debug OptionsThe Advanced Pro
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure377Microcontrollers Debugger Manual NOTE The Non-Volatile Memory Preservation and Cus
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure378Microcontrollers Debugger ManualView Register Files OptionThe View Register Files
HC08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure379Microcontrollers Debugger Manual Debugging LimitationsThe following limitations ar
Debugger InterfaceDebugger Main Window38Microcontrollers Debugger ManualView MenuIn the Main Window View menu (Figure 2.10) you can choose to show or
HC08 P&E Multilink/Cyclone Pro ConnectionDevice Class Description380Microcontrollers Debugger ManualDevice Class DescriptionThe following device i
381Microcontrollers Debugger Manual15HC08 ICS P&E Multilink/Cyclone Pro ConnectionsIn-Circuit Simulation (ICS) Mode is a P&E Microcomputer Sys
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure382Microcontrollers Debugger ManualConnection Procedure1. Choose the ICS P&E
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure383Microcontrollers Debugger Manual 3. The device power selection in the Power/C
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure384Microcontrollers Debugger ManualFigure 15.5 Remove A Manually Configured Mul
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure385Microcontrollers Debugger Manual Tpu and Tpd Timing TextboxesTpu and Tpd set
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure386Microcontrollers Debugger ManualPower Up/Down Radio ButtonsPower Down ICS pro
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure387Microcontrollers Debugger Manual Cycle Power Up/Down Radio ButtonsCycle Power
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure388Microcontrollers Debugger Manual‘N’, which indicates that the character was n
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure389Microcontrollers Debugger Manual check was successfully passed. If a break ch
Debugger InterfaceDebugger Main Window39Microcontrollers Debugger Manual Figure 2.11 Customize Toolbar Dialog Box• Select the desired shortcut button
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure390Microcontrollers Debugger ManualActive Mode Menu OptionsWhen the microprocess
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure391Microcontrollers Debugger Manual Prompt on Flash Program CheckboxChecking Alw
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsConnection Procedure392Microcontrollers Debugger ManualFigure 15.12 PROG08SZ Programmer WindowView
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsDevice Class Description393Microcontrollers Debugger Manual Figure 15.14 Timer Interface Module Reg
HC08 ICS P&E Multilink/Cyclone Pro ConnectionsDevice Class Description394Microcontrollers Debugger ManualClass 8 DeviceP&E’s Cyclone Pro commu
395Microcontrollers Debugger Manual16SofTec HC08 ConnectionThis section guides you through the first steps toward debugging with the CodeWarrior IDE a
SofTec HC08 ConnectionUsing the Stationery Wizard396Microcontrollers Debugger ManualUsing the Stationery WizardTo take the first steps toward debuggin
SofTec HC08 ConnectionFrom Within an Existing Project397Microcontrollers Debugger Manual From Within an Existing ProjectTo take the first steps toward
SofTec HC08 ConnectionFrom Within an Existing Project398Microcontrollers Debugger ManualFigure 16.3 MCU Configuration Dialog Box8. Press the OK butto
SofTec HC08 ConnectionFrom Within an Existing Project399Microcontrollers Debugger Manual About OptionSelect the inDART-HC08 > About option to displ
Table of Contents4Microcontrollers Debugger ManualComponent Windows Object Info Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53Compon
Debugger InterfaceDebugger Main Window40Microcontrollers Debugger ManualFigure 2.13 Component Window without Title and HeadlineFigure 2.14 shows a co
SofTec HC08 ConnectionFrom Within an Existing Project400Microcontrollers Debugger ManualFigure 16.6 Communication Settings Dialog BoxNOTE If your har
401Microcontrollers Debugger Manual17HC08 FSICEBASE EmulatorThis chapter is intended for developers, testers, application engineers, and anyone intere
HC08 FSICEBASE EmulatorFSICEBASE Overview402Microcontrollers Debugger ManualSystem RequirementsThe FSICEBASE system requires a host computer with the
HC08 FSICEBASE EmulatorFSICEBASE Overview403Microcontrollers Debugger Manual – 24 general-purpose logic clips, five of which can be used to trigger th
HC08 FSICEBASE EmulatorFSICEBASE Overview404Microcontrollers Debugger Manualclock, an oscillator, or any other circuitry that you might use to perform
HC08 FSICEBASE EmulatorSetting Up the FSICEBASE System405Microcontrollers Debugger Manual Setting Up the FSICEBASE SystemThe Freescale In-Circuit Emul
HC08 FSICEBASE EmulatorSetting Up the FSICEBASE System406Microcontrollers Debugger Manualc. Connect other end of USB cable to host computerNOTE The ho
HC08 FSICEBASE EmulatorEstablishing Communication407Microcontrollers Debugger Manual Establishing CommunicationThe Freescale In-Circuit Emulator Base
HC08 FSICEBASE EmulatorEstablishing Communication408Microcontrollers Debugger ManualFigure 17.1 Communication Dialog Box7. Select TCP/IP8. In the tex
HC08 FSICEBASE EmulatorSetting Up the System409Microcontrollers Debugger Manual 4. From debugger main menu, select FSICEBASE-HC085. Select Communicati
Debugger InterfaceDebugger Main Window41Microcontrollers Debugger Manual Figure 2.15 Component Window without Headline and Small BorderRun MenuThe Ma
HC08 FSICEBASE EmulatorSetting Up the System410Microcontrollers Debugger Manual4. Select appropriate processor from Processor drop-down menu5. Select
HC08 FSICEBASE EmulatorSetting Up the System411Microcontrollers Debugger Manual 3. Select Communication — The FSICE Communication dialog box opens (Fi
HC08 FSICEBASE EmulatorSetting Up the System412Microcontrollers Debugger ManualThe debugger saves the communication information that you specified. It
HC08 FSICEBASE EmulatorSetting Up the System413Microcontrollers Debugger Manual Figure 17.4 FSICEBASE Configuration Utility Window3. Click Connect to
HC08 FSICEBASE EmulatorSpecifying a Memory Map414Microcontrollers Debugger Manual9. If applicable, in Default Gateway text box, type the IP address th
HC08 FSICEBASE EmulatorSpecifying a Memory Map415Microcontrollers Debugger Manual If an EM is connected to the FSICEBASE, the CodeWarrior IDE software
HC08 FSICEBASE EmulatorSpecifying a Memory Map416Microcontrollers Debugger ManualTo Modify a Memory Map:1. Start the debugger — the True-time Simulato
HC08 FSICEBASE EmulatorSpecifying a Memory Map417Microcontrollers Debugger Manual 5. To delete an existing range:a. From Memory list box, select porti
HC08 FSICEBASE EmulatorSpecifying a Memory Map418Microcontrollers Debugger ManualFigure 17.8 Target Signals Dialog Box4. Specify clock source. From M
HC08 FSICEBASE EmulatorSetting Up Logic Cables and Connectors419Microcontrollers Debugger Manual Emulation System ResetThe debugger allows you to rese
Debugger InterfaceDebugger Main Window42Microcontrollers Debugger ManualTable 2.4 Run Menu DescriptionMenu entry DescriptionStart/Continue Starts or
HC08 FSICEBASE EmulatorSetting Up Logic Cables and Connectors420Microcontrollers Debugger Manualuse this source, make the desired clock connection to
HC08 FSICEBASE EmulatorBus State Analyzer (BSA)421Microcontrollers Debugger Manual Bus State Analyzer (BSA)The bus state analyzer (BSA) shows the logi
HC08 FSICEBASE EmulatorBus State Analyzer (BSA)422Microcontrollers Debugger ManualTo define an event:1. Start the debugger2. Load the program to debug
HC08 FSICEBASE EmulatorBus State Analyzer (BSA)423Microcontrollers Debugger Manual 5. Select Term or RangeA range consists of two 32-bit values. Range
HC08 FSICEBASE EmulatorBus State Analyzer (BSA)424Microcontrollers Debugger ManualRecording ModesWhen you define an event, you can specify the recordi
HC08 FSICEBASE EmulatorBus State Analyzer (BSA)425Microcontrollers Debugger Manual D occurs, the sequencer starts again looking for event A.) Data sto
HC08 FSICEBASE EmulatorBus State Analyzer (BSA)426Microcontrollers Debugger Manual• External Selects the external clock• Custom selects the programmab
HC08 FSICEBASE EmulatorBus State Analyzer (BSA)427Microcontrollers Debugger Manual 3. To change the kinds of data and the way that data is displayed:a
HC08 FSICEBASE EmulatorBus State Analyzer (BSA)428Microcontrollers Debugger Manual
429Microcontrollers Debugger ManualBook III - HCS08 Debug ConnectionsBook III ContentsEach section of the Debugger manual includes information to help
Debugger InterfaceDebugger Main Window43Microcontrollers Debugger Manual You can provide shortcuts for some of these functions using the toolbar. Refe
Book III Contents430Microcontrollers Debugger Manual
431Microcontrollers Debugger Manual18HCS08 Full Chip SimulationFull Chip Simulation (FCS) does not involve real input and output. Because of this, it
HCS08 Full Chip SimulationConfiguration Procedure432Microcontrollers Debugger ManualConnection (HCS08FCS) Menu Once you have chosen Full Chip Simulati
HCS08 Full Chip SimulationConfiguration Procedure433Microcontrollers Debugger Manual Device OptionThe Device selection of the HCS08FCS menu allows the
HCS08 Full Chip SimulationConfiguration Procedure434Microcontrollers Debugger Manualinitialization does not apply to a reset command. When you change
HCS08 Full Chip SimulationPeripheral Modules Commands435Microcontrollers Debugger Manual Figure 18.6 Register WindowPeripheral Modules CommandsIf you
HCS08 Full Chip SimulationPeripheral Modules Commands436Microcontrollers Debugger ManualADC ModuleIn Full Chip Simulation (FCS), this module simulates
HCS08 Full Chip SimulationPeripheral Modules Commands437Microcontrollers Debugger Manual When the conversion is complete, the FCS sets the appropriate
HCS08 Full Chip SimulationPeripheral Modules Commands438Microcontrollers Debugger ManualExample>ADCLRClear the input buffer for ADC simulation.Cloc
HCS08 Full Chip SimulationPeripheral Modules Commands439Microcontrollers Debugger Manual Figure 18.11 Frequency DisplayOnce the ICG is properly confi
Debugger InterfaceDebugger Main Window44Microcontrollers Debugger ManualLoading an Executable FileUse the Connection menu to load a debugger connectio
HCS08 Full Chip SimulationPeripheral Modules Commands440Microcontrollers Debugger Manualspeed of simulation; it does, however, affect the ratio in whi
HCS08 Full Chip SimulationPeripheral Modules Commands441Microcontrollers Debugger Manual Figure 18.13 IIC Input Buffer DisplayThe IIC data input/outp
HCS08 Full Chip SimulationPeripheral Modules Commands442Microcontrollers Debugger ManualIIC interrupts are enabled, the FCS jumps to an appropriate su
HCS08 Full Chip SimulationPeripheral Modules Commands443Microcontrollers Debugger Manual Pulls up the data window with all the input values>IICDI 2
HCS08 Full Chip SimulationPeripheral Modules Commands444Microcontrollers Debugger Manual3. The data byte $AA comes in4. The data byte $22 comes in5. A
HCS08 Full Chip SimulationPeripheral Modules Commands445Microcontrollers Debugger Manual the same time, you can use the INPUTS command to bring up the
HCS08 Full Chip SimulationPeripheral Modules Commands446Microcontrollers Debugger ManualINPUT<x> CommandThe INPUT<x> command sets the simu
HCS08 Full Chip SimulationPeripheral Modules Commands447Microcontrollers Debugger Manual INPUTS CommandIn FCS and CPU-Only Simulation mode, the INPUTS
HCS08 Full Chip SimulationPeripheral Modules Commands448Microcontrollers Debugger ManualFigure 18.19 Simulated Port Inputs Dialog BoxAn IRQ event occ
HCS08 Full Chip SimulationPeripheral Modules Commands449Microcontrollers Debugger Manual IRQ CommandsThe following interrupt request command is availa
Debugger InterfaceDebugger Main Window45Microcontrollers Debugger Manual Load Options ButtonsThese three buttons allow you to select which part of the
HCS08 Full Chip SimulationPeripheral Modules Commands450Microcontrollers Debugger ManualKeyboard Interrupt ModuleIn FCS, this module simulates all fun
HCS08 Full Chip SimulationPeripheral Modules Commands451Microcontrollers Debugger Manual The user can poll the KBI Interrupt Pending flag if the Polli
HCS08 Full Chip SimulationPeripheral Modules Commands452Microcontrollers Debugger ManualFigure 18.24 Simulated Port Inputs Dialog BoxWhen using In-Ci
HCS08 Full Chip SimulationPeripheral Modules Commands453Microcontrollers Debugger Manual Figure 18.25 Memory Component WindowIf the MTIM interrupt is
HCS08 Full Chip SimulationPeripheral Modules Commands454Microcontrollers Debugger ManualFigure 18.26 SCI IN Buffer DisplaySCI Data Output Buffer simu
HCS08 Full Chip SimulationPeripheral Modules Commands455Microcontrollers Debugger Manual The user can also observe different SCI flags in the Memory w
HCS08 Full Chip SimulationPeripheral Modules Commands456Microcontrollers Debugger ManualExample>SCDI $55Set the next input value to the SCI to $55&
HCS08 Full Chip SimulationPeripheral Modules Commands457Microcontrollers Debugger Manual Serial Peripheral Interface Module In FCS, this module simula
HCS08 Full Chip SimulationPeripheral Modules Commands458Microcontrollers Debugger ManualFigure 18.32 SPI OUT Buffer DisplayAt any point, you can use
HCS08 Full Chip SimulationPeripheral Modules Commands459Microcontrollers Debugger Manual SPCLR CommandUse the SPCLR command to flush the input and out
Debugger InterfaceDebugger Main Window46Microcontrollers Debugger ManualFigure 2.19 Connection Command File WindowThe command file in the edit box is
HCS08 Full Chip SimulationPeripheral Modules Commands460Microcontrollers Debugger ManualFigure 18.34 SPI IN Buffer DisplaySPDO CommandThe SPDO comman
HCS08 Full Chip SimulationPeripheral Modules Commands461Microcontrollers Debugger Manual SPFREQ CommandThe SPFREQ command lets the user set the freque
HCS08 Full Chip SimulationPeripheral Modules Commands462Microcontrollers Debugger ManualFigure 18.36 Simulated Port Inputs Dialog BoxUse the Simulate
HCS08 Full Chip SimulationPeripheral Modules Commands463Microcontrollers Debugger Manual the user steps through the code. To determine the exact amoun
HCS08 Full Chip SimulationPeripheral Modules Commands464Microcontrollers Debugger ManualGOTOCYCLE CommandThe GOTOCYCLE command executes the program in
HCS08 Full Chip SimulationPeripheral Modules Commands465Microcontrollers Debugger Manual INPUTS CommandIn FCS and CPU-Only Simulation mode, the INPUTS
HCS08 Full Chip SimulationPeripheral Modules Commands466Microcontrollers Debugger Manual
467Microcontrollers Debugger Manual19HCS08 P&E Multilink/Cyclone Pro ConnectionThe HCS08 P&E Multilink/Cyclone Pro Connection setting permits
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure468Microcontrollers Debugger ManualFigure 19.2 HCS08 Connection Assistant Interface
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure469Microcontrollers Debugger Manual Figure 19.3 HCS08 Connection Assistant Interfac
Debugger InterfaceDebugger Main Window47Microcontrollers Debugger Manual The default settings enable the STARTUP.CMD file located in the current proje
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure470Microcontrollers Debugger ManualMultilinkCyclonePro Menu DescriptionWhen you sele
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure471Microcontrollers Debugger Manual Active Mode Menu OptionsWhen the microprocessor
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure472Microcontrollers Debugger ManualFigure 19.7 Advanced Options Dialog BoxPrompt on
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure473Microcontrollers Debugger Manual Start Expert Mode Programmer OptionThe Start Exp
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure474Microcontrollers Debugger ManualFigure 19.9 Choose A Register Block WindowIf reg
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure475Microcontrollers Debugger Manual Bus Trace OptionThe Bus Trace menu option allows
HCS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure476Microcontrollers Debugger Manual
477Microcontrollers Debugger Manual20HCS08 Open Source BDM ConnectionThis chapter guides you through the first steps toward debugging with the CodeWar
HCS08 Open Source BDM ConnectionFirst Steps Using the Stationery Wizard478Microcontrollers Debugger ManualFirst Steps Using the Stationery WizardTo ta
HCS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project479Microcontrollers Debugger Manual First Steps From Within an Existing Pro
Debugger InterfaceDebugger Main Window48Microcontrollers Debugger ManualFigure 2.20 Component MenuTable 2.6 describes the Component Menu entries.NOTE
HCS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project480Microcontrollers Debugger ManualFigure 20.3 MCU Configuration Dialog Bo
HCS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project481Microcontrollers Debugger Manual Select Derivative OptionSelect HCS08 Op
HCS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project482Microcontrollers Debugger ManualHCS08 Open Source BDM Setup Dialog BoxTh
HCS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project483Microcontrollers Debugger Manual Select Derivative Dialog BoxThis dialog
HCS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project484Microcontrollers Debugger ManualInformation Required to Unsecure the Dev
HCS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project485Microcontrollers Debugger Manual Show Status Dialog BoxThis dialog box p
HCS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project486Microcontrollers Debugger Manual
487Microcontrollers Debugger Manual21HCS08 Serial Monitor ConnectionThis section guides you through the first steps toward debugging with the CodeWarr
HCS08 Serial Monitor ConnectionFirst Steps Using the Stationery Wizard488Microcontrollers Debugger ManualFirst Steps Using the Stationery WizardTo tak
HCS08 Serial Monitor ConnectionFirst Steps from Within an Existing Project489Microcontrollers Debugger Manual First Steps from Within an Existing Proj
Debugger InterfaceDebugger Main Window49Microcontrollers Debugger Manual Figure 2.21 Set Connection Dialog Box6. Use the Processor list menu to selec
HCS08 Serial Monitor ConnectionFirst Steps from Within an Existing Project490Microcontrollers Debugger ManualFigure 21.3 Monitor Setup Window - Monit
HCS08 Serial Monitor ConnectionFirst Steps from Within an Existing Project491Microcontrollers Debugger Manual Figure 21.5 Monitor Setup Window - Vect
HCS08 Serial Monitor ConnectionFirst Steps from Within an Existing Project492Microcontrollers Debugger ManualMONITOR-HCS08 Menu OptionsOnce the HCS08
HCS08 Serial Monitor ConnectionFirst Steps from Within an Existing Project493Microcontrollers Debugger Manual Bus TraceSelect the MONITOR-HCS08 > B
HCS08 Serial Monitor ConnectionFirst Steps from Within an Existing Project494Microcontrollers Debugger ManualFigure 21.9 Monitor Setup Window - Vecto
HCS08 Serial Monitor ConnectionFirst Steps from Within an Existing Project495Microcontrollers Debugger Manual Derivative Selection Dialog BoxWithin th
HCS08 Serial Monitor ConnectionFirst Steps from Within an Existing Project496Microcontrollers Debugger Manual
497Microcontrollers Debugger Manual22SofTec HCS08 ConnectionThis chapter guides you through the first steps toward debugging with the CodeWarrior IDE
SofTec HCS08 ConnectionFirst Steps Using the Stationery Wizard498Microcontrollers Debugger ManualFirst Steps Using the Stationery WizardTo take the fi
SofTec HCS08 ConnectionFirst Steps from Within an Existing Project499Microcontrollers Debugger Manual First Steps from Within an Existing ProjectTo ta
Table of Contents5Microcontrollers Debugger Manual Breakpoints Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger InterfaceDebugger Main Window50Microcontrollers Debugger ManualWindow MenuIn this menu, shown in Figure 2.22, you can set the component windo
SofTec HCS08 ConnectionFirst Steps from Within an Existing Project500Microcontrollers Debugger ManualFigure 22.3 MCU Configuration Dialog Box8. Press
SofTec HCS08 ConnectionFirst Steps from Within an Existing Project501Microcontrollers Debugger Manual Trigger Module SettingsSelect SofTec-HCS08 >
SofTec HCS08 ConnectionFirst Steps from Within an Existing Project502Microcontrollers Debugger Manualspecific HCS08 derivative. In the case of the MC9
503Microcontrollers Debugger Manual23HCS08 On-Chip DBG ModuleThe HCS08 derivatives featuring an on-chip DBG module require a debugger graphical user i
HCS08 On-Chip DBG ModuleSpecific Connection Menu Options504Microcontrollers Debugger Manual• Real time program code profiling and coverage within the
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows505Microcontrollers Debugger Manual Context Menu Entries in S
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows506Microcontrollers Debugger ManualTo set a trigger, select a
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows507Microcontrollers Debugger Manual Figure 23.4 Triggers Set
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows508Microcontrollers Debugger ManualTrigger Stored as Markpoin
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows509Microcontrollers Debugger Manual Figure 23.6 Controlpoint
Debugger InterfaceDebugger Main Window51Microcontrollers Debugger Manual NOTE Autosize and Component Menu are checked by default.Help MenuThis is the
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows510Microcontrollers Debugger ManualFigure 23.7 Data Window C
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows511Microcontrollers Debugger Manual Figure 23.8 Triggers Set
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows512Microcontrollers Debugger ManualExpert TriggersThe Expert
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows513Microcontrollers Debugger Manual Figure 23.10 Expert Trig
HCS08 On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows514Microcontrollers Debugger ManualTrigger Settings The Trigg
HCS08 On-Chip DBG ModuleDBG Support Status Bar Item515Microcontrollers Debugger Manual Trigger Module UsageThis menu entry can be used to globally set
HCS08 On-Chip DBG ModuleTrigger Module Settings Window516Microcontrollers Debugger ManualThe status bar displays the current DBG Module Mode Setup (as
HCS08 On-Chip DBG ModuleTrigger Module Settings Window517Microcontrollers Debugger Manual DBG Module Mode SetupFirst of all, the on-chip DBG module pr
HCS08 On-Chip DBG ModuleTrigger Module Settings Window518Microcontrollers Debugger ManualExpert ModeThe User needs to know the on-chip DBG module real
HCS08 On-Chip DBG ModuleTrigger Module Settings Window519Microcontrollers Debugger Manual Expert Mode TabThe expert mode tab gives you an access to mo
Debugger InterfaceComponent Associated Menus52Microcontrollers Debugger ManualAbout BoxSelect Help > About to display the About box. The about box
HCS08 On-Chip DBG ModuleTrigger Module Settings Window520Microcontrollers Debugger ManualFigure 23.19 Debugger Main Window - Coverage and Profiler Wi
HCS08 On-Chip DBG ModuleTrigger Module Settings Window521Microcontrollers Debugger Manual Memory Access TriggersThis section describes the various typ
HCS08 On-Chip DBG ModuleTrigger Module Settings Window522Microcontrollers Debugger ManualMemory Access at Address A and Value on Data Bus MatchThis mo
HCS08 On-Chip DBG ModuleTrigger Module Settings Window523Microcontrollers Debugger Manual Memory Access at Address A and Value on Data Bus MismatchThi
HCS08 On-Chip DBG ModuleTrigger Module Settings Window524Microcontrollers Debugger ManualInstruction at Address A or Address B is ExecutedThis mode is
HCS08 On-Chip DBG ModuleTrigger Module Settings Window525Microcontrollers Debugger Manual Instruction at Address A and Value on Data Bus MatchThis mod
HCS08 On-Chip DBG ModuleTrigger Module Settings Window526Microcontrollers Debugger ManualFigure 23.26 Memory Access at Address A and Value on Data Bu
HCS08 On-Chip DBG ModuleTrigger Module Settings Window527Microcontrollers Debugger Manual The trigger addresses is typically not a program code addres
HCS08 On-Chip DBG ModuleTrigger Module Settings Window528Microcontrollers Debugger Manual• Start recording after trigger hit and DO NOT halt when the
HCS08 On-Chip DBG ModuleTrigger Module Settings Window529Microcontrollers Debugger Manual Trigger EditingTypically trigger addresses and/or type can b
Debugger InterfaceComponent Associated Menus53Microcontrollers Debugger Manual Component FilesEach component is a windows file with a .wnd extensionCo
HCS08 On-Chip DBG ModuleTrigger Module Settings Window530Microcontrollers Debugger Manual•The Show Location button shows the location of the trigger (
HCS08 On-Chip DBG ModuleTrigger Module Settings Window531Microcontrollers Debugger Manual Figure 23.32 Trigger Settings Tab InformationGeneral Settin
HCS08 On-Chip DBG ModuleTrace Component Window532Microcontrollers Debugger Manual• Automatically analyze the FIFO content: When the Trace Component Wi
HCS08 On-Chip DBG ModuleTrace Component Window533Microcontrollers Debugger Manual It is not necessary to open the Trace window/component to make use o
HCS08 On-Chip DBG ModuleTrace Component Window534Microcontrollers Debugger ManualFigure 23.35 Trace Window - Context Menu OptionsSelecting Show Locat
HCS08 On-Chip DBG ModuleTrace Component Window535Microcontrollers Debugger Manual on-chip DBG module. By consequence, the Textual display mode simply
HCS08 On-Chip DBG ModuleTrace Component Window536Microcontrollers Debugger ManualDumping Frames to FileSelecting Dump in the Trace window context sens
HCS08 On-Chip DBG ModuleTrace Component Window537Microcontrollers Debugger Manual Displayed columns:• FIFO Depth: A number representing the depth in t
HCS08 On-Chip DBG ModuleLimitations538Microcontrollers Debugger ManualLimitationsThe following limitations apply in demo/unregistered debugger mode:•
HCS08 On-Chip DBG ModuleHCS08 DBG V3 New Features539Microcontrollers Debugger Manual Figure 23.43 LOOP1 recording mode selectionAbility to record unt
Debugger InterfaceHighlights of the User Interface54Microcontrollers Debugger ManualHighlights of the User InterfaceThis section describes some of the
HCS08 On-Chip DBG ModuleHCS08 DBG V3 New Features540Microcontrollers Debugger ManualFigure 23.44 Recording a PIN reset
HCS08 On-Chip DBG ModuleHCS08 DBG V3 New Features541Microcontrollers Debugger Manual Figure 23.45 Recording an illegal opcode resetRecording from Res
HCS08 On-Chip DBG ModuleHCS08 DBG V3 New Features542Microcontrollers Debugger ManualFigure 23.46 Recording out of reset mode selectionFigure 23.47 S
HCS08 On-Chip DBG ModuleHCS08 DBG V3 New Features543Microcontrollers Debugger Manual Expert Triggers tab extendedThe Expert Triggers tab has been rede
HCS08 On-Chip DBG ModuleHCS08 DBG V3 New Features544Microcontrollers Debugger Manual
545Microcontrollers Debugger ManualBook IV - RS08 Debug ConnectionsBook IV ContentsEach section of the Debugger manual includes information to help yo
Book IV Contents546Microcontrollers Debugger Manual
547Microcontrollers Debugger Manual24RS08 Full Chip SimulationFull Chip Simulation (FCS) does not involve real input and output. Because of this, it d
RS08 Full Chip SimulationConfiguration Procedure548Microcontrollers Debugger ManualConnection (RS08FCS) Menu Once you have chosen Full Chip Simulation
RS08 Full Chip SimulationConfiguration Procedure549Microcontrollers Debugger Manual Full Chip Simulation Module CommandsThe RS08FCS Menu contains the
Debugger InterfaceHighlights of the User Interface55Microcontrollers Debugger Manual To Drag and Drop an ObjectTo drag an object from one component wi
RS08 Full Chip SimulationConfiguration Procedure550Microcontrollers Debugger ManualShow Processor PinsThe Processor Pins dialog box is a convenient to
RS08 Full Chip SimulationConfiguration Procedure551Microcontrollers Debugger Manual Run Till Cycle CommandThis menu option, which corresponds to the G
RS08 Full Chip SimulationPeripheral Modules Commands552Microcontrollers Debugger ManualFigure 24.9 Timer Interface Module Register ListingSelecting a
553Microcontrollers Debugger Manual25RS08 P&E Multilink/Cyclone Pro ConnectionThe RS08 P&E Multilink/Cyclone Pro Connection setting permits a
RS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure554Microcontrollers Debugger ManualFigure 25.2 RS08 Connection Assistant Interface S
RS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure555Microcontrollers Debugger Manual MultilinkCyclonePro Menu DescriptionWhen you have
RS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure556Microcontrollers Debugger ManualConnect OptionThe Connect option initiates an atte
RS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure557Microcontrollers Debugger Manual Prompt on Flash Program CheckboxChecking Always E
RS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure558Microcontrollers Debugger ManualShow Processor PinsThe Processor Pins dialog box i
RS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure559Microcontrollers Debugger Manual Figure 25.10 Choose A Register Block WindowIf re
Debugger InterfaceHighlights of the User Interface56Microcontrollers Debugger ManualDragging from Data Component WindowTable 2.10 summarizes dragging
RS08 P&E Multilink/Cyclone Pro ConnectionConnection Procedure560Microcontrollers Debugger Manual
561Microcontrollers Debugger Manual26RS08 Open Source BDM ConnectionThis chapter guides you through the first steps toward debugging with the CodeWarr
RS08 Open Source BDM ConnectionFirst Steps Using the Stationery Wizard562Microcontrollers Debugger ManualFirst Steps Using the Stationery WizardTo tak
RS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project563Microcontrollers Debugger Manual First Steps From Within an Existing Proj
RS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project564Microcontrollers Debugger ManualFigure 26.3 MCU Configuration Dialog Box
RS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project565Microcontrollers Debugger Manual Reset to Normal Mode OptionSelect RS08 O
RS08 Open Source BDM ConnectionFirst Steps From Within an Existing Project566Microcontrollers Debugger ManualSelect Derivative Dialog BoxThis dialog b
567Microcontrollers Debugger Manual27SofTec RS08 ConnectionThis section guides you through the first steps toward debugging with the CodeWarrior IDE a
SofTec RS08 ConnectionFirst Steps Using the Stationery Wizard568Microcontrollers Debugger ManualFirst Steps Using the Stationery WizardTo take the fir
SofTec RS08 ConnectionFirst Steps Using the Stationery Wizard569Microcontrollers Debugger Manual Figure 27.2 IDE Main Window - Project Menu7. Choose
Debugger InterfaceHighlights of the User Interface57Microcontrollers Debugger Manual Dragging from Source Component WindowTable 2.11 summarizes draggi
SofTec RS08 ConnectionFirst Steps From Within an Existing Project570Microcontrollers Debugger ManualFirst Steps From Within an Existing ProjectTo take
SofTec RS08 ConnectionFirst Steps From Within an Existing Project571Microcontrollers Debugger Manual Figure 27.4 MCU Configuration Dialog Box8. Press
SofTec RS08 ConnectionFirst Steps From Within an Existing Project572Microcontrollers Debugger ManualMCU Configuration OptionSelect SofTec-RS08 > MC
SofTec RS08 ConnectionFirst Steps From Within an Existing Project573Microcontrollers Debugger Manual Figure 27.7 Communication Settings Dialog BoxAbo
SofTec RS08 ConnectionFirst Steps From Within an Existing Project574Microcontrollers Debugger Manual
575Microcontrollers Debugger ManualBook V - ColdFire® V1.0 Debug ConnectionsBook V ContentsEach section of the Debugger manual includes information to
Book V Contents576Microcontrollers Debugger Manual
577Microcontrollers Debugger Manual28ColdFire V1 Full Chip Simulation ConnectionThe Full Chip Simulation (FCS) connection runs a complete simulation o
ColdFire V1 Full Chip Simulation Connection578Microcontrollers Debugger ManualDebugger Status Bar with Full Chip SimulationThe status bar (Figure 28.2
ColdFire V1 Full Chip Simulation Connection579Microcontrollers Debugger Manual The status bars show the selected simulated derivative or simulated COR
Debugger InterfaceHighlights of the User Interface58Microcontrollers Debugger ManualDragging from the Memory Component WindowTable 2.12 summarizes dra
ColdFire V1 Full Chip Simulation Connection580Microcontrollers Debugger ManualCommand Files WindowFigure 28.5 shows the FCS connection Command Files w
ColdFire V1 Full Chip Simulation Connection581Microcontrollers Debugger Manual Memory Configuration Dialog Box FeaturesThe memory configuration dialog
ColdFire V1 Full Chip Simulation Connection582Microcontrollers Debugger ManualMemory Configuration ModesUse the Memory Configuration dialog box to sel
ColdFire V1 Full Chip Simulation Connection583Microcontrollers Debugger Manual Manual Configuration: The Memory Configuration dialog box lists an entr
ColdFire V1 Full Chip Simulation Connection584Microcontrollers Debugger ManualMemory Block SettingYou must set memory blocks within the available memo
ColdFire V1 Full Chip Simulation Connection585Microcontrollers Debugger Manual Memory Configuration Dialog Box Command ButtonsThe Memory Configuration
ColdFire V1 Full Chip Simulation Connection586Microcontrollers Debugger Manual• To modify the value of each read or write type, change the value of th
ColdFire V1 Full Chip Simulation Connection587Microcontrollers Debugger Manual frequency is always the oscillator frequency. Two radio buttons allow y
ColdFire V1 Full Chip Simulation Connection588Microcontrollers Debugger Manual You can retrieve the following types of information from the Trace wind
ColdFire V1 Full Chip Simulation Connection589Microcontrollers Debugger Manual FCS Warning (ID 12): reading from unimplemented register at pc = 0x400a
Debugger InterfaceHighlights of the User Interface59Microcontrollers Debugger Manual Dragging from Module Component WindowTable 2.15 summarizes draggi
ColdFire V1 Full Chip Simulation Connection590Microcontrollers Debugger ManualExample:in>warning_setup nonein>warning_setup haltin>warning_se
ColdFire V1 Full Chip Simulation Connection591Microcontrollers Debugger Manual MESSAGE_HIDE_ID CommandThe MESSAGE_HIDE_ID command hides a message of a
ColdFire V1 Full Chip Simulation ConnectionFCS and Silicon On-Chip Peripherals Simulation592Microcontrollers Debugger ManualComponentsDebugger engine.
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities593Microcontrollers Debugger Manual You can see the current mode of Simulation (
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities594Microcontrollers Debugger ManualAnalog Meter ComponentUse the Analog Meter wi
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities595Microcontrollers Debugger Manual IO_LED ComponentThe IO_LED window shown in F
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities596Microcontrollers Debugger ManualIO_LED MenuThe IO LED Menu contains a single
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities597Microcontrollers Debugger Manual LED ComponentThe LED window shown in Figure
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities598Microcontrollers Debugger ManualClick OK to accept the specified location. Cl
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities599Microcontrollers Debugger Manual Phone OperationsClick a phone key and the ma
Table of Contents6Microcontrollers Debugger ManualInspecting Task State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger InterfaceHighlights of the User Interface60Microcontrollers Debugger Manual
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities600Microcontrollers Debugger ManualADC/DAC ComponentThe ADC_DAC window shown in
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities601Microcontrollers Debugger Manual Figure 28.21 Internal Converter Module Orga
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities602Microcontrollers Debugger ManualDAC The DAC is an 8-bit resolution converter
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities603Microcontrollers Debugger Manual ADC/DAC Setup Dialog BoxThe dialog box shown
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities604Microcontrollers Debugger ManualDisplay Properties Dialog BoxThis dialog box,
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities605Microcontrollers Debugger Manual IT_Keyboard ComponentThe 20-key IT_Keyboard
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities606Microcontrollers Debugger ManualScanning is one method to read such keyboards
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities607Microcontrollers Debugger Manual Interruption Keyboard Setup The Interruption
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities608Microcontrollers Debugger ManualLCD Component The LCD Display component messa
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities609Microcontrollers Debugger Manual Figure 28.32 The DDRAM ControllerThe Addres
61Microcontrollers Debugger Manual3Debugger ComponentsThis chapter explains how the different components of the Debugger work. This chapter contains t
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities610Microcontrollers Debugger ManualInstruction ListingFigure 28.33 lists the ins
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities611Microcontrollers Debugger Manual Cursor or Display Shift • Doesn't chang
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities612Microcontrollers Debugger ManualThe Initialization StepInitialization require
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities613Microcontrollers Debugger Manual LCD Display The LCD Display dialog box shown
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities614Microcontrollers Debugger ManualMonitor ComponentThe Monitor window shown in
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities615Microcontrollers Debugger Manual Add Channel The Add Channel dialog box shown
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities616Microcontrollers Debugger ManualChange Colors The Change Colors dialog box sh
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities617Microcontrollers Debugger Manual Push Buttons ComponentThe Push Buttons windo
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities618Microcontrollers Debugger ManualPush Buttons Setup The Setup dialog box shown
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities619Microcontrollers Debugger Manual Drag Out: Nothing can be dragged out.Drop In
Debugger ComponentsComponent Introduction62Microcontrollers Debugger ManualConnection ComponentsDifferent debugger connections are available. For exam
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities620Microcontrollers Debugger ManualProgrammable IO_Ports MenuFigure 28.48 shows
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities621Microcontrollers Debugger Manual Figure 28.50 Coupler Control RegisterDrag O
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities622Microcontrollers Debugger ManualFigure 28.52 7-Segments Display Component Co
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities623Microcontrollers Debugger Manual 7-Segments Display Setup The 7-Segments Disp
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities624Microcontrollers Debugger ManualDrop Into:Nothing can be dropped in.Demo Vers
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities625Microcontrollers Debugger Manual Cache Size The Size of the Cache dialog box,
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities626Microcontrollers Debugger ManualEND10000000 a = 0; The first line defines the
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities627Microcontrollers Debugger Manual Table 28.13 describes the bits used in the S
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities628Microcontrollers Debugger ManualUse Escape sequences to handle redirection of
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities629Microcontrollers Debugger Manual • TERM_TO_WINDOW (sends output to terminal w
Debugger ComponentsComponent Introduction63Microcontrollers Debugger Manual Figure 3.2 Open Window Component Window3. In the Open Window Component wi
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities630Microcontrollers Debugger Manual
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities631Microcontrollers Debugger Manual Drop Into:Nothing can be dropped in.Demo Ver
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities632Microcontrollers Debugger ManualConfigure Terminal ConnectionsThe terminal wi
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities633Microcontrollers Debugger Manual If you have chosen a connection from or to t
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities634Microcontrollers Debugger ManualESC is the ESC Character (ASCII code 27 decim
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities635Microcontrollers Debugger Manual Using the Virtual SCIIn its default Virtual
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities636Microcontrollers Debugger ManualWagon ComponentThe Wagon window shown in Figu
ColdFire V1 Full Chip Simulation ConnectionFCS Visualization Utilities637Microcontrollers Debugger Manual Wagon Setup When you select Setup from the W
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation638Microcontrollers Debugger ManualTrue Time I/O Stimulation The FCS I/O Stimulati
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation639Microcontrollers Debugger Manual 2. Choose Simulator > Set > Sim.3. Choos
Debugger ComponentsGeneral Debugger Components64Microcontrollers Debugger ManualGeneral Debugger ComponentsThis section describes the various features
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation640Microcontrollers Debugger ManualListing 28.6 IO_Show Procedure in io_demo.cst
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation641Microcontrollers Debugger Manual The Stimulation component executing io_var.txt
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation642Microcontrollers Debugger ManualFigure 28.74 Source Component Window8. Activat
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation643Microcontrollers Debugger Manual VECTOR 7 Interrupt_Function /* set vector on
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation644Microcontrollers Debugger ManualDetailed Explanationdef a = TargetObject.#210.B
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation645Microcontrollers Debugger Manual This line of code reads pbits (three bits in L
ColdFire V1 Full Chip Simulation ConnectionTrue Time I/O Stimulation646Microcontrollers Debugger ManualTimedEvent = [ “+” | “#” ] Time AssignmentList.
ColdFire V1 Full Chip Simulation ConnectionElectrical Signal Generators and Signals Application to Device Pins647Microcontrollers Debugger Manual • Th
ColdFire V1 Full Chip Simulation ConnectionElectrical Signal Generators and Signals Application to Device Pins648Microcontrollers Debugger ManualSigna
ColdFire V1 Full Chip Simulation ConnectionElectrical Signal Generators and Signals Application to Device Pins649Microcontrollers Debugger Manual TIME
Debugger ComponentsGeneral Debugger Components65Microcontrollers Debugger Manual Assembly MenuThe Assembly menu shown in Figure 3.4 contains all funct
ColdFire V1 Full Chip Simulation ConnectionElectrical Signal Generators and Signals Application to Device Pins650Microcontrollers Debugger ManualINF m
ColdFire V1 Full Chip Simulation ConnectionElectrical Signal Generators and Signals Application to Device Pins651Microcontrollers Debugger Manual SETS
ColdFire V1 Full Chip Simulation ConnectionElectrical Signal Generators and Signals Application to Device Pins652Microcontrollers Debugger ManualRemar
ColdFire V1 Full Chip Simulation ConnectionElectrical Signal Generators and Signals Application to Device Pins653Microcontrollers Debugger Manual WARN
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials654Microcontrollers Debugger ManualCommand Set to Apply Signal on ATD PinThe following example
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials655Microcontrollers Debugger Manual 6. Change the directory if you want (Location > Set)7.
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials656Microcontrollers Debugger ManualStep 3 - Target CPU WindowThe Target CPU window in the cent
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials657Microcontrollers Debugger Manual Standard and Professional Editions offer a wider range of
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials658Microcontrollers Debugger ManualFigure 28.78 Project Window - Processor Expert TabUnder Be
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials659Microcontrollers Debugger Manual Figure 28.79 Bean Inspector WindowStep 7 - Generation of
Debugger ComponentsGeneral Debugger Components66Microcontrollers Debugger ManualSetting BreakpointsBreakpoints can be set, edited and deleted when usi
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials660Microcontrollers Debugger ManualStep 9 - Entering User Code1. Open the user module MyGuessT
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials661Microcontrollers Debugger Manual void main(void) { /*** Processor Expert internal initiali
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials662Microcontrollers Debugger ManualFigure 28.80 Terminal Configuration Dialog4. Select the Sa
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials663Microcontrollers Debugger Manual Figure 28.81 Debugger Main Window - Final ApplicationPWM
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials664Microcontrollers Debugger Manual5. Enter a project name like PWM_Sample 6. Change the direc
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials665Microcontrollers Debugger Manual Step 6 - Bean Inspector PWM1.PWMIn the Bean Inspector wind
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials666Microcontrollers Debugger Manual /*** Processor Expert internal initialization. DON'T
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials667Microcontrollers Debugger Manual 6. Select Target Periodical for Type of Unit7. Select 1000
ColdFire V1 Full Chip Simulation ConnectionFCS Tutorials668Microcontrollers Debugger ManualFigure 28.82 Debugger Main WIndow - Final Application
669Microcontrollers Debugger Manual29ColdFire P&E Multilink/Cyclone Pro ConnectionThis chapter guides you through the first steps toward debugging
Debugger ComponentsGeneral Debugger Components67Microcontrollers Debugger Manual Table 3.2 Assembly Context Menu DescriptionMenu Entry DescriptionSet
ColdFire P&E Multilink/Cyclone Pro ConnectionFirst Steps Using the Stationery Wizard670Microcontrollers Debugger ManualFirst Steps Using the Stati
ColdFire P&E Multilink/Cyclone Pro ConnectionFirst Steps From Within an Existing Project671Microcontrollers Debugger Manual First Steps From Withi
ColdFire P&E Multilink/Cyclone Pro ConnectionFirst Steps From Within an Existing Project672Microcontrollers Debugger ManualFigure 29.3 Set Deriva
ColdFire P&E Multilink/Cyclone Pro ConnectionFirst Steps From Within an Existing Project673Microcontrollers Debugger Manual P&E Multilink/Cycl
ColdFire P&E Multilink/Cyclone Pro ConnectionFirst Steps From Within an Existing Project674Microcontrollers Debugger ManualTrigger Module Settings
ColdFire P&E Multilink/Cyclone Pro ConnectionFirst Steps From Within an Existing Project675Microcontrollers Debugger Manual When checking “Program
ColdFire P&E Multilink/Cyclone Pro ConnectionFirst Steps From Within an Existing Project676Microcontrollers Debugger ManualFigure 29.8 Connection
677Microcontrollers Debugger Manual30SofTec ColdFire ConnectionThis chapter guides you through the first steps toward debugging with the CodeWarrior™
SofTec ColdFire ConnectionFirst Steps Using the Stationery Wizard678Microcontrollers Debugger ManualFirst Steps Using the Stationery WizardTo take the
SofTec ColdFire ConnectionFirst Steps From Within an Existing Project679Microcontrollers Debugger Manual First Steps From Within an Existing ProjectTo
Debugger ComponentsGeneral Debugger Components68Microcontrollers Debugger ManualRetrieving Source Statement• Point to an instruction in the Assembly c
SofTec ColdFire ConnectionFirst Steps From Within an Existing Project680Microcontrollers Debugger ManualFigure 30.3 Set Derivative Dialog Box8. Press
SofTec ColdFire ConnectionFirst Steps From Within an Existing Project681Microcontrollers Debugger Manual SofTec ColdFire Menu OptionsOnce the SofTec C
SofTec ColdFire ConnectionFirst Steps From Within an Existing Project682Microcontrollers Debugger ManualFlashSelect SofTec-MCF51 > Flash to open th
SofTec ColdFire ConnectionFirst Steps From Within an Existing Project683Microcontrollers Debugger Manual provided in the Communication Settings dialog
SofTec ColdFire ConnectionFirst Steps From Within an Existing Project684Microcontrollers Debugger ManualPress the Communication Settings button in thi
SofTec ColdFire ConnectionFirst Steps From Within an Existing Project685Microcontrollers Debugger Manual The dialog may slightly differ according to c
SofTec ColdFire ConnectionFirst Steps From Within an Existing Project686Microcontrollers Debugger ManualAbout Dialog BoxThis dialog box belongs to the
687Microcontrollers Debugger Manual31ColdFire On-Chip DBG ModuleThe ColdFire® derivatives featuring an on-chip debugger (DBG) module require a debugge
ColdFire On-Chip DBG ModuleContext Menu Entries in Source, Data, Assembly and Memory Windows688Microcontrollers Debugger ManualContext Menu Entries in
ColdFire On-Chip DBG ModuleTrigger Module Settings Window689Microcontrollers Debugger Manual Trigger Module Settings WindowThis window can be opened f
Debugger ComponentsGeneral Debugger Components69Microcontrollers Debugger Manual Demo Version LimitationsNo limitationAssociated CommandsFollowing com
ColdFire On-Chip DBG ModuleTrigger Module Settings Window690Microcontrollers Debugger Manual•A User Triggers mode, which provides two complex breakpoi
ColdFire On-Chip DBG ModuleTrigger Module Settings Window691Microcontrollers Debugger Manual Figure 31.4 Trace Settings for Automatic modeSync PC DBG
ColdFire On-Chip DBG ModuleTrigger Module Settings Window692Microcontrollers Debugger ManualUser Triggers modeWhen choosing the User Triggers mode, th
ColdFire On-Chip DBG ModuleTrigger Module Settings Window693Microcontrollers Debugger Manual Figure 31.7 Trigger Stop Condition sequencerThe trigger
ColdFire On-Chip DBG ModuleTrigger Module Settings Window694Microcontrollers Debugger ManualExpert ModeThe Expert mode is a “Do It Yourself” interface
ColdFire On-Chip DBG ModuleTrigger Module Settings Window695Microcontrollers Debugger Manual Figure 31.10 Expert Trigger Settings: CSR2 interactive t
ColdFire On-Chip DBG ModuleTrigger Module Settings Window696Microcontrollers Debugger ManualFigure 31.12 General Settings tab
697Microcontrollers Debugger ManualBook VI - Connection Common FeaturesBook VI ContentsEach section of the Debugger manual includes information to hel
Book VI Contents698Microcontrollers Debugger Manual
699Microcontrollers Debugger Manual32Flash ProgrammingNon-Volatile Memory Control Utility IntroductionWriting to Flash modules, EEPROMs, or other non-
Table of Contents7Microcontrollers Debugger Manual How to View Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger ComponentsGeneral Debugger Components70Microcontrollers Debugger ManualKeying In CommandsYou can type Debugger commands after the in> term
Flash ProgrammingAutomated Application Programming700Microcontrollers Debugger ManualFigure 32.1 Flash Programming Acceptance Dialog BoxSelect the OK
Flash ProgrammingAutomated Application Programming701Microcontrollers Debugger Manual Advanced Options: Erase PreventionSelect the Advanced button in
Flash ProgrammingNVMC Graphical User Interface702Microcontrollers Debugger ManualNVMC Graphical User InterfaceThe NVMC utility is integrated into the
Flash ProgrammingNVMC Graphical User Interface703Microcontrollers Debugger Manual • Disabled — A disabled module is not active on the chip, so program
Flash ProgrammingNVMC Graphical User Interface704Microcontrollers Debugger ManualFigure 32.6 Non-Volatile Memory Control Dialog BoxFor each block, th
Flash ProgrammingNVMC Graphical User Interface705Microcontrollers Debugger Manual The second checkbox of the Configuration group is Save and restore w
Flash ProgrammingNVMC Graphical User Interface706Microcontrollers Debugger ManualNOTE You simply click on a module in the list to select and/or use Se
Flash ProgrammingNVMC Graphical User Interface707Microcontrollers Debugger Manual Another way to load an .FPP parameter file is by clicking the Browse
Flash ProgrammingNVMC Graphical User Interface708Microcontrollers Debugger ManualLoading an Application in FlashThe Load button and the Load menu sele
Flash ProgrammingHardware Considerations709Microcontrollers Debugger Manual Hardware ConsiderationsThis section consists of hardware-specific informat
Debugger ComponentsGeneral Debugger Components71Microcontrollers Debugger Manual Closing the Command Line During ExecutionWhen a command is executed f
Flash ProgrammingNVMC Commands710Microcontrollers Debugger ManualNVMC CommandsThe following Flash commands can be issued through the debugger Command
Flash ProgrammingNVMC Commands711Microcontrollers Debugger Manual FLASH INIT <fileName>|AUTOID loads the parameter file according to fileName (y
Flash ProgrammingNVMC Commands712Microcontrollers Debugger ManualFLASH LOADCONTEX restores current buffer content into the MCU SRAM.FLASH OVLBACKUP ba
Flash ProgrammingNVMC Commands713Microcontrollers Debugger Manual ExamplesFLASH ERASE 2,7This erases memory blocks 2 and 7.FLASH ERASE 2,4-6 8This era
Flash ProgrammingNVMC Commands714Microcontrollers Debugger Manual
715Microcontrollers Debugger Manual33Debugging Memory MapIntroductionThe Debugging Memory Map (DMM) is a software Manager handling all debugger access
Debugging Memory MapThe DMM GUI716Microcontrollers Debugger ManualFigure 33.1 DMM Graphical User InterfaceThe DMM GUI shows a list of memory address
Debugging Memory MapThe DMM GUI717Microcontrollers Debugger Manual Pressing the Revert to Default button removes (after a warning dialog) the current
Debugging Memory MapThe DMM GUI718Microcontrollers Debugger ManualAccess kindThe Access Kind list menu provides a way to indicate that the memory rang
Debugging Memory MapThe DMM GUI719Microcontrollers Debugger Manual Figure 33.3 DMM Type selectionNOTE CPU core-specific memory types and Priorities a
Debugger ComponentsGeneral Debugger Components72Microcontrollers Debugger ManualCache SizeSelect Cache Size in the menu to bring up the Size of the Ca
Debugging Memory MapThe DMM GUI720Microcontrollers Debugger ManualMemory Read CachingThe Refresh memory when halting option controls the debugger memo
Debugging Memory MapThe DMM GUI721Microcontrollers Debugger Manual CPU Core Types and PrioritiesThis section details the available cores and their res
Debugging Memory MapDMM Commands722Microcontrollers Debugger ManualNOTE By factory/default setup, HCS08 DBG08 Fifo Registers have been protected to re
Debugging Memory MapDMM Commands723Microcontrollers Debugger Manual List of commandsDMMDMM ADD <parameters>DMM DEL <module handle>DMM SAVE
Debugging Memory MapDMM Commands724Microcontrollers Debugger Manual<address> the start address of the memory range<size> the size of the m
Debugging Memory MapDMM Commands725Microcontrollers Debugger Manual DMM SAVE commandSyntaxDMM SAVE <mcuid>with <mcuid>, a part/device MCUI
Debugging Memory MapDMM Commands726Microcontrollers Debugger ManualDMM CACHINGON commandSyntaxDMM CACHINGONPurposeData caching is engaged (default DMM
Debugging Memory MapDMM Commands727Microcontrollers Debugger Manual DMM WRITEREADBACKOFF commandSyntaxDMM WRITEREADBACKOFFPurpose DMM HCS12MERHANDLING
Debugging Memory MapDMM Commands728Microcontrollers Debugger ManualDMM OPENGUI commandSyntaxDMM OPENGUI [mcuid]with <mcuid>, a part/device MCUID
729Microcontrollers Debugger ManualBook VII - CommandsBook VII ContentsEach section of the Debugger manual includes information to help you become mor
Debugger ComponentsGeneral Debugger Components73Microcontrollers Debugger Manual Demo Version LimitationsOnly 20 commands can be entered and then comm
Book VII Contents730Microcontrollers Debugger Manual
731Microcontrollers Debugger Manual34Debugger Engine CommandsCommands OverviewThe debugger supports scripting with the use of commands and command fil
Debugger Engine CommandsCommands Overview732Microcontrollers Debugger ManualCommand Syntax To display the syntax of a command, type the command follow
Debugger Engine CommandsCommands Overview733Microcontrollers Debugger Manual ENDWHILE Exits a WHILE loopFOCUS component Sets the focus on a specified
Debugger Engine CommandsCommands Overview734Microcontrollers Debugger ManualBase CommandsBase commands are used to monitor the Simulator/Debugger targ
Debugger Engine CommandsCommands Overview735Microcontrollers Debugger Manual RS register[=]value{,register[=]value}Sets a registerSStops execution of
Debugger Engine CommandsCommands Overview736Microcontrollers Debugger ManualEnvironment CommandsSimulator/Debugger environment commands are used to mo
Debugger Engine CommandsCommands Overview737Microcontrollers Debugger Manual Component CommandsComponent common commands are used to monitor component
Debugger Engine CommandsCommands Overview738Microcontrollers Debugger ManualComponent Specific CommandsComponent specific commands are associated with
Debugger Engine CommandsCommands Overview739Microcontrollers Debugger Manual INSPECTORUPDATE Updates content of InspectorLS [symbol | *][;C|S] Display
Debugger ComponentsGeneral Debugger Components74Microcontrollers Debugger ManualFigure 3.11 Split ViewsCoverage OperationsClick the folded/unfolded i
Debugger Engine CommandsCommands Overview740Microcontrollers Debugger ManualCommand Syntax TermsaddressA number matching a memory address. This number
Debugger Engine CommandsCommands Overview741Microcontrollers Debugger Manual Example:d:/demo/myfile.txtExample:layout.hwlExample:d:/work/project.hwcco
Debugger Engine CommandsDebugger Commands742Microcontrollers Debugger ManualDebugger CommandsThe commands available when you use the Simulator/Debugge
Debugger Engine CommandsDebugger Commands743Microcontrollers Debugger Manual Example:in>ACTIVATE MemoryActivates the Memory Component and brings th
Debugger Engine CommandsDebugger Commands744Microcontrollers Debugger ManualUsageATTRIBUTES listwhere list=command{,command}) command=CACHESIZE valueE
Debugger Engine CommandsDebugger Commands745Microcontrollers Debugger Manual where list=command{,command}command= ADR (ON|OFF) | SMEM range | SPC addr
Debugger Engine CommandsDebugger Commands746Microcontrollers Debugger ManualThe HSCROLLPOS command sets the position of the horizontal scroll box (the
Debugger Engine CommandsDebugger Commands747Microcontrollers Debugger Manual Scrolls three positions down. The third line of registers is displayed on
Debugger Engine CommandsDebugger Commands748Microcontrollers Debugger Manual• ATTRIBUTES SMOD ~ Drag and drop from Module component to Source componen
Debugger Engine CommandsDebugger Commands749Microcontrollers Debugger Manual The MODE command selects the display mode of variables. •In Automatic mod
Debugger ComponentsGeneral Debugger Components75Microcontrollers Debugger Manual Output FileYou can redirect Coverage component results to an output f
Debugger Engine CommandsDebugger Commands750Microcontrollers Debugger Manual• ATTRIBUTES UPDATERATE ~ Select menu Data > Mode > Periodical• ATTR
Debugger Engine CommandsDebugger Commands751Microcontrollers Debugger Manual – signed decimal, – unsigned decimal or – symbolic.•The COMPLEMENT comman
Debugger Engine CommandsDebugger Commands752Microcontrollers Debugger ManualUsageATTRIBUTES listwhere list=command{,command}) command=FORMAT(bin|oct|h
Debugger Engine CommandsDebugger Commands753Microcontrollers Debugger Manual The COLUMNWIDTH command sets the width of one column entry on the right p
Debugger Engine CommandsDebugger Commands754Microcontrollers Debugger ManualThe COLLAPSE command folds one item. The item name must be given. The foll
Debugger Engine CommandsDebugger Commands755Microcontrollers Debugger Manual Equivalent Operations• ATTRIBUTES COLUMNWIDTH ~ Modify column width with
Debugger Engine CommandsDebugger Commands756Microcontrollers Debugger ManualAUTOSIZEAUTOSIZE enables/disables windows autosizing. When on, the size of
Debugger Engine CommandsDebugger Commands757Microcontrollers Debugger Manual BCBC deletes a breakpoint at the specified address. When * is specified,
Debugger Engine CommandsDebugger Commands758Microcontrollers Debugger ManualBCKCOLORBCKCOLOR sets the background color.The background color defined wi
Debugger Engine CommandsDebugger Commands759Microcontrollers Debugger Manual ComponentsDebugger engine.Example:in>BDFibonacci 0x805c TFibonacci 0x8
Debugger ComponentsGeneral Debugger Components76Microcontrollers Debugger ManualSplit View Associated Context MenuThe context menu for the split view
Debugger Engine CommandsDebugger Commands760Microcontrollers Debugger ManualUsageBS address| function [{mark}] [P|T[ state]][;cond=”condition”[ state]
Debugger Engine CommandsDebugger Commands761Microcontrollers Debugger Manual ComponentsDebugger engine.Example:in>BS 0x8000 TThis command sets a te
Debugger Engine CommandsDebugger Commands762Microcontrollers Debugger ManualComponentsDebugger engine.Example:in>cf \util\config.cmdLoads the confi
Debugger Engine CommandsDebugger Commands763Microcontrollers Debugger Manual The new project directory is C:\Program Files\Freescale\CodeWarrior for M
Debugger Engine CommandsDebugger Commands764Microcontrollers Debugger ManualExample Without “;C” Option:If a command1.txt file contains: bckcolor gree
Debugger Engine CommandsDebugger Commands765Microcontrollers Debugger Manual If a command2.txt file contains: bckcolor redExecution:in>cf command1.
Debugger Engine CommandsDebugger Commands766Microcontrollers Debugger ManualCLOSEThe CLOSE command is used to close a component.Component names are: A
Debugger Engine CommandsDebugger Commands767Microcontrollers Debugger Manual CMDFILEThe CMDFILE command allows you to define all target specific comma
Debugger Engine CommandsDebugger Commands768Microcontrollers Debugger ManualExample:in>cr /Freescale/demo/myrecord.txt ;AThe myrecord.txt file is o
Debugger Engine CommandsDebugger Commands769Microcontrollers Debugger Manual When address and range are omitted, disassembly begins at the address of
Debugger ComponentsGeneral Debugger Components77Microcontrollers Debugger Manual DA-C Link OperationWhen you load the DA-C Link component, communicati
Debugger Engine CommandsDebugger Commands770Microcontrollers Debugger ManualDBThe DB command displays the hexadecimal and ASCII values of the bytes in
Debugger Engine CommandsDebugger Commands771Microcontrollers Debugger Manual DDEPROTOCOLThe DDEPROTOCOL command is used to configure the Debugger/Simu
Debugger Engine CommandsDebugger Commands772Microcontrollers Debugger ManualDECODE_SKIPIn the HC08 CPU and HCS08 CPU components, the DECODE_SKIP comma
Debugger Engine CommandsDebugger Commands773Microcontrollers Debugger Manual processing starts. A symbol cannot represent a command name. Note that a
Debugger Engine CommandsDebugger Commands774Microcontrollers Debugger ManualExample:A symbol named testCase is defined in the test application./* Load
Debugger Engine CommandsDebugger Commands775Microcontrollers Debugger Manual DLThe DL command displays the hexadecimal values of the longwords in a sp
Debugger Engine CommandsDebugger Commands776Microcontrollers Debugger ManualDUMPThe DUMP command writes everything visible in the Data component to th
Debugger Engine CommandsDebugger Commands777Microcontrollers Debugger Manual ComponentsDebugger engine.Example:in>DW 0x8000,48000: FE80 45FD 8043 2
Debugger Engine CommandsDebugger Commands778Microcontrollers Debugger ManualExample:in>define a=0x12in>define b=0x10in>e a+b in>=34The add
Debugger Engine CommandsDebugger Commands779Microcontrollers Debugger Manual Example:if CUR_TARGET == 1000 /* Simulator */ set simelseif
Debugger ComponentsGeneral Debugger Components78Microcontrollers Debugger ManualConnection Specification Dialog BoxIn the Connection Specification dia
Debugger Engine CommandsDebugger Commands780Microcontrollers Debugger ManualENDFORThe ENDFOR keyword is associated with the FOR command.UsageENDFORCom
Debugger Engine CommandsDebugger Commands781Microcontrollers Debugger Manual ENDWHILEThe ENDWHILE keyword is associated with the WHILE command.UsageEN
Debugger Engine CommandsDebugger Commands782Microcontrollers Debugger ManualEXITIn the Command line component, the EXIT command closes the Debugger ap
Debugger Engine CommandsDebugger Commands783Microcontrollers Debugger Manual FILTERIn the Memory component, with the FILTER command, you select what y
Debugger Engine CommandsDebugger Commands784Microcontrollers Debugger Manual;WW match whole word is set.ComponentsSource component.Example:in>FIND
Debugger Engine CommandsDebugger Commands785Microcontrollers Debugger Manual FOCUSThe FOCUS command sets the given component (component) as the destin
Debugger Engine CommandsDebugger Commands786Microcontrollers Debugger ManualFOLDIn the Source component, the FOLD command hides the source text at the
Debugger Engine CommandsDebugger Commands787Microcontrollers Debugger Manual FORThe FOR loop allows you to execute all commands up to the trailing END
Debugger Engine CommandsDebugger Commands788Microcontrollers Debugger ManualFPRINTFFPRINTF is the standard ANSI C command: Writes formatted output str
Debugger Engine CommandsDebugger Commands789Microcontrollers Debugger Manual GThe G command starts code execution in the emulated system at the curren
Debugger ComponentsGeneral Debugger Components79Microcontrollers Debugger Manual Data ComponentThe Data window shown in Figure 3.18 contains the names
Debugger Engine CommandsDebugger Commands790Microcontrollers Debugger ManualComponentsDebugger engine.Example:in>GO 0x8000Program execution is star
Debugger Engine CommandsDebugger Commands791Microcontrollers Debugger Manual GOTOIFThe GOTOIF command diverts execution of the command file to the com
Debugger Engine CommandsDebugger Commands792Microcontrollers Debugger ManualExample:in>GRAPHICS offHELPIn the Command line component, the HELP comm
Debugger Engine CommandsDebugger Commands793Microcontrollers Debugger Manual UsageIF conditionWhere condition is same as defined in “C” language. Comp
Debugger Engine CommandsDebugger Commands794Microcontrollers Debugger ManualComponentsInspector component.Example:in>loadio swapin>Inspect<AT
Debugger Engine CommandsDebugger Commands795Microcontrollers Debugger Manual LFThe LF command initiates logging of commands and responses to an extern
Debugger Engine CommandsDebugger Commands796Microcontrollers Debugger ManualLOADThe LOAD command loads a framework application (.abs file) for a debug
Debugger Engine CommandsDebugger Commands797Microcontrollers Debugger Manual • ADD_SYMBOLS appends the symbol information to the existing symbol table
Debugger Engine CommandsDebugger Commands798Microcontrollers Debugger ManualLOADSYMBOLSThis command is similar to the LOAD command but only loads debu
Debugger Engine CommandsDebugger Commands799Microcontrollers Debugger Manual UsageLOG type [=] state {[,] type [=] state}Where type is one of the foll
Table of Contents8Microcontrollers Debugger ManualLoading the Full Chip Simulation Connection . . . . . . . . . . . . . . . . . . . . . .246Loading th
Debugger ComponentsGeneral Debugger Components80Microcontrollers Debugger Manual• Select a variable in the Data component, and left mouse button + W k
Debugger Engine CommandsDebugger Commands800Microcontrollers Debugger Manual bckcolor yellow at 1000 bckcolor whiteENDIFThe following log file is ge
Debugger Engine CommandsDebugger Commands801Microcontrollers Debugger Manual i 0x3 (3)!ENDFORWhen commands executed from a command file are
Debugger Engine CommandsDebugger Commands802Microcontrollers Debugger ManualExample 4:When executing the following file:define i = 1REPEAT define i
Debugger Engine CommandsDebugger Commands803Microcontrollers Debugger Manual LSIn the Command Line window, the LS command lists the values of symbols
Debugger Engine CommandsDebugger Commands804Microcontrollers Debugger ManualWhen LS is performed on a single symbol (e.g., in>ls counter) that is a
Debugger Engine CommandsDebugger Commands805Microcontrollers Debugger Manual MSThe MS command sets a specified block of memory to a specified list of
Debugger Engine CommandsDebugger Commands806Microcontrollers Debugger ManualUsageNB [base]Where base is the new number base (2, 8, 10 or 16).Component
Debugger Engine CommandsDebugger Commands807Microcontrollers Debugger Manual Table Example:in>NB 16The number base is hexadecimal.NOCRThe NOCR comm
Debugger Engine CommandsDebugger Commands808Microcontrollers Debugger ManualComponentsDebugger engine.Example:in>NOLFThe current Log File is closed
Debugger Engine CommandsDebugger Commands809Microcontrollers Debugger Manual OUTPUTWith OUTPUT, you can redirect the Coverage component results to an
Debugger ComponentsGeneral Debugger Components81Microcontrollers Debugger Manual Example:With two variables variable_1, variable_2; expression entered
Debugger Engine CommandsDebugger Commands810Microcontrollers Debugger ManualUsageP [address]address: is an address constant expression, the address at
Debugger Engine CommandsDebugger Commands811Microcontrollers Debugger Manual PRINTFThe PRINTF is the standard ANSI C command: Prints formatted output
Debugger Engine CommandsDebugger Commands812Microcontrollers Debugger ManualRDThe RD command displays the content of specified registers. The display
Debugger Engine CommandsDebugger Commands813Microcontrollers Debugger Manual RECORDIn the SoftTrace component, the RECORD command switches frame recor
Debugger Engine CommandsDebugger Commands814Microcontrollers Debugger ManualRESETIn the Profiler and Coverage component, the RESET command resets all
Debugger Engine CommandsDebugger Commands815Microcontrollers Debugger Manual RETURNThe RETURN command terminates the current command processing level
Debugger Engine CommandsDebugger Commands816Microcontrollers Debugger ManualUsageRS register[=]value{,register[=]value}register: Specifies the name of
Debugger Engine CommandsDebugger Commands817Microcontrollers Debugger Manual SAVEThe SAVE command saves a specified block of memory to a specified fil
Debugger Engine CommandsDebugger Commands818Microcontrollers Debugger Manualbreakpoints (SAVEBP on) when the user quits the Simulator/Debugger or load
Debugger Engine CommandsDebugger Commands819Microcontrollers Debugger Manual SETCOLORSThe SETCOLORS command is used to change the colors for a specifi
Debugger ComponentsGeneral Debugger Components82Microcontrollers Debugger ManualScope SubmenuThe Scope Submenu is activated by highlighting the Scope
Debugger Engine CommandsDebugger Commands820Microcontrollers Debugger ManualUsageSLAY fileNameComponentsDebugger engine.Example:in>slay /hiwave/dem
Debugger Engine CommandsDebugger Commands821Microcontrollers Debugger Manual SMEMIn the Source component, the SMEM command loads the corresponding mod
Debugger Engine CommandsDebugger Commands822Microcontrollers Debugger Manualassembler) (e.g., fibo.c), since all debugging information is contained in
Debugger Engine CommandsDebugger Commands823Microcontrollers Debugger Manual ComponentsAssembler, Memory and Source component.Example:in>Assembly &
Debugger Engine CommandsDebugger Commands824Microcontrollers Debugger ManualSRECThe SREC command initiates the loading of Freescale S-Records from a s
Debugger Engine CommandsDebugger Commands825Microcontrollers Debugger Manual Example:in>STEPINTOSTEP INTOTRACEDTRACED in the status line indicates
Debugger Engine CommandsDebugger Commands826Microcontrollers Debugger ManualSTEPOVERThe STEPOVER command executes the procedure as a unit, and then st
Debugger Engine CommandsDebugger Commands827Microcontrollers Debugger Manual STOPThe STOP command stops execution of the emulation processor. Use the
Debugger Engine CommandsDebugger Commands828Microcontrollers Debugger ManualUsageT [address][,count]address: is an address constant expression, the ad
Debugger Engine CommandsDebugger Commands829Microcontrollers Debugger Manual ComponentsDebugger engine.Example:in>TESTBOX "Step 1: init all va
Debugger ComponentsGeneral Debugger Components83Microcontrollers Debugger Manual In Local Scope, if the Data component is in Locked or Periodical mode
Debugger Engine CommandsDebugger Commands830Microcontrollers Debugger ManualExample:DEFINE test = 1...UNDEF testWhen the test variable is no longer ne
Debugger Engine CommandsDebugger Commands831Microcontrollers Debugger Manual applicationfiboCount 0x800 (2048)counter 0x802 (2050)_startupData
Debugger Engine CommandsDebugger Commands832Microcontrollers Debugger ManualUNFOLDIn the Source component, the UNFOLD command is used to display the c
Debugger Engine CommandsDebugger Commands833Microcontrollers Debugger Manual UPDATERATEIn the Data component and Memory component, the UPDATERATE comm
Debugger Engine CommandsDebugger Commands834Microcontrollers Debugger ManualProcedure 6.0.10Register 6.0.14Memory 6.0.19Data
Debugger Engine CommandsDebugger Commands835Microcontrollers Debugger Manual Example:WAIT 100T...Pauses for 10 seconds before executing the T Trace in
Debugger Engine CommandsDebugger Commands836Microcontrollers Debugger ManualWHILEThe WHILE command allows you to execute a sequence of commands as lon
Debugger Engine CommandsDebugger Commands837Microcontrollers Debugger Manual UsageWL range listrange: is an address range constant that defines the bl
Debugger Engine CommandsDebugger Commands838Microcontrollers Debugger ManualZOOMIn the Data component, the ZOOM command is used to display the member
839Microcontrollers Debugger ManualBook VIII - Environment VariablesBook VIII ContentsEach section of the Debugger manual includes information to help
Debugger ComponentsGeneral Debugger Components84Microcontrollers Debugger ManualMode SubmenuThe Mode Submenu is activated by highlighting the Mode ent
Book VIII Contents840Microcontrollers Debugger Manual
841Microcontrollers Debugger Manual35Debugger Engine Environment VariablesThis chapter describes the environment variables that the Debugger uses. Oth
Debugger Engine Environment VariablesDebugger Environment842Microcontrollers Debugger ManualDebugger EnvironmentVarious parameters of the Debugger may
Debugger Engine Environment VariablesDebugger Environment843Microcontrollers Debugger Manual • If the tool is launched using a File Manager/Explorer,
Debugger Engine Environment VariablesLocal Configuration File (usually project.ini)844Microcontrollers Debugger ManualLocal Configuration File (usuall
Debugger Engine Environment VariablesLocal Configuration File (usually project.ini)845Microcontrollers Debugger Manual Default Layout Configuration (P
Debugger Engine Environment VariablesLocal Configuration File (usually project.ini)846Microcontrollers Debugger ManualExample:Window5=Memory 50 60
Debugger Engine Environment VariablesLocal Configuration File (usually project.ini)847Microcontrollers Debugger Manual • The toolbar, status bar, head
Debugger Engine Environment VariablesLocal Configuration File (usually project.ini)848Microcontrollers Debugger ManualSelect HI-WAVE section to retrie
Debugger Engine Environment VariablesLocal Configuration File (usually project.ini)849Microcontrollers Debugger Manual NOTE When using WinEdit, do not
Debugger ComponentsGeneral Debugger Components85Microcontrollers Debugger Manual NOTE In Locked and Frozen mode, variables from a specific module are
Debugger Engine Environment VariablesEnvironment Variables850Microcontrollers Debugger ManualEnvironment VariablesThe remainder of this section is dev
Debugger Engine Environment VariablesEnvironment Variables851Microcontrollers Debugger Manual Arguments<path>: Paths separated by semicolons, wi
Debugger Engine Environment VariablesEnvironment Variables852Microcontrollers Debugger ManualExample:DEFAULTDIR=C:\INSTALL\PROJECTSee also:The Current
Debugger Engine Environment VariablesEnvironment Variables853Microcontrollers Debugger Manual GENPATH: #include “File” PathToolsCompiler, Linker, Deco
Debugger Engine Environment VariablesEnvironment Variables854Microcontrollers Debugger ManualLIBRARYPATH: ‘include <File>’ PathToolsCompiler, EL
Debugger Engine Environment VariablesEnvironment Variables855Microcontrollers Debugger Manual OBJPATH: Object File PathToolsCompiler, Linker, Decoder,
Debugger Engine Environment VariablesEnvironment Variables856Microcontrollers Debugger ManualArguments<directory>: Directory to be used for temp
Debugger Engine Environment VariablesSearch Order for Source Files857Microcontrollers Debugger Manual NO, OFF: The environment variable LIBRARYPATH: ‘
Debugger Engine Environment VariablesDebugger Files858Microcontrollers Debugger ManualIn the Debugger for Object Files (HILOADER)1. Path coded in the
Debugger Engine Environment VariablesDebugger Files859Microcontrollers Debugger Manual *.DLL A .DLL file that contains one or more functions compiled,
Debugger ComponentsGeneral Debugger Components86Microcontrollers Debugger ManualPointer as Array OptionIn the Data menu’s Options submenu, choose Opti
Debugger Engine Environment VariablesDebugger Files860Microcontrollers Debugger ManualProject.Ini Debugger Project Initialization File*.REC Recorder F
861Microcontrollers Debugger Manual36Connection-Specific Environment VariablesSome of the environment variables that can be used in the debugging proc
Connection-Specific Environment VariablesConnection-Specific Environment Variables862Microcontrollers Debugger Manual
863Microcontrollers Debugger ManualBook IX - Debugger LegacyBook IX ContentsEach section of the Debugger manual includes information to help you becom
Book IX Contents864Microcontrollers Debugger Manual
865Microcontrollers Debugger Manual37Legacy PEDebug Target Interface The PEDebug Target Interface has become “Legacy” and has been replaced by specifi
Legacy PEDebug Target InterfaceConnection Selection or Change Always Available within IDE866Microcontrollers Debugger ManualConnection Selection or Ch
867Microcontrollers Debugger Manual38Legacy Target Interfaces RemovedThe following hardware Target Interfaces have been discontinued:For HC08 CPU:• Hi
Legacy Target Interfaces Removed868Microcontrollers Debugger Manual
869Microcontrollers Debugger Manual39HC(S)08 Full-Chip Simulator Components No Longer Supported List of HC(S)08 FCS Components No Longer SupportedThe
Debugger ComponentsGeneral Debugger Components87Microcontrollers Debugger Manual Associated Context MenuThis section describes the context menus assoc
HC(S)08 Full-Chip Simulator Components No Longer SupportedList of HC(S)08 FCS Components No Longer Supported870Microcontrollers Debugger Manual• Testt
871Microcontrollers Debugger ManualIndexAA command 742A icon 506About Box 52About menu entry 51About Option 399About option 500, 572, 682.abs file 61A
872Microcontrollers Debugger ManualHardware 517Marking 115Multiple selection 161Permanent 157Position 164Temporary 157, 165with Register Condition 168
873Microcontrollers Debugger Manual RECORD 813REPEAT 799, 813RESET 814RESTART 814RETURN 815RS 815S816SAVE 817SAVEBP 817SET 818WHILE 799Communication 6
874Microcontrollers Debugger ManualDDA-CConfigure file types 221Configuring 219Configuring tools 226Database directory 221Debugger Interface 230Debugg
875Microcontrollers Debugger Manual FIND 783FINDPROC 784FOCUS 785FOLD 786FONT 786FOR 787FPRINTF 788FRAMES 788G789GO 789GOTO 790GOTOIF 791GRAPHICS 791H
876Microcontrollers Debugger ManualDecimalmode 151Default IP address 412DEFAULT.ENV 842, 851, 852, 856default.mem file 580DEFAULTDIR 851DefaultDir 200
877Microcontrollers Debugger Manual Defining 421Record modes 424EXECUTE command 781Execute menu entry 625EXIT command 782Exit menu entry 35Expert mode
878Microcontrollers Debugger ManualFind Procedure dialog box 123Find Procedure menu entry 121FINDPROC command 784Flash 674, 682Commands 710Disabling 7
879Microcontrollers Debugger Manual Display 206display 82Values and types 79GO command 789Go to Frame 536Go to Frame menu entry 131Go to Line dialog b
Debugger ComponentsGeneral Debugger Components88Microcontrollers Debugger ManualSUBMENU Open ModuleThe dialog box shown in Figure 3.31 lists all sourc
880Microcontrollers Debugger ManualReset to Normal Mode 481Select derivative 481Select Derivative dialog box 483Set Connection dialog box 479Setup 480
881Microcontrollers Debugger Manual Connection Manager Window - Advanced Settings Tab 384Connection Manager Window Connect to Target Tab 382Connection
882Microcontrollers Debugger ManualLED instrument attributes 150Left menu entry 144LF command 795LIBPATH 856LIBRARYPATH 854Line Continuation 849Load a
883Microcontrollers Debugger Manual 16-Pin Header Signals tabStatus Area 340Advanced Options Dialog Box 343Cable Connection Communications Type 336Con
884Microcontrollers Debugger ManualOObject Info Bar 53OBJPATH 855Oct menu entry 84, 95, 113, 207Octal 207Octal format 207OPEN command 808Open Componen
885Microcontrollers Debugger Manual Protect DBG FIFO content from unexpected reads 532PTRARRAY command 811Pulse Width 152PVCS 857RR command 256, 345,
886Microcontrollers Debugger ManualFirst Steps Using Stationery Wizard 562MCU Configuration dialog box 564Reset to normal mode 565Select derivative 56
887Microcontrollers Debugger Manual SMEM command 821SMOD command 821SofTec ColdFireAbout 682Bus Trace 682CodeWarrior IDE and SofTec ColdFire connectio
888Microcontrollers Debugger ManualStart recording after trigger hit and halt when fifo is full 527Start/Continue menu entry 42Starting an Application
889Microcontrollers Debugger Manual Configuration 199Default Layout Configuration 845Demo Version Limitations 26Drag and Drop 55Engine 25Layout 846Pro
Debugger ComponentsGeneral Debugger Components89Microcontrollers Debugger Manual NOTE It is important to distinguish between dragging a variable name
890Microcontrollers Debugger ManualCounting 176, 184Definition 157Deleting 178, 184Read 174, 182Read, Write 158Read/Write 175, 183Write 175Watchpoints
891Microcontrollers Debugger Manual
892Microcontrollers Debugger Manual
Table of Contents9Microcontrollers Debugger Manual Cycle Power Radio Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugger ComponentsGeneral Debugger Components90Microcontrollers Debugger ManualAssociated CommandsADDXPR, ATTRIBUTES, DUMP, PTRARRAY, SMOD, SPROC, UP
Debugger ComponentsGeneral Debugger Components91Microcontrollers Debugger Manual NOTE Memory values that have changed since the last refresh status ar
Debugger ComponentsGeneral Debugger Components92Microcontrollers Debugger ManualBanked/Window Paged Memory: Physical/Local vs. Logical displayThis sec
Debugger ComponentsGeneral Debugger Components93Microcontrollers Debugger Manual • Hold down the left mouse button + A key to jump to a memory address
Debugger ComponentsGeneral Debugger Components94Microcontrollers Debugger ManualWord Size SubmenuWith the Word Size submenu shown in Figure 3.35, you
Debugger ComponentsGeneral Debugger Components95Microcontrollers Debugger Manual Format SubmenuWith the Format Submenu shown in Figure 3.36, you can s
Debugger ComponentsGeneral Debugger Components96Microcontrollers Debugger ManualDisplay SubmenuWith the Display submenu shown in Figure 3.38, you can
Debugger ComponentsGeneral Debugger Components97Microcontrollers Debugger Manual Fill Memory The Fill Memory dialog box shown in Figure 3.39 allows yo
Debugger ComponentsGeneral Debugger Components98Microcontrollers Debugger ManualCopyMem Submenu The CopyMem dialog box shown in Figure 3.41 allows you
Debugger ComponentsGeneral Debugger Components99Microcontrollers Debugger Manual RefreshSelect the Refresh menu entry to refresh the Memory window cur
Commentaires sur ces manuels