Motorola USB08 Instruções de Operação

Consulte online ou descarregue Instruções de Operação para Redes Motorola USB08. Motorola USB08 Operating instructions Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 100
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes

Resumo do Conteúdo

Página 1 - Xplor8 - Version 1

Xplor8 - Version 1Manual

Página 2

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

Página 3 - CONTENTS

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

Página 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

Página 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

Página 6

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

Página 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

Página 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

Página 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

Página 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

Página 11 - 2.6 Remote Reset

186 PROGRAM FEATURES6.1 Screen Layout

Página 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

Página 13 - 3 MON08 MONITOR FIRMWARE

2This page intentionally left blank

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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&

Página 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.

Página 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

Página 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

Página 24 - 6.11 View Menu

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 32

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

Página 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

Página 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

Página 35 - 7.4 Settings>Macros

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

Página 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

Página 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

Página 38

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

Página 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

Página 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

Página 41 - 8.2 Path Tokens

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

Página 42

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

Página 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

Página 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

Página 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

Página 46 - 8.9 Find Bytes FIND

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

Página 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

Página 48 - G * NextBreakAddr

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 54 - 8.19 Pause PAUSE

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

Página 55

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

Página 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

Página 57 - 8.22 Save Memory SV

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

Página 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

Página 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

Página 60 - 8.25 Trace T

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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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\

Página 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

Página 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

Página 73

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 80

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

Página 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,

Página 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

Página 83

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

Página 84

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

Página 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

Página 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

Página 87

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

Página 88

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

Página 89

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

Página 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

Página 91

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

Página 92

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

Página 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

Página 94

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

Página 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

Página 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

Página 97

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

Página 98

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

Página 99

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

Página 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

Comentários a estes Manuais

Sem comentários