Motorola USB08 Instructions d'exploitation

Naviguer en ligne ou télécharger Instructions d'exploitation pour Mise en réseau Motorola USB08. Motorola USB08 Operating instructions Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 100
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Xplor8 - Version 1

Xplor8 - Version 1Manual

Page 2

102 MISCELLANEOUS2.1 InstallingDouble click on the self-installing exe file, named something like ‘Install-Xplor8-xyz.exe’ which youhave downloaded fr

Page 3 - CONTENTS

100APPENDIX J - Xplor8 REVISION HISTORY & KNOWN BUGSRevision HistoryKnown Bugs: Does not display correctly on operating systems, such as Micros

Page 4

112.5 Supporting FilesTo be fully operational, Xplor8 needs access to various supporting files of information. These are:1. A configuration file for e

Page 5

12talker to transmit the required bytes of MCU memory to Xplor8 where they will be stored in thecorresponding address locations in the local memory ar

Page 6

133 MON08 MONITOR FIRMWARE3.1 IntroductionThe HC908 series of micro controllers come with a small monitor program (MON08) alreadyprogrammed into ROM.

Page 7 - 1 INTRODUCTION

143.2 Utility FilesThe on-chip monitor program has only basic commands which have to be used as the building blocksfor more complex functions. In part

Page 8 - 1.6 Development History

15This viewer may be launched either from the View Menu menu or from Settings>Security Bytes (page38).The default log is limited to 100 records, an

Page 9 - 1.10 An Appeal

164 MEMORY MANAGEMENT4.1 Writing to RAMThe monitor ROM routines on the MCU are able to write directly to RAM, including the I/O registers.4.2 Writing

Page 10 - 2 MISCELLANEOUS

175 DEBUGGING5.1 BreakpointsTracing, and running programs to breakpoints, requires that breakpoints can be established at the rightplaces in the MCU p

Page 11 - 2.6 Remote Reset

186 PROGRAM FEATURES6.1 Screen Layout

Page 12 - 2.9 USB-to-Serial Adapters

196.2 Main MenuThe main menu provides access the various facilities in Xplor8. For more details see the individualmenu descriptions later in this chap

Page 13 - 3 MON08 MONITOR FIRMWARE

2This page intentionally left blank

Page 14 - 3.3 Entering Monitor Mode

20The division between the output and command history windows is a moveable splitter bar, allowingone window to be enlarged or reduced at the expense

Page 15 - 3.5 Baud Rates

212. The command is copied to the command history list and to the output window, where itappears in green type.3. If the command is correctly formatte

Page 16 - 4 MEMORY MANAGEMENT

226.8.2 T/G, L/U and BR addresses• T/G The T/G address show where Tracing and Running will next begin in the absence ofa specific address• L/U The L/U

Page 17 - 5 DEBUGGING

23Add... Click to open the Add to Watch dialog for adding an address to watch (see below).Delete Deletes an item selected in the Watch display.Clear A

Page 18 - 6 PROGRAM FEATURES

24Save Project... Saves the current configuration to a project file. If the file exists, it will besilently updated, if not, a file save dialog will a

Page 19 - 6.4 Output Window

256.12 Actions MenuMenu to simplify the issuing of commands that involve the loading and saving of files to and from theMCU. Such commands all need a

Page 20 - 6.6 Command Edit Box

26Load S19 to Local... As though the 'LDL' command had been issued - see the Load MemorycommandSave Local to S19... As though the 'SVL&

Page 21 - 6.8 Information Sidebar

27Contents Opens Help Topics at the Contents tab. Shortcut is Shift+F1.Getting Started Opens Help at ‘Getting Started’ - see Appendix G.Error Report.

Page 22

28Ctrl+C Copy to ClipboardCtrl+V Paste from ClipboardCtrl+X Cut to ClipboardCtrl+Y Delete the line containing the insertion point (caret).Keyboard Sho

Page 23 - 6.10 File Menu

296.19 Security Bytes Log ViewerThis window displays a log of security bytes. It may be used to view the default log, or one of thecopies saved by the

Page 24 - 6.11 View Menu

3CONTENTS1 INTRODUCTION ... 71.1 The Program ... 71.2

Page 25 - 6.12 Actions Menu

30Xplor8 after the write operation and are not simply the bytes which the user sent to programmemory.New The user has successfully attempted an Unlock

Page 26 - 6.15 Help Menu

317 CONFIGURATION7.1 Settings DialogThe six tabs of the Settings Dialog contain various editable fields for the customization of Xplor8. Allthe config

Page 27 - 6.16 Keyboard Shortcuts

32E Clock FrequencySelect the E clock frequency at which the MCU is working. See the HC908 data sheet for the chip thatyou are using. Those chips with

Page 28 - 6.18 Base Converter

337.3 Settings>COM PortTab for configuring the RS232 port which will be used to communicate with the target board. Notethe caveats in USB-to-Serial

Page 29

34PC controls resetTick this box if the host PC is able to control the reset cycle on the target board.Using DTR/RTSSelect whichever signal is used fo

Page 30

357.4 Settings>MacrosTab for editing the boot script and for settings affecting macro library files.Run this script on bootTick this check box and

Page 31 - 7 CONFIGURATION

36Command line format errorTick this box to cause a playing macro to stop if a command within the macro is format ted incorrectly,causing an error mes

Page 32

37Such spaces can improve the readability of disassembled code by highlighting the places wheresequential code execution is not possible.Run/Trace Dis

Page 33 - 7.3 Settings>COM Port

387.6 Settings>Security BytesTab for working with the security bytes needed to unlock FLASH memory. See Security Bytes(page 14) for a full explanat

Page 34

39View Saved Copy Log...Click for a file-open dialog to select a previously-saved copy of the security byte log. The selected fileis then displayed in

Page 35 - 7.4 Settings>Macros

46.4 Output Window ... 196.5 Command History Window ... 206.6 Command E

Page 36 - 7.5 Settings>Debug

408 COMMANDS8.1 General informationCommands to Xplor8 to carry out monitoring, debugging and loading operations are typed in to theCommand Edit Box at

Page 37

41• Some commands can be limited to affecting only the local, Xplor8, copy of the MCU memoryspace (see local memory on page 11). All the sample L(List

Page 38

42The tokenized forms are also used within project files to store file information. This simplifies thebackup and transfer of projects to another comp

Page 39 - 7.7 Settings>Notes

438.4 Clear Local Memory CLMFormat:CLMThis command only clears the local memory held within Xplor8. It does not affect the CPU or itsmemory at all.8.5

Page 40 - 8 COMMANDS

448.7 Edit Flash Byte EFBFormat:EFB Address NewByteCommand to change a single byte of FLASH memory. 'Address' is an address in FLASH memor

Page 41 - 8.2 Path Tokens

458.8 Fill Memory FFormat:F StartAddress EndAddress|+Length ByteString|CharacterStringorFL StartAddress EndAddress|+Length ByteString|Character

Page 42

468.9 Find Bytes FINDFormat:FIND StartAddress EndAddress|+Length ByteString|CharacterStringorFINDL StartAddress EndAddress|+Length ByteString|Chara

Page 43 - 8.6 Connect / Disconnect

478.10 Find Next NEXTFormat:NEXTTo find the next occurrence of a string of bytes previously specified with a FIND command. Thiscommand actually search

Page 44 - EFB EE00 1D

488.11 Go (Run) GFormat:G [StartAddress|* [Breakpoint] ]Command to run a program on the MCU. If StartAddress is not specified, or an asterisk is use

Page 45 - 8.8 Fill Memory F

498.12 List Macros LMFormat:LMCommand to list the names of the macros in the currently loaded macro library file. See Macros onpage 68 for more inform

Page 46 - 8.9 Find Bytes FIND

58.20 Register Display and Change ... 558.21 Reset ... 568.22 S

Page 47 - 8.10 Find Next NEXT

508.13 List Memory LFormat:L [StartAddress|* [EndAddress|+Length]]orLL [StartAddress|* [EndAddress|+Length]]Command to list memory. If no end add

Page 48 - G * NextBreakAddr

518.14 Load Memory LDFormat:LD Path&Filename.rec|.s19LDL Path&Filename.rec|.s19orLD Path&Filename.obj|bin StartAddressLDL Path&

Page 49 - 8.12 List Macros LM

528.15 Mass Erase MEFormat:ME [Address]Command to mass erase all of FLASH memory. 'Address' is optional; if it is not included, or has any

Page 50 - 8.13 List Memory L

538.17 Modify Memory M, MMFormat:M StartAddressorMM StartAddressCommand to modify random access memory byte by byte. An explicit start address mu

Page 51 - 8.14 Load Memory LD

54leads to: 8010 30.This co mmand cannot write t o FLASH memory.8.18 Page Erase PEFormat:PE StartAddress [EndAddr|+Length]Command to erase one or m

Page 52 - 8.16 Mode Switch MODE

558.20 Register Display and Change RFormat:R I/OReg|CtrlRegorR I/OReg|CtrlReg=NewValueCommand to display and modify the MCU Input/Output registers

Page 53 - 8.17 Modify Memory M, MM

568.21 Reset RESETFormatRESETThis command, which is only available when 'PC controls reset' is checked on the Settings>COM Porttab, and t

Page 54 - 8.19 Pause PAUSE

578.22 Save Memory SVFormat:SV StartAddress EndAddress|+Length Path&Filename.rec|.s19SVL StartAddress EndAddress|+Length Path&Filename.r

Page 55

588.23 Send Bytes SENDFormat:Send BaudRate InterCharDelay ByteStringBaudRate to suit the on-chip program. This baud rate applies only to the Sen

Page 56 - 8.21 Reset RESET

598.24 Launch Terminal Window TERMFormat:TERMThis command opens the Terminal Window (see page 74). It is included so that a macro can put theuser in d

Page 57 - 8.22 Save Memory SV

6APPENDIX F - RS232 COMMUNICATIONS ... 89APPENDIX G - GETTING STARTED and QUICK TOUR ...

Page 58 - 8.23 Send Bytes SEND

608.25 Trace TFormat:T[Repeats] [StartAddress|*]Command to trace a program in MCU controlled memory. If no explicit start address is specified, thent

Page 59

618.26 Step Over OFormat:O[Repeats] [StartAddress|*]Command to step over a program in MCU controlled memory, that is to jump over subroutine calls.If

Page 60 - 8.25 Trace T

628.27 Unassemble UFormats:U[Repeats] [StartAddress|*]orUL[Repeats] [StartAddress|*]orU [StartAddress|*] [EndAddress|+Length]orUL [StartAddress|*]

Page 61 - 8.26 Step Over O

63The readability of disassembly listings may be enhanced by checking 'UnAsm: add spaces at codebreaks' on the Settings>Debug tab. This w

Page 62 - 8.27 Unassemble U

64One or two factors have to be borne in mind when using a symbol table:• Labels are partially case-sensitive. When looking-up the symbol table, Xplor

Page 63 - 8.28 Using a Symbol Table

658.29 Unlock UNLOCKFormat:UNLOCK [SecurityBytes]Use the unlock command to send the eight security bytes to unlock FLASH memory. 'SecurityBytes

Page 64

668.30 Verify VFormat:V Path&Filename.rec|.s19orVL Path&Filename.rec|.s19Command to verify memory by comparing it with an S19 format file.

Page 65 - 8.29 Unlock UNLOCK

678.31 Verify Erase VEFormat:VE StartAddress [EndAddress|+Length]Command to verify that MCU memory is erased (bytes = $FF). If no arguments are supp

Page 66 - 8.30 Verify V

689 AUTOMATION9.1 IntroductionIt is possible to automate the action of Xplor8 in four ways:1. Three commonly-used commands can be issued automatically

Page 67 - 8.31 Verify Erase VE

69 Definition of a macro begins with the word 'DEFM' (Define Macro) followed by the name of themacro. The name may in turn be followed by up

Page 68 - 9 AUTOMATION

71 INTRODUCTION1.1 The ProgramXplor8 is a simple loader/de-bugger/monitor interface for the Freescale (Motorola) HC908 microcontroller units. I develo

Page 69 - 9.3 Boot Script

70then FF will be written to FLBPR immediately after unlocking - see Register Display and Change(page 55) for more details of the 'R' comman

Page 70 - 9.5 Replaceable Parameters

71BEGINMACRO3 "[Xplor8]\Samples\Looptest.S19"END Playing MACRO4 in the above example thus:Macro4 is equivalent to:LD "[Xplor8]\Samples\

Page 71

72or the speedbuttons. Recorded command lines are appended to the end of whatever library script isopen in the macro editor.9.6.3 Stopping Playing or

Page 72 - 9.7 Macro Editor

73Delete Line Delete the line containing the insertion point. Shortcut: Ctrl+YMake into Macro If a line or lines have been selected in the editor, th

Page 73

7410 TERMINAL WINDOW10.1 IntroductionXplor8 has an integrated terminal window which allows the user to send and receive bytes with aconnected MCU, pro

Page 74 - 10 TERMINAL WINDOW

7510.3 Interaction with the Monitoring/Debugging FunctionsIt is basically only possible to use either the main Xplor8 monitor program or the terminal

Page 75

76Word Wrap Check t o wrap text in the display.SettingsTerminal Settings... Click to open the Terminal Window Settings dialog.HelpIndex Opens Help Top

Page 76 - 10.5 Terminal Window Settings

77Delay (in milliseconds) between characters when sending a fileEnter a time in milliseconds which will be inserted between the sending of each charac

Page 77

7811 ERRORS11.1 Communication and Echo ErrorsWhen Xplor8 sends a byte to the monitor firmware it usually expects to receive an echoed byte. Bycomparin

Page 78 - 11 ERRORS

7911.2 DiagnosticsWhen an error dialog is displayed, diagnostic information is added to the Output Window.In the following example, I added the line 7

Page 79 - 11.4 Command Line Errors

81.4 Xplor8 Source CodeXplor8 is written in Object Pascal as implemented by Borland, in my case in Delphi versions 4 and 7.Two additional components a

Page 80

80APPENDIX A - ACKNOWLEDGMENTSMotorola/FreescaleFor their flexible design of the HC908 micro controllers and for their good documentationBorlandFor

Page 81 - APPENDIX B - HARDWARE

81APPENDIX B - HARDWAREThis diagram shows the basic set-up needed for Xplor8 to communicate with the MCU, to allowXplor8 to reset the MCU remotely,

Page 82

823. Relay RL1 performs the power-on reset. A relay is likely to be particularly inappropriate herebecause of contact bounce.4. Relay RL2 provides the

Page 83

83APPENDIX C - COMMAND SUMMARYCLMClear the local, Xplor8, copy of memoryCLSClear output windowCONNECT / DISCONNECTOpen or close the COM portCRC

Page 84

84R IOReg|CtrlReg [=NewValue]Display and modify registersRESETRemotely reset the target MCUSV StartAddr EndAddr|+Length Path&Filename.E

Page 85

85APPENDIX D - SETUP FOR DIFFERENT MCU’sUsing Xplor8 with different members of the HC908 family.Utility FilesThese are in S19 format and vary with M

Page 86

86APPENDIX E - COMMAND-LINE ERROR MESSAGE SUMMARYCommand Line ErrorsThere are numerous ways in which what is typed on the command line may not b

Page 87

87Address(es) overlap FLASH Command arguments, or the loadingaddresses in an S19 file, overlap FLASH.Some commands cannot write to FLASHAddress(es) o

Page 88

88BEGIN not found The 'BEGIN' directive was not found in amacro invoked from the command lineNo library macros foundFile not foundUnrecogniz

Page 89

89APPENDIX F - RS232 COMMUNICATIONSIntroductionThe RS232 standard, now more correctly the EIA232 standard, first appeared in the 1960's. It w

Page 90

91.7 Getting StartedFor those simply wishing to get started as soon as possible, I’ve put the basic installation and operatinginstructions in Appendix

Page 91

90The pins are labeled with a functional description as follows. 'IN' and 'OUT' refer to the signaldirections as they apply to the

Page 92

91Logic LevelsIt is this aspect which causes the most bewilderment among users, largely because of the counter-intuitive naming conventions used. The

Page 93

92Break SignalThe RS232 standard also specifies a signal called a Break, which is the sending of continuous Space(logic 0) values (no Start or Stop bi

Page 94

93APPENDIX G - GETTING STARTED and QUICK TOURInstallationDouble click on the self-installing exe file, named something like ‘Install-Xplor8-xyz

Page 95 - QUICK TOUR

94• Move to the ‘Security Bytes’ tab. Enter the sequence of bytes needed to unlock FLASHmemory on the MCU. If you are using a brand new chip these wil

Page 96

95QUICK TOURA quick introduction to the capabilities of Xplor8.The tour assumes that you are able to unlock FLASH memory on the MCU you are using - e

Page 97

96LD "[Xplor8]\Samples\LOOPTEST.S19"Writing FB00..FB23Loading complete4. Unassembling MemoryConfirm that you have loaded the 'Looptest

Page 98

978. Tracing a ProgramType:T FB00 <enter>Depending on the selections in Settings>Debug, the output window will display information on theinst

Page 99

98APPENDIX H - DISTRIBUTION FILESThe installation file Install-Xplor8-xyz.exe sets up the following files, in the sub-directories listedbelow. Not

Page 100 - Revision History

99GP32_UT3.ASMJB8_UT1.ASMJKL_UT1.ASMJKL_UT2.ASMQTY_UT1.ASMQTY_UT2.ASMSub-folder ..\Projects\ Default location for project files.Sub-folder ..\Register

Commentaires sur ces manuels

Pas de commentaire