Debugging Package forMotorola 68K CISC CPUsUser's Manual(Part 1 of 2) 68KBUG1/D3
Network I/O Error Codes 1-24Multiprocessor Support 1-24Multiprocessor Control Register (MPCR) Method 1-24GCSR Method 1-27Diagnostic Facilities 1-27En
CNFG - Configure Board Information Block3-393Update Non-Volatile RAM (Y/N)? y 167-Bug> At the end of the modification session, you are prompted for
3-40Debugger Commands3CS - ChecksumCommand InputCS range [;B|W|L] OptionsB ByteW Word (default)L LongwordThe option field serves both as a data size i
CS - Checksum3-413The addresses used in the range parameters can be provided in two forms: ❏ An absolute address (32-bit maximum). ❏ An expression us
3-42Debugger Commands3DC - Data ConversionCommand InputDC exp | addess [;[B][O][A]] OptionsB Displays the output in binary.O Displays the output in oc
DC - Data Conversion3-433167-Bug>DC 55>>1 <CR> 0000002A = $2A = &42 167-Bug>dc 1+2;b DATA BIR: 33222222222211111111110000000000
3-44Debugger Commands3DMA - DMA Block of Memory MoveCommand InputDMA range address vdir am block [;B|W|L] .DescriptionThis command utilizes the hardwa
DMA - DMA Block of Memory Move3-453Refer to the VMEbus specification for the complete description of block transfer mode. The VMEbus transfer address
3-46Debugger Commands300010000 00000001 00020003 00040005 00060007 ... 00010010 00080009 000A000B 000C000D 000E000F ...
DMA - DMA Block of Memory Move3-47303000000 00000001 00020003 00040005 00060007 ... 03000010 00080009 000A000B 000C000D 000E000F ...
3-48Debugger Commands3167-Bug>dma 3000000 3000100 10000 1 e 0 Effective address: 03000000 Effective address: 030000FF Effective address: 00010000 D
DC - Data Conversion 3-42DMA - DMA Block of Memory Move 3-44DS - One Line Disassembler 3-50DU - Dump S-Records 3-51ECHO - Echo String 3-54ENV - Set E
DMA - DMA Block of Memory Move3-493167-Bug>dma 0:1000 4000000 0 d 0;b Effective address: 00000000 Effective count : &4096 Effective address: 0
3-50Debugger Commands3DS - One Line DisassemblerCommand InputDS address [:count | address]DescriptionThis is synonymous with the MD address;DI command
DU - Dump S-Records3-513DU - Dump S-RecordsCommand InputDU [port] range [text] [address] [offset] [;B|W|L] DescriptionThe DU command outputs data from
3-52Debugger Commands3OptionsB Byte (default)W Word L LongwordThe option field is allowed only if a count was entered as part of the range, and define
DU - Dump S-Records3-533167-Bug>DU ,,20000 2002F 'TEST' 2000A <CR> Effective address: 00020000 Effective address: 0002002F 167-Bug&
3-54Debugger Commands3ECHO - Echo StringCommand InputECHO [port] {hexadecimal_number} {'string'} Argumentsport Port where string will be ech
ECHO - Echo String3-553167-Bug> In this example, the ASCII string and a BELL character were sent to port #1. Example 3167-Bug>echo 2 'this
3-56Debugger Commands3ENV - Set Environment to Bug/Operating SystemCommand InputENV [;[D]] OptionD Load ROM defaults into NVRAM.DescriptionThe ENV co
ENV - Set Environment to Bug/Operating System3-573Programming the VMEbus to Local Bus Map DecodersThe VMEbus slave map decoders allow a VMEbus master
3-58Debugger Commands3Note The VMEbus window size may be any number of 64KB blocks up to the block size. 6. If the VMEbus window is entirely below th
Listing Current Port Assignments 3-147ConÞguring a Port 3-147Parameters ConÞgurable by Port Format 3-150Assigning a New Port 3-151NOPF Port Detach 3-
Go Direct (Ignore Breakpoints)3-593Go Direct (Ignore Breakpoints)Command InputGD [address] DescriptionGD is used to start target code execution. If a
3-60Debugger Commands3167-Bug>gd 10000 Effective address: 00010000 To exit target code, press ABORT pushbutton. Note that the breakpoint was not t
GN - Go to Next Instruction3-613GN - Go to Next InstructionCommand InputGN DescriptionGN sets a temporary breakpoint at the address of the next instru
3-62Debugger Commands3Effective address: 00010000At breakpointPC =00010004 SR =2704=TR:OFF_S._7_..Z.. VBR =00000000USP =00010000 MSP =0000EFFC
GO - Go Execute User Program3-633GO - Go Execute User ProgramCommand InputGO [address] DescriptionThe GO command (alternate form "G") is use
3-64Debugger Commands3167-Bug>md 10000;di00010000 2200 MOVE.L D0,D100010002 4282 CLR.L D200010004 D401 ADD.B D1,D20001
GO - Go Execute User Program3-653D0 =00052A9C D1 =00000000 D2 =000000FF D3 =00000000D4 =00000000 D5 =00000000 D6 =00000000 D7 =0000000
3-66Debugger Commands3GO - Go to Temporary BreakpointCommand InputGT address DescriptionGT allows you to set a temporary breakpoint and then start tar
GO - Go to Temporary Breakpoint3-673167-Bug>rm D0 <CR>D0 =00000000? 52a9c. <CR>167-Bug>BR 1000EBREAKPOINTS0001000E167-Bug>Set PC
3-68Debugger Commands3A4 =00000000 A5 =00000000 A6 =00000000 A7 =0000FFFC0001000E 60FE BRA.B $1000E167-Bug>Note that a
List of Figures Network Boot Support Modules 1-22
3-693HE - Help3Debugger CommandsHE - HelpCommand InputHE [command] DescriptionHE is the 16XBug help facility. HE <CR> displays the command names
3-70Debugger Commands3GN Go to Next Instruction GO Go Execute User Program GT Go to Temporary Breakpoint HE Help on Command(s)
HE - Help3-713RD Register Display REMOTE Connect the Remote Modem to CSO RESET Cold/Warm Reset RL Read Loop RM Register Modify
3-72Debugger Commands3IOC - I/O Control for DiskCommand InputIOC DescriptionThe IOC command allows you to send command packets directly to a disk cont
IOC - I/O Control for Disk3-733The device probe mechanism utilizes the SCSI commands "Inquiry" and "Mode Sense". If the specified
3-74Debugger Commands3IOI - I/O InquiryCommand InputIOI [;[C|L]] OptionsC Specifies to clear the Device Descriptor Table. L Specifies to list the De
IOI - I/O Inquiry3-753Example 1Probe for all possible devices. As a device is found (probe was successful) it is displayed to the console with the ass
3-76Debugger Commands3IOP - I/O Physical (Direct Disk Access)Command InputIOP DescriptionThe IOP command allows you to read, write, or format any of
IOP - I/O Physical (Direct Disk Access)3-773The information that you are prompted for is as follows: Controller LUN =00?The Logical Unit Number (LUN)
3-78Debugger Commands3This field specifies the number of data blocks to be transferred on a read or write operation. Address Modifier =00?This field c
xv List of Tables Debugger Address Parameter Formats 2-5Exception Vectors Used by 16XBug 2-11Debugger Commands 3-1FLASH Memory Address and Range Alig
IOP - I/O Physical (Direct Disk Access)3-793Bit 1 Ignore File Number (IFN) flag. If 0, the file number field is used to position the tape before any r
3-80Debugger Commands3Read/Write/Format=R? <CR> Memory Address =00003000? 50000 <CR> Starting Block =00000000? &370 <CR> Num
IOP - I/O Physical (Direct Disk Access)3-813Example 4Format the specified device with the option to ignore the grown defect list. 167-Bug>IOPContro
3-82Debugger Commands3IOT - I/O Teach for Configuring Disk ControllerCommand InputIOT [;[A][F][H][T]] OptionsA (All) instructs IOT to list all the disk
IOT - I/O Teach for Configuring Disk Controller3-833Before attempting to access the disks with the IOP command, you should verify the parameters and,
3-84Debugger Commands3If the Controller LUN and Device LUN selected do not correspond to a valid controller and device, then IOT outputs the message &
IOT - I/O Teach for Configuring Disk Controller3-853The physical sector size specifies the number of data bytes per sector. Block Size:0- 128 1- 256 2
3-86Debugger Commands3Reduced Write Current Cylinder =0000?This field specifies the cylinder number at which the write current should be reduced when
IOT - I/O Teach for Configuring Disk Controller3-873Single/Double DATA Density =D (S/D)?Single (FM) or double (MFM) data density should be specified b
3-88Debugger Commands3Spare Sectors Count =00?This field contains the number of sectors per track allocated as spare sectors. These sectors are only
xvi
IOT - I/O Teach for Configuring Disk Controller3-893167-Bug>IOT <CR>Controller LUN =00? <CR>Device LUN =00? 1 <CR>
3-90Debugger Commands3Precomp. Cylinder =0000?Reduced Write Current Cylinder=0000?Interleave Factor =00?Spiral Offset =00?ECC Data Burst
IRQM - Interrupt Request Mask3-913IRQM - Interrupt Request MaskCommand InputIRQM [mask] DescriptionThis command displays the current value stored in t
3-92Debugger Commands3LO - Load S-Records from HostCommand InputLO [port] [address] [;X|C|T] [=text] Argumentsport The optional port number allows you
LO - Load S-Records from Host3-933=text The optional text field, entered after the equals sign (=), is sent to the host before 16XBug begins to look f
3-94Debugger Commands3one at a time. After the entire command has been sent to the host, LO keeps looking for a <LF> character from the host, si
LO - Load S-Records from Host3-953Because processing of the S-records is done character-by-character, any data that was deemed good will have already
3-96Debugger Commands3167-Bug>LO,,30000 ;X=cat Disptime.mx <CR>cat Disptime.mxS00B00004469737074696D65B5S21C0100004879000100184E4F00234E4F005
MA/NOMA - Macro Define/Display/Delete3-973MA/NOMA - Macro Define/Display/DeleteCommand InputMA [name ; L] NOMA [name] Argumentname A currently defined
3-98Debugger Commands3redefined or it can be edited with the MAE command. A macro containing no primitive debugger commands (i.e., no definition) is n
1 1-1 1General Information Introduction 16XBug is a powerful evaluation and debugging tool for systems built around the MVME16X CISC-based single-boa
MA/NOMA - Macro Define/Display/Delete3-993167-Bug> MA DIS Define macro DIS. M=MD \0:17;DI M= <CR> 167-Bug> 167-Bug> MA List macro defin
3-100Debugger Commands3MAE - Macro EditCommand InputMAE name line# [string] Arguments The MAE command permits modification of the macro named in the c
MAE - Macro Edit3-1013Examples167-Bug> MA ABC List deÞnition of macro ABC.MACRO ABC010 MD 3000020 GO \0167-Bug>167-Bug> MAE ABC 15 RD Add a l
3-102Debugger Commands3MAL/NOMAL - Enable/Disable Macro Expansion ListingCommand InputMAL NOMAL DescriptionThe MAL command allows you to view expanded
MAW/MAR - Save/Load Macros3-1033MAW/MAR - Save/Load MacrosCommand InputMAW [controllerLUN] [[deviceLUN] [block#]] MAR [controllerLUN] [[deviceLUN [blo
3-104Debugger Commands3Defaults change each time MAR and MAW are invoked. When either has been used, the default controller, device, and block numbers
MAW/MAR - Save/Load Macros3-1053Saving to: VME320, Controller 0, Drive 2, Block/File Number 8 Number of Logical Blocks = 2 OK to proceed (y/N)? Y <
3-106Debugger Commands3MD, MDS - Memory DisplayCommand InputMD[S] address [:count | address][; [B|W|L|S|D|DI] ] Argumentscount The number of data item
MD, MDS - Memory Display3-107300012000 2800 1942 2900 1942 2800 1842 2900 2846 (..B)..B(..B).(F167-Bug> <CR>00012010 FC20 0050 ED0
3-108Debugger Commands3Example 5167-Bug>md 10000;s 00010000 0_A4_194155= 1.6455652147200000_E+0011 00010004 0_27_3BFC7C= 4.7454405384196168_E-0027
1-2General Information1 16XBug consists of three parts: 1. A command-driven user-interactive software debugger, described in Chapter 2 and hereafter
MENU - System Menu3-1093MENU - System MenuCommand InputMENU DescriptionWhen 16XBug is in "system" mode, you can toggle back and forth betwee
3-110Debugger Commands3MM - Memory ModifyCommand InputMM address[;[[B|W|L|S|D][A][N] ]|[DI] ] Options DescriptionThis command is used to examine and c
MM - Memory Modify3-1113 When the one-line assembler/disassembler is enabled, the contents of the specified memory location are disassembled and displ
3-112Debugger Commands300010004 9ABC? 8765^ <CR> Modify memory and backup.00010002 4321? <CR>00010000 1234? abcd. <CR> Modify memory
MM - Memory Modify3-1133Example 6Double precision floating point numbers. 167-Bug> mm 10000;d 00010000 3.140000000000001_E+87? 1.2 00010008 -5.8508
3-114Debugger Commands3MMD - Memory Map DiagnosticCommand InputMMD range increment [;B|W|L]OptionsB Byte W Word (default)L Longword DescriptionThis co
MMD - Memory Map Diagnostic3-1153167-Bug>mmd ffff0000 ffffffff 1 Effective address: FFFF0000 Effective address: FFFFFFFF $FFFF0000-$FFFF07FE NOT-PR
3-116Debugger Commands3MS - Memory SetCommand InputMS address {hexadecimal_number} {'string'} Argumentshexadecimal_number Hexadecimal value
MW - Memory Write3-1173MW - Memory WriteMW address data [;B|W|L] Options B Byte W Word (default)L Longword DescriptionThe MW command allows you to wri
3-118Debugger Commands3Example 3167-Bug>mw e002 33cc Effective address: 0000E002 Effective data : 33CC 167-Bug>md e000;l 0000E000 77AA33CC 00
16XBug Implementation1-31 If you have used one or more of Motorola's other debugging packages, you will find the CISC 16XBug very similar. Some
3-1193NAB - Automatic Network Boot Operating System3Debugger CommandsNAB - Automatic Network Boot Operating SystemCommand InputNAB DescriptionThe NAB
3-120Debugger Commands3NBH - Network Boot Operating System and HaltCommand InputNBH [controllerLUN] [deviceLUN] [clientIPaddress] [serverIPaddress] [s
NBH - Network Boot Operating System and Halt3-1213The device and controller configuration parameters used when NBH is initiated can be examined via th
3-122Debugger Commands3NBO - Network Boot Operating SystemCommand InputNBO [controllerLUN][deviceLUN] [clientIPaddress] [serverIPaddress] [string]Argu
NBO - Network Boot Operating System3-1233these protocols. You may skip the BOOTP phase (address determination and bootfile selection) by specifying th
3-124Debugger Commands3MC68000.A3 = String Pointer to Optional Argument StartMC68000.A4 = String Pointer to Optional Argument EndMC68000.A5 = String P
NBO - Network Boot Operating System3-1253Example 3Invoke NBO with no arguments:167-Bug>NBONetwork Booting from: VME167, Controller 0, Device 0Loadi
3-126Debugger Commands3NIOC - Network I/O ControlCommand InputNIOC DescriptionThe NIOC command allows you to send command packets directly to the netw
NIOC - Network I/O Control3-1273The flush receiver and receive buffer (type 4) would be used if, for example, the current receive data is no longer ne
3-128Debugger Commands3Send Packet (Y/N) =N? y167-Bug> (View the address data retrieval.)167-Bug>MD E000:6;B 0000E000 08 00 3
1-4General Information1!Caution Inserting or removing modules while power is applied coulddamage module components. 1. Turn all equipment power OFF
NIOC - Network I/O Control3-1293Controller LUN =00?Device LUN =00?Packet Address =00006454?0000
3-130Debugger Commands30000E190 00 00 00 00 00 04 00 02 00 00 90 BF E8 00 00 00 ...0000E1A0 00 00 00 00 00 00 00 00 00 02 00 02 00 00
NIOP - Network I/O Physical3-1313NIOP - Network I/O PhysicalCommand InputNIOP DescriptionThe NIOP command allows you to get/put files from/to the sup
3-132Debugger Commands3The above example illustrates the reading (or getting) of the file /riscy/fwdb/NETLOADER/nbldexp/M68K/nbld.out from the specifi
NIOT - Network I/O Teach (Configuration)3-1333NIOT - Network I/O Teach (Configuration)Command InputNIOT [;[H]|[A]] OptionsA Displays the Network Contr
3-134Debugger Commands3This parameter specifies the starting address of the necessary memory needed for the transmit and receive buffers. Currently 65
NIOT - Network I/O Teach (Configuration)3-1353This parameter specifies the name of the argument file. This file may be used by the booted file (progra
3-136Debugger Commands3BOOTP/RARP Request Control: Always/When-Needed (A/W) =WThis parameter specifies the BOOTP/RARP request control during the boot
NIOT - Network I/O Teach (Configuration)3-1373167-Bug>NIOTController LUN =00?Device LUN =00?Node Control Memory Address =FFE1
3-138Debugger Commands3167-Bug>NIOT;ANetwork Controllers/Nodes SupportedCLUN DLUN Name Address0 0 VME167 $FFF460002 0
Notice While reasonable efforts have been made to assure the accuracy of this document, Motorola, Inc. assumes no liability resulting from any omissi
Autoboot1-51 being used does not do hardware handshaking via the CTS line, then it must do XON/XOFF handshaking. If you get garbled messages and miss
NPING - Network Ping3-1393NPING - Network PingCommand Input NPING controllerLUN deviceLUN sourceIP destinationIP [N-packets] ArgumentsDescriptionThe
3-140Debugger Commands3Example 1Transmit/receive 0x10 (16) ping packets. Once the ping session is complete, the command displays the statisticsof the
OF - Offset Registers Display/Modify3-1413OF - Offset Registers Display/ModifyCommand InputOF [ Rn[;A] ] DescriptionOF allows you to access and change
3-142Debugger Commands3Offset Register Rules1. At power-up and cold start reset, R7 is the automatic register. 2. At power-up and cold start reset, al
OF - Offset Registers Display/Modify3-1433Modify some offset registers. 167-Bug>OF R0 <CR>R0 =00000000 00000000? 20000 200FF <CR>R1 =00
3-144Debugger Commands3PA/NOPA - Printer Attach/DetachCommand InputPA [port]NOPA [port] DescriptionThese two commands "attach" or "deta
PA/NOPA - Printer Attach/Detach3-1453167-Bug>HE NOPA <CR> 167-Bug>HE NOPANOPA Printer detach NOPA Printer detach167-Bug>NOPA <CR&g
3-146Debugger Commands3PF/NOPF - Port Format/DetachCommand InputPF [port] NOPF [port] DescriptionPort Format (PF) allows you to examine and change the
PF/NOPF - Port Format/Detach3-1473Any time the "DEBUG" (LUN 0), "HOST" (LUN 1), or "Console" (LUN dependent) ports are a
3-148Debugger Commands3When Port Format is invoked with the number of a previously assigned port, the interactive mode is entered immediately. To exi
1-6General Information1found or the list is exhausted. If a valid bootable device is found, a boot from that device is started. The controller scanni
PF/NOPF - Port Format/Detach3-1493Even, Odd, or No Parity [E,O,N] = N? <CR>Character width [5,6,7,8] = 8? <CR>Stop Bits [1,2] = 1? 2 <C
3-150Debugger Commands3Parameters Configurable by Port FormatPort base address: Upon assigning a port, the option is provided to set the base address.
PF/NOPF - Port Format/Detach3-1513Software handshake character values: The values used by a port for XON and XOFF may be redeÞned to be any 8-bit valu
3-152Debugger Commands3ExampleAssigning port 3 to the MVME335 printer port. 167-Bug>PF 3 <CR>Logical unit $03 unassignedName of board? <CR
PFLASH - Program FLASH Memory3-1533PFLASH - Program FLASH MemoryCommand InputPFLASH ssaddr seaddr dsaddr [ieaddr][;[A|R][X]]orPFLASH ssaddr:count dsad
3-154Debugger Commands3when the programming of the FLASH Memory is completed error free. The A option specifies always resetting upon completion of th
PFLASH - Program FLASH Memory3-1553only necessary if you are reprogramming the programming agent's text and data space. Otherwise, errors are com
3-156Debugger Commands3FLASH Memory PreProgramming Error: Address-AlignmentFLASH Memory PreProgramming Error: Address-RangeFLASH Memory Programming Co
PS - Put RTC into Power Save Mode for Storage3-1573PS - Put RTC into Power Save Mode for StorageCommand InputPS DescriptionThe PS command is used to t
3-158Debugger Commands3RB/NORB - ROMboot Enable/DisableCommand InputRB[;V] NORB OptionV Enables verbose mode operation as shown in the example below.
ROMboot1-71ROMbootThis function is configured/enabled by the Environment (ENV) command and executed at power-up (optionally also at reset) or by the R
RB/NORB - ROMboot Enable/Disable3-1593FRI SEP 15 11:50:21.00 1989167-Bug>NORB disables the ROMboot function but does not change any options chosen
3-160Debugger Commands3RD - Register DisplayCommand InputRD {[+|-|=][dname][/]} {[+|-|=][reg1[-reg2]][/]} [;E] Arguments+ is a qualiÞer indicating tha
RD - Register Display3-1613DescriptionThe RD command is used to display the target state, that is, the register state associated with the target progr
3-162Debugger Commands3Ordering Sequence of MPU, DEF, FPC, and MMU RegistersMPU RegistersMC68040: The MPU registers in ordering sequence are:Number an
RD - Register Display3-1633Number and Type Mnemonic 3 System Registers FPCR, FPSR, FPIAR 8 Data Registers FP0 - FP7Total: 11 Registers.MMU Registe
3-164Debugger Commands3VIST VME2 Chip Interrupt Status RegisterPIEN PCC2 Chip Interrupt Enable RegisterPIST PCC2 Chip Interrupt Status RegisterTotal:
RD - Register Display3-1653The PIEN register comprises all of the interrupt enable bits within the PCC2 chip. Bit #0 Printer Port-BSY Interrupt Enable
3-166Debugger Commands3Bit #0 VME2 Chip Master Interrupt EnableBit #1 MC Chip Master Interrupt EnableThe PIEN register comprises all of the interrupt
RD - Register Display3-1673Example 1Default display - MPU registers only:167-Bug>RDPC =00008000 SR =2700=TR:OFF_S._7_... VBR =00000000USP =0000
3-168Debugger Commands34. The Cache Control Register (CACR) shows mnemonics for two bits: enable and freeze. The bit name (E, F) appears if the respec
1-8General Information1When you wish to make use of ROMboot, you do not have to fill a complete memory device. Any partial amount is acceptable, as lo
RD - Register Display3-1693A4 =00000000 A5 =00000000 A6 =00000000 A7 =0000FFFC00008000 00000000 ORI.B #$0,D0167-Bug>Note that an e
3-170Debugger Commands3167-Bug>RD =MMUURP =00000000 SRP =00000000 TC =00000000 DTT0 =00000000DTT1 =00000000 ITT0 =00000000 ITT1 =00000000M
RD - Register Display3-1713Note that if the current register display had differed from the default, the same results could be acquired by entering:
3-172Debugger Commands3REMOTE - Connect Remote Modem to CSOCommand InputREMOTE DescriptionThe REMOTE command duplicates the remote operation modem fun
RESET - Cold/Warm Reset3-1733RESET - Cold/Warm ResetCommand InputRESET DescriptionThe RESET command allows you to specify the level of reset operation
3-174Debugger Commands3Copyright Motorola Inc. 1990, 1991, All Rights ReservedMVME167 Debugger/Diagnostics Release Version 2.8 04/04/91WARM StartIf t
RL - Read Loop3-1753RL - Read LoopCommand InputRL address [;[B|W|L] ]OptionsB Byte W Word (default)L Longword RL establishes an infinite loop consisti
3-176Debugger Commands3RM - Register ModifyCommand InputRM [reg]Argumentsreg is the mnemonic for the particular register, the same as is displayed. If
RM - Register Modify3-1773FP0 =0_7FFF_FFFFFFFFFFFFFFFF= 0.FFFFFFFFFFFFFFFF_E-0FFF?0_1234_5FP1 =0_7FFF_FFFFFFFFFFFFFFFF= 0.FFFFFFFFFFFFFFFF_E-0FFF?1.25
3-178Debugger Commands3ITT0 =00000000?<CR>ITT1 =00000000?<CR>MMUSR=00000000= ...CW...? .167-Bug>RD +MMUPC =00008000 SR =2700=TR:O
ROMboot1-91Under control of the ENV command, the sequence of searches is as follows: 1. Search direct address for "BOOT". 2. Search complete
RS - Register Set3-1793RS - Register SetCommand InputRS reg [exp|address] Argumentreg The mnemonic for the particular register. DescriptionThe RS com
3-180Debugger Commands3SD - Switch DirectoriesCommand InputSD DescriptionThis command is used to change from the debugger directory to the diagnostic
SET - Set Time and Date3-1813SET - Set Time and DateCommand InputSET mmddyyhhmm or SET n;C OptionC Calibrate (not available on all CPUs).DescriptionTh
3-182Debugger Commands3Example 1 Set a date and time of May 11, 1995 2:05 PM.167-Bug>SET 0511951405<CR>MON MAY 11 14:05:00.00 1995167-Bug>
SFLASH - Switch FLASH3-1833SFLASH - Switch FLASH Command InputSFLASH ;[L|U] OptionsThe L and U options specify which half of FL.ASH appears:If no opti
3-184Debugger Commands3SYM - Symbol Table AttachCommand InputSYM [address] Argumentaddress This argument tells the bug where the symbol table begins i
SYM - Symbol Table Attach3-1853Upon execution of the command, the bug performs a sanity check on the symbol table with the above rules. The symbol tab
3-186Debugger Commands3_ldchar+$0000 00010203 04050607 08090A0B 0C0D0E0F ... _ldchar+$0010 10111213 14151617 18191A1B 1C1D1E1F ...
NOSYM - Symbol Table Detach3-1873NOSYM - Symbol Table DetachCommand InputNOSYM DescriptionThe NOSYM command allows you to detach a symbol table from t
3-188Debugger Commands3SYMS - Symbol Table Display/SearchCommand InputSYMS [symbol-name]|[;S] DescriptionThe SYMS command allows you to display the at
1-10General Information100010000 424F4F54 00000010 00000026 54455354 BOOT...&TEST 00010010 4E4F0026 4E4F0052 4E4F0026 4E4F0026 N0.&NO.
SYMS - Symbol Table Display/Search3-1893Example 4167-Bug>syms;s Display attached symbol in_ldchar 000028A0 lexicographic order._sizmemory 00004930_
3-190Debugger Commands3T - TraceCommand InputT [count] DescriptionThe T command allows execution of one instruction at a time, displaying the target s
T - Trace3-1913167-Bug>rm pc <CR>PC =00008000 ? 10000. <CR>167-Bug>rm D0 <CR>D0 =00000000 ? 8F41C. <CR>167-Bug>Di
3-192Debugger Commands3A4 =00000000 A5 =00000000 A6 =00000000 A7 =0000FFFC00010004 4D01 ADD.B D1,D2167-Bug>Trace the ne
TA - Terminal Attach3-1933TA - Terminal AttachCommand InputTA [port] DescriptionTerminal Attach allows you to assign any serial port to be the console
3-194Debugger Commands3Example 2Restore console to port selected at power-up. 167-Bug>TA <CR> Prompt now appears atConsole = [00: VME167- &qu
TC - Trace on Change of Control Flow3-1953TC - Trace on Change of Control FlowCommand InputTC [count] DescriptionThe TC command starts execution at th
3-196Debugger Commands30001000C 55C2 SCS.B D20001000E 60FE BRA.B $1000E167-Bug>Initialize PC an
TIME - Display Time and Date3-1973TIME - Display Time and DateCommand InputTIME [;[C|L|O]] OptionsAll the following options are exclusive: C Displays
3-198Debugger Commands3Example 3Calibration is set to +25.167-Bug>time;cCurrent Calibration = 25167-Bug>Example 4Calibration is set to -25.167
Network Boot1-111Network BootNetwork Auto Boot is a software routine contained in the 16XBug EPROM, PROM, or FLASH devices that provides a mechanism f
TM - Transparent Mode3-1993TM - Transparent ModeCommand InputTM [port] [escape] Argumentsport The optional port number allows you to specify which por
3-200Debugger Commands3Example 1167-Bug>TM <CR> Enter TM.Escape character: $01=^A Exit code is always displayed.<^A>Example 2: 167-Bug
TT - Trace to Temporary Breakpoint3-2013TT - Trace to Temporary BreakpointCommand InputTT address DescriptionTT sets a temporary breakpoint at the spe
3-202Debugger Commands3167-Bug>rm pc <CR>PC =00008000 ? 10000. <CR>167-Bug>rm D0 <CR>D0 =00000000 ? 8F41C. <CR>167-B
TT - Trace to Temporary Breakpoint3-2033D4 =00000000 D5 =00000000 D6 =00000000 D7 =00000000A0 =00000000 A1 =00000000 A2 =00000000 A3 =
3-204Debugger Commands3VE - Verify S-Records Against MemoryCommand InputVE [port] [address] [;[X][C]] [= text] Argumentsport The optional port number
VE - Verify S-Records Against Memory3-2053DescriptionThis command is identical to the LO command with the exception that data is not stored to memory
3-206Debugger Commands3the verify is complete and then it is printed out to the screen. If three non-comparing records are encountered in the course o
VE - Verify S-Records Against Memory3-2073167-Bug>MD 40000:4;DI00040000 7001 MOVEQ.L #1,D000040002 D088
3-208Debugger Commands3VER - Revision/Version DisplayCommand InputVER [;[E]] OptionE Used for components/subsystems that may have lengthy data arrays
1-12General Information1The debugger has a special feature upon a reset condition. This feature is activated by depressing the RESET and ABORT switche
WL - Write Loop3-2093WL - Write LoopInput CommandWL address:data;[B|W|L] OptionsB Byte W Word L Longword DescriptionWL establishes an infinite loop co
3-210Debugger Commands3
IN-211IndexNumerics16XBugcommand set 3-1generalized exception handler 2-15implementation 1-3vector table and workspace 2-1016X-Bug> 2-1AAB command
IndexIN-212INDEXbootautomatic 3-5BOOTP protocol module 1-23device, select alternate 3-109from on-board memory devices3-158halt, network 3-120network 3
IN-213INDEXprompt 2-1debugger, go to 3-109decimal number 2-3default16XBug controller and device pa-rameters 1-20baud rate 1-4define/display/delete mac
IndexIN-214INDEXexponent field 2-16expression 2-2as a parameter 2-3extendedprecision real 2-17Ffill block of memory 3-9FLASH devices 1-3FLASH memory 3
IN-215INDEXinsert breakpoints 3-23installation, general 1-3instructiongo to next 3-61instructionsexecute singly 3-190Intel 82596 LAN CoprocessorEthern
IndexIN-216INDEXconcurrent 3-33, 3-36sense 1-17modemconnect to CSO 3-172modifymemory 3-110offset registers 3-141registers 3-176moveDMA memory block 3-
IN-217INDEXauto boot 3-5auto network boot 3-119boot 1-18, 3-19boot and halt 1-18, 3-12network boot 3-122network boot and halt 3-120operational paramet
IndexIN-218INDEXscientific notation 2-17SD command 3-180searchmemory block 3-25symbol table 3-188sectors/blocks 1-16select alternate boot device 3-109
Restarting the System1-131in your code are removed and the breakpoint table remains intact. Control is returned to the debugger. Use the debuggerÕs RD
IN-219INDEXUUDP/IP Protocol Modules 1-23user program, go execute 3-63using16XBug target vector table 2-12debugger 2-1VV option 3-5, 3-158variablessynt
1-14General Information1After debugger initialization is done and none of the above situations have occurred, the SYSFAIL* line is negated. This indic
Preface The Debugging Package for Motorola 68K CISC CPUs User's Manual provides general information for the onboard Þrmware package for all Mo
Terminal Input/Output Control1-151Terminal Input/Output ControlWhen entering a command at the prompt, the following control codes may be entered for l
1-16General Information1(default). These characters are initialized to ^S and ^Q respectively by 16XBug, but you may change them with the PF command.
Disk I/O Support1-171When a disk transfer is requested, the start and size of the transfer is specified in blocks. 16XBug translates this into an equi
1-18General Information1IOP (Physical I/O to Disk)IOP allows you to read or write blocks of data, or to format the specified device in a certain way.
Disk I/O Support1-191Refer to Chapter 5 for information on using these and other system calls. To perform a disk operation, 16XBug must eventually pre
1-20General Information1Default 16XBug Controller and Device Parameters16XBug initializes the parameter tables for a default configuration of controll
Network I/O Support1-211Network I/O SupportThe Network Boot Firmware provides the capability to boot the CPU through the ROM debugger using a network
1-22General Information1Figure 1-1. Network Boot Support ModulesBoot Control Module(Two phases)Trivial File TransferProtocol (TFTP)RFC 783Bootstrap P
Network I/O Support1-231UDP/IP Protocol ModulesThe Internet Protocol (IP) is designed for use in interconnected systems of packet-switched computer co
1-24General Information1files between machines on different networks implementing UDP. The only thing it can do is read and write files from/to a remo
Related Documentation The following publications are applicable to Motorola 68K CISC CPU debugging packages and may provide additional helpful inform
Multiprocessor Support1-251the debugger loads it at, contains one of two longwords used to control communication between processors. Organization of t
1-26General Information1communication between processors. The MPAR contents specify the address at which execution for the remote processor is to begi
Diagnostic Facilities1-271GCSR MethodA remote processor can initiate program execution in the local MVME16X dual-port RAM by issuing a remote GO comma
1-28General Information1In order to use the diagnostics, you must switch directories to the diagnostic directory. If you are in the debugger directory
22-12Using the 16XBug DebuggerEntering Debugger Command Lines16XBug is command-driven and performs its various operations in response to user commands
2-2Using the 16XBug Debugger2❏ Any required arguments, as specified by the command. ❏ An option field, set off by a semicolon (;), to specify conditio
Entering Debugger Command Lines2-32exp - Expression as a ParameterAn expression (exp) can be one or more numeric values separated by the arithmetic op
2-4Using the 16XBug Debugger2Valid expression examples: The total value of the expression must be between 0 and $FFFFFFFF. address - Address as a Para
Entering Debugger Command Lines2-52Table 2-1. Debugger Address Parameter FormatsFormat Example DescriptionN 140 Absolute address+contents of automati
2-6Using the 16XBug Debugger2Note In commands with range specified as address address, and with size option W or L chosen, data at the second (ending
Note Although not shown in the above list, each Motorola Computer Group manual publication number is suffixed with the revision level of the document
Entering Debugger Command Lines2-72 1 2 * 3 * MOVE STRING SUBROUTINE
2-8Using the 16XBug Debugger2167Bug>OF R0R0 =00000000 00000000? 1327C. <CR>167Bug>MD 0+R0;DI <CR>00000+R0 48E78080
Calling System Utilities from User Programs2-92MVME16X port 1. (Hardware configuration details are in the section on Installation and Startup in Chap
2-10Using the 16XBug Debugger2translation tables for the debugger to have access to its various resources. The debugger honors the enabling of the MMU
Preserving the Debugger Operating Environment2-112Exception Vectors Used by 16XBugThe exception vectors used by the debugger are listed below. These v
2-12Using the 16XBug Debugger2ExampleTrace one instruction using debugger. 167Bug>RDPC =00010000 SR =2700=TR:OFF_S._7_... VBR =00000000USP
Preserving the Debugger Operating Environment2-132The 16XBug initializes the target vector table with the debugger vectors listed in Table 2-2 and fil
2-14Using the 16XBug Debugger2**** BUILDX - Build exception vector table *****BUILDX MOVEC.L VBR,A0 Get copy of VBR. LEA $10
Floating Point Support2-152**** EXCEPT - Exception handler *****EXCEPT SUBQ.L #4,A7 Save space in stack for a PC value. LINK
2-16Using the 16XBug Debugger2When entering data in single or double precision format, the following rules must be observed: 1. The sign field is the
In this manual, assertion and negation are used to specify forcing a signal to a particular state. In particular, assertion and assert refer
Floating Point Support2-172Notes 1. The single and double precision formats have an implied integer bit (always 1).2. The 68K debuggers do NOT suppor
2-18Using the 16XBug Debugger2
33-13Debugger CommandsIntroductionThis chapter contains descriptions of each debugger command, with one or more examples of each. The 16XBug debugger
3-2Debugger Commands3DU Dump S-RecordsECHO Echo StringENV Set Environment to Bug/Operating SystemGD Go Direct (Ignore Breakpoints)GN Go to Next Instru
Introduction3-33NAB Automatic Network Boot Operating SystemNBH Network Boot Operating System and HaltNBO Network Boot Operating SystemNIOC Network I/O
3-4Debugger Commands3Each of the individual commands is described in the following pages. The command syntax is shown using the symbols explained in
AB/NOAB - Automatic Bootstrap Operating System/No Autoboot3-53AB/NOAB - Automatic Bootstrap Operating System/No AutobootCommand InputAB [;V] NOAB Desc
3-6Debugger Commands3AS - One Line AssemblerCommand InputAS address DescriptionThis is synonymous with the MM address;DI command. (Refer to it for de
BC - Block of Memory Compare3-73BC - Block of Memory CompareCommand InputBC range address [; B|W|L]OptionsB Byte W Word (default)L LongwordDescription
3-8Debugger Commands3Example 2: Memory compare, nothing printed.167-Bug>BC 20000:20 21000;B Effective address: 00020000 Effective count : &32 E
Safety SummarySafety Depends On You The following general safety precautions must be observed during all phases of operation, service, andrepair of t
BF - Block of Memory Fill3-93BF - Block of Memory FillCommand InputBF range data [increment] [; B|W|L]Argumentsdata and increment are both expression
3-10Debugger Commands3specified range is ever disturbed in any case. The "Effective address" messages displayed by the command show exactly
BF - Block of Memory Fill3-113Example 3Assume memory from $20000 through $2002F is clear.167-Bug>BF 20000,20006 12345678 ;L <CR> Effective ad
3-12Debugger Commands3BH - Bootstrap Operating System and HaltCommand InputBH [controllerLUN] [deviceLUN] [string]Arguments controllerLUN is the Logic
BH - Bootstrap Operating System and Halt3-133Example 1: 167-Bug>bh 4,1 <CR> Boot and halt from Controller LUN 4, Device LUN 0.Booting from: V
3-14Debugger Commands3BI - Block of Memory InitializeCommand InputBI range [;B|W|L] OptionsB Byte W Word (default)L Longword DescriptionThe BI command
BI - Block of Memory Initialize3-153Example 2Assume system memory from $0 to $000FFFFF.167-Bug>BI 0,1FFFFF <CR> Effective address: 00000000 E
3-16Debugger Commands3BM - Block of Memory MoveCommand InputBM range address [; B|W|L]Options B Byte W Word (default)L Longword DescriptionThe BM comm
BM - Block of Memory Move3-173Example 2This utility is very useful for patching assembly code in memory. Suppose you had a short program in memory at
3-18Debugger Commands300020004 E2A2 ASR.L D1,D2 00020006 2602 MOVE.L D2,D3 00020008 4E4F0021 SYSCALL .OUTSTR 0002000C 4E71
The computer programs stored in the Read Only Memory of this device contain material copyrighted by Motorola Inc., 1995, and may be used only under a
BO - Bootstrap Operating System3-193BO - Bootstrap Operating SystemCommand InputBO [controllerLUN] [deviceLUN] [string]Arguments controllerLUN is the
3-20Debugger Commands3A device probe with entry into the device descriptor table is done whenever a specified device is accessed via BO. The device p
BO - Bootstrap Operating System3-2130-3: Initial value for target system stack pointer. 4-7: Initial value for target PC. If less than load address
3-22Debugger Commands3167-Bug>BO 8 0,test <CR> Boot from Controller LUN 8, Device LUN 0, and pass the string "test" to the booted p
BR - Breakpoint Insert/Delete3-233BR - Breakpoint Insert/DeleteCommand InputBR [address[:count]] NOBR [address] DescriptionThe BR command allows you t
3-24Debugger Commands3167-Bug>NOBR <CR> Delete all breakpoints.BREAKPOINTS167-Bug>
BS - Block of Memory Search3-253BS - Block of Memory SearchCommand InputBS range text [;B|W|L]or BS range data [mask] [;B|W|L [,N][,V]]Arguments text
3-26Debugger Commands3refers to bytes, words, or longwords. If range is not specified using a count, then no options are allowed. If a match is foun
BS - Block of Memory Search3-273For all three modes, information on matches is output to the screen in a four-column format. If more than 24 lines of
3-28Debugger Commands3167-Bug>BS 30000 3001F 'ConfigTableStart' <CR>Effective address: 00030000Effective address: 0003001F00030014-
Contents Related Documentation 4Introduction 1-1Overview of M68000 Firmware 1-116XBug Implementation 1-3General Installation and Start-up 1-3Autoboot
BS - Block of Memory Search3-293167-Bug>BS 30000:30 60,F0 ;B <CR>Effective address: 00030000Effective count : &4800030006|6F 0003000B|6
3-30Debugger Commands3BV - Block of Memory VerifyCommand InputBV range data [increment] [;B|W|L]Arguments data and increment are both expression param
BV - Block of Memory Verify3-313Example 1Assume memory from $20000 to $2002F is as indicated.167-Bug>MD 20000:18 <CR>00020000 4E71 4E71 4E71
3-32Debugger Commands3Effective address: 00020000 word)Effective count : &4800020012|FFFFMismatches are printed out.167-Bug
CM - Concurrent Mode3-333CM - Concurrent ModeCommand InputCM [[port] [id-string] [baud] [phone-number]]|[;A]|[;H]Argumentsport Everyting output to the
3-34Debugger Commands3OptionsA Lists all supported devices. H Displays whether concurrent mode is active or not, and if it is, what secondary port nu
CM - Concurrent Mode3-353(port = 1, default) (id-string = DUMB, default) (baud = 9600, default for "DUMB") (phone-number = null) 167-Bug>
3-36Debugger Commands3NOCM - No Concurrent ModeCommand InputNOCM DescriptionThis command terminates concurrent mode which was activated by the Concurr
CNFG - Configure Board Information Block3-373CNFG - Configure Board Information BlockCommand InputCNFG [;[I][M]] OptionsI Initialize the unused area of
3-38Debugger Commands3Ethernet Address = 08003E20A867Local SCSI Identifier = "07"167-Bug>Note that the parameters that are q
Commentaires sur ces manuels