User manual
Table Of Contents
- COVER
- TABLE OF CONTENTS
- CHAPTER 1 GENERAL INFORMATION
- CHAPTER 2 DEBUG MONITOR DESCRIPTION
- CHAPTER 3 DEBUG MONITOR COMMANDS
- CHAPTER 4 ASSEMBLER/DISASSEMBLER
- CHAPTER 5 SYSTEM CALLS
- CHAPTER 6 DIAGNOSTIC FIRMWARE GUIDE
- APPENDIX A S-RECORD INFORMATION
- APPENDIX B SELF-TEST ERROR MESSAGES
- APPENDIX C USER CUSTOMIZATION
- LIST OF FIGURES
- LIST OF TABLES
- Table 2-1. Debugger Address Parameter Format
- Table 2-2. CPU32Bug Exception Vectors
- Table 3-1. Debug Monitor Commands
- Table 4-1. CPU32Bug Assembler Addressing Modes
- Table 5-1. CPU32Bug System Call Routines
- Table 6-1. MCU CPU Diagnostic Tests
- Table 6-2. Memory Diagnostic Tests
- Table B-1. Self-Test Error Messages
- Table C-1. CPU32Bug Customization Area
- Table C-2. MCU SCI Communication Formats
- Table C-3. Rev. A Chip Selection Summary
- Table C-4. Rev. B Chip Selection Summary
- Table C-5. BCC Rev. C Chip Selection Summary
- Table C-6. PFB Rev. C Compatibility
- CHAPTER 1 GENERAL INFORMATION
- CHAPTER 2 DEBUG MONITOR DESCRIPTION
- CHAPTER 3 DEBUG MONITOR COMMANDS
- 3.1 INTRODUCTION
- 3.2 BLOCK OF MEMORY COMPARE
- 3.3 BLOCK OF MEMORY FILL
- 3.4 BLOCK OF MEMORY MOVE
- 3.5 BREAKPOINT INSERT/DELETE
- 3.6 BLOCK OF MEMORY SEARCH
- 3.7 BLOCK OF MEMORY VERIFY
- 3.8 DATA CONVERSION
- 3.9 DUMP S-RECORDS
- 3.10 GO DIRECT (IGNORE BREAKPOINTS)
- 3.11 GO TO NEXT INSTRUCTION
- 3.12 GO EXECUTE USER PROGRAM
- 3.13 GO TO TEMPORARY BREAKPOINT
- 3.14 HELP
- 3.15 LOAD S-RECORDS FROM HOST
- 3.16 MACRO DEFINE/DISPLAY/DELETE
- 3.17 MACRO EDIT
- 3.18 MACRO EXPANSION LISTING ENABLE/DISABLE
- 3.19 MEMORY DISPLAY
- 3.20 MEMORY MODIFY
- 3.21 MEMORY SET
- 3.22 OFFSET REGISTERS DISPLAY/MODIFY
- 3.23 PRINTER ATTACH/DETACH
- 3.24 PORT FORMAT
- 3.25 REGISTER DISPLAY
- 3.26 COLD/WARM RESET
- 3.27 REGISTER MODIFY
- 3.28 REGISTER SET
- 3.29 SWITCH DIRECTORIES
- 3.30 TRACE
- 3.31 TRACE ON CHANGE OF CONTROL FLOW
- 3.32 TRANSPARENT MODE
- 3.33 TRACE TO TEMPORARY BREAKPOINT
- 3.34 VERIFY S-RECORDS AGAINST MEMORY
- CHAPTER 4 ASSEMBLER/DISASSEMBLER
- CHAPTER 5 SYSTEM CALLS
- 5.1 INTRODUCTION
- 5.2 SYSTEM CALL ROUTINES
- 5.2.1 Calculate BCD Equivalent Specified Binary Number
- 5.2.2 Parse Value, Assign to Variable
- 5.2.3 Check for Break
- 5.2.4 Timer Delay Function
- 5.2.5 Unsigned 32 x 32 Bit Divide
- 5.2.6 Erase Line
- 5.2.7 Input Character Routine
- 5.2.8 Input Line Routine
- 5.2.9 Input Serial Port Status
- 5.2.10 Unsigned 32 x 32 Bit Multiply
- 5.2.11 Output Character Routine
- 5.2.12 Output String Using Pointers
- 5.2.13 Print Carriage Return and Line Feed
- 5.2.14 Read Line to Fixed-Length Buffer
- 5.2.15 Read String Into Variable-Length Buffer
- 5.2.16 Return to CPU32Bug
- 5.2.17 Send Break
- 5.2.18 Compare Two Strings
- 5.2.19 Timer Initialization
- 5.2.20 Read Timer
- 5.2.21 Start Timer at T=0
- 5.2.22 Output String with Data
- 5.2.23 Output String Using Character Count
- CHAPTER 6 DIAGNOSTIC FIRMWARE GUIDE
- 6.1 INTRODUCTION
- 6.2 DIAGNOSTIC MONITOR
- 6.2.1 Monitor Start-Up
- 6.2.2 Command Entry and Directories
- 6.2.3 Help (HE)
- 6.2.4 Self Test (ST)
- 6.2.5 Switch Directories (SD)
- 6.2.6 Loop-On-Error Mode (LE)
- 6.2.7 Stop-On-Error Mode (SE)
- 6.2.8 Loop-Continue Mode (LC)
- 6.2.9 Non-Verbose Mode (NV)
- 6.2.10 Display Error Counters (DE)
- 6.2.11 Clear (Zero) Error Counters (ZE)
- 6.2.12 Display Pass Count (DP)
- 6.2.13 Zero Pass Count (ZP)
- 6.3 UTILITIES
- 6.4 CPU TESTS FOR THE MCU
- 6.5 MEMORY TESTS (MT)
- 6.6 BUS ERROR TEST
- APPENDIX A S-RECORD INFORMATION
- APPENDIX B SELF-TEST ERROR MESSAGES
- APPENDIX C USER CUSTOMIZATION

USER CUSTOMIZATION
M68CPU32BUG REV 1 C-6
Table C-1. CPU32Bug Customization Area (continued)
Offset Default Value Mnemonic Description
Common Chip Select Table: (Rev. A BCC + Rev. A PFB) &
(Rev. B BCC + Rev. B PFB)
$3C-3D
$3E-3F
$0E04
$68B0
.CSBARBT
.CSORBT
CSBOOT base address register value and
. option register value
New Chip Select Table: (Rev. B BCC + Rev. B PFB)
$40-41
$42-43
$0003
$503E
.CSBAR0
.CSOR0
CS0 base address register value and
. option register value
$44-45
$46-47
$0003
$303E
.CSBAR1
.CSOR1
CS1 base address register value and
. option register value
$48-49
$4A-4B
$0003
$683E
.CSBAR2
.CSOR2
CS2 base address register value and
. option register value
$4C-4D
$4E-4F
$0000
$0000
.CSBAR3
.CSOR3
CS3 base address register value and
. option register value
$50-51
$52-53
$FFF8
$680F
.CSBAR4
.CSOR4
CS4 base address register value and
. option register value
$54-55
$56-57
$FFE8
$783F
.CSBAR5
.CSOR5
CS5 base address register value and
. option register value
$58-59
$5A-5B
$1004
$38F0
.CSBAR6
.CSOR6
CS6 base address register value and
. option register value
$5C-5D
$5E-5F
$1004
$58F0
.CSBAR7
.CSOR7
CS7 base address register value and
. option register value
$60-61
$62-63
$0103
$6870
.CSBAR8
.CSOR8
CS8 base address register value and
. option register value
$64-65
$66-67
$0103
$3030
.CSBAR9
.CSOR9
CS9 base address register value and
. option register value
$68-69
$6A-6B
$0103
$5030
.CSBAR10
.CSOR10
CS10 base address register value and
. option register value
$6C-6D $020F MCR_OR Value ORed with contents of MCR register at power-
on/reset.
$6E-6F $DFFF MCR_AND Value ANDed with result value after MCR_OR and
stored back into MCR. If bit 6 (MM bit)of MCR_AND =
0, then module register block is placed at $7FF000.
Otherwise it is placed at $FFF000 (default).
USER CUSTOMIZATION
M68CPU32BUG REV 1 C-3
6. Verify the customized S-record file, C32B1.MX, by entering the command shown
below. The -DC000 offset is required to relocate the verification from the $E0000
base address of the S-records to the RAM change area at $4000.
CPU32Bug>VE -DC000<CR>
Enter the terminal emulator’s escape key to return to the host computer’s operating
system (ALT-F4 for ProComm). Then enter the host command to send the S-record
file to the port where the BCC is connected (type c32b.mx >com1, when the BCC is
connected to the com1 port).
After the file has been sent, restart the terminal emulation program by entering EXIT
on the host computer. Then enter two <CR>’s to signal the CPU32Bug that
verification is complete and the terminal emulator program is ready to receive the
status message.
<CR><CR>
Verify passes.
CPU32Bug>
7. Verify the main S-record file, C32B23.MX, by entering the command shown below.
No offset is required.
CPU32Bug>VE<CR>
Enter the terminal emulator’s escape key to return to the host computer’s operating
system (ALT-F4 for ProComm). Then enter the host computer command to send the
S-record file to the BCC (type c32b23.mx >com1, when the BCC is connected to the
com1 port).
After the file has been sent, restart the terminal emulation by entering EXIT on the
host computer. Then enter two <CR>’s to signal the CPU32Bug that verification is
complete and the terminal emulator program is ready to receive the status message.
<CR><CR>
Verify passes.
CPU32Bug>
8. Follow the PROGBCC utility (available on FREEWARE) directions for
reprogramming the BCC EPROM using the two S-record files, C32B1.MX and
C32B23.MX.
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...