Fujitsu MB91360 manual Advanced debugger features

Page 17

STARTERKIT MB91360

Chapter 4 Details of the included Monitor-Debugger

4.2Advanced debugger features

TOGGLE BREAKPOINT: Sets or deletes breakpoint at the current source line or :

To set or delete a breakpoint, click the circles at the beginning of a source-line. A indicates an active breakpoint. Hit “go” to execute until this line. A list of all breakpoints can be found under the “Debug – Breakpoint” menu. 255 Software-Breakpoints (using TRAP replacement) are possible.

￿To set breakpoints at positions which are currently not visible (e.g. because the source- window of that module is not open), you can also enter a symbolic label directly in the “Breakpoint” menu. Example: Enter “main” in the address-field and confirm. The new breakpoint will automatically be assigned to the address of the “main()”-function.

REGISTER WINDOW: Displays the CPU-register window. Updated registers appear in red. Setup in context menu defines which Registers should be displayed.

WATCH WINDOW: Displays the current variables to „watch“. Double-click on any variable in your code then specify watch in context menu to add to watch window. All listed variables in a watch window can be displayed in any number format. Use Edit to directly change the contents.

Example: Open the Leddemo1-Project and execute until you see the first LED-pattern. Then double-click on PDRJ in the debugger-window and select „watch“ in the context-menu. The watch-window will appear and PDRJ will be added to any existing variables. Select PDRJ in the watch window and choose „Edit“. Enter any value and confirm. You will now see the (8- Bit) value displayed on the LEDs directly as binary code. This is because PDRJ is the output latch of the LED-port (J).

MEMORY WINDOW: Displays memory areas in various formats defined by Setup (context menu). Changing of address/data is possible when debugger is not executing.

Note : If you make changes to the ROM-area (080000..0FFFFF) it can affect the currently loaded program !

DISASSEMBLER: Disassembles the contents of the code memory beginning from actual PC position and displays the result in a separate window. Individual

assembler-lines can be changed using the „inline assemble“-function.

© Fujitsu Microelectronics Europe GmbH

- 17 -

UG-910006-13

Image 17
Contents MB91360 Series Revision History Date IssueNo Liability for Consequential Damages Warranty and DisclaimerContents Fujitsu Microelectronics Europe GmbH UG-910006-13 Abstract Key FeaturesIntroduction General Board Usage Using the Starterkit as target board for the ICEMode Selection Hardware Installation InstallationSoftware Installation Softune Workbench Development Introduction Getting StartedUG-910006-13 Fujitsu Microelectronics Europe GmbH Softune Workbench Debugging Introduction SWB Debugging window Details of the included Monitor-Debugger Basic debugger featuresSTARTUP.ASM enabled #define Abort Advanced debugger features Examplecandump = Dump/Halfword 100000..1000ff Examplerestart set register PC=1f4000 set break main Generic Flash Programmer Flash ProgrammingIT can Damage the Flash ROM Permantently Board Components Evaluation Board HardwareOverview of Jumpers Jumper Description Standard Setting Jumper PositionJumper Description Connectors for resources and IO-signals Jumper Pin-No Pin Name IO-Port Resource Function JP15 JP14PWM1P0 PR0 SMC Memory Mappings MB91F362 AppendixMode 001 External Bus / User Mode Memory Type Used for Area Sections Tool options for own projectsStarterkit limitations Board Schematics UG-910006-13 Fujitsu Microelectronics Europe GmbH Fujitsu Microelectronics Europe GmbH UG-910006-13 Silk Screen Chip PAL ListingEquations MB91FV360GCR Development tools and accessoriesRelated Documents Trouble Shooting Problem SolutionTrouble Shooting Tables Figures