Page 1
SBC5307 USER'S MANUAL REVISION 2.0 Copyright 1998 Arnewsh Inc. Arnewsh Inc. P.O. Box 270352 Fort Collins, CO 80527-0352 Phone: (970) 223-1616 Fax: (970) 223-9573...
Page 2
COPYRIGHT Copyright 1998 by Arnewsh Inc. All rights reserved. No part of this manual and the dBUG software provided in Flash ROM’ s/EPROM’ s may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise.
Page 3
We will return the shipment prepaid via UPS. This warranty does not apply if, in the opinion of Arnewsh Inc., the product has been damaged by accident, misuse, neglect, misapplication, or as a result of service or modification (other than specified in the manual) by others.
1.9.6. Connecting the Terminal......................1-5 1.9.7. Using a Personal Computer as a Terminal ................... 1-6 1.10 SYSTEM POWER-UP AND INITIAL OPERATION ................1-9 1.11 SBC5307 J ........................1-9 UMPER ETUP 1.11.1. Jumper JP1- Flash Upper Half/Lower Half Boot................1-9 1.11.2.
Page 5
2.4.21. SET - Set Configuration SET ....................2-29 2.4.22. SHOW - Show Configuration SHOW..................2-31 2.4.23. STEP - Step Over ST......................2-32 2.4.24. SYMBOL - Symbol Name Management SYMBOL..............2-33 2.4.25. TRACE - Trace Into TR ..................... 2-34 2.4.26. UPDBUG - Update the dBUG Image UPDBUG..............
Page 6
............. TABLES 1 – JP1, U BOOT ....................... 1-10 ABLE PPER OWER 2 – JP2, /CS0 ..........................1-10 ABLE SELECT BUG C ..........................2-7 ABLE OMMANDS 4 - T LAB5307 ....................... 3-4 ABLE MEMORY MAP 5 - T J4 (T ................
Page 7
............FIGURES ......................1-2 IGURE LOCK IAGRAM OF THE BOARD J4 (T ................. 1-6 IGURE IN ASSIGNMENT FOR ERMINAL CONNECTOR ........................1-7 IGURE YSTEM ONFIGURATION ....................1-8 IGURE UMPER AND CONNECTOR PLACEMENT BUG O ..................2-3 IGURE IAGRAM OF D PERATIONAL viii...
(refer to MCF5307 User's Manual by Motorola for detail information about the SIM.) The SBC5307 only uses three of the chip selects to access the Flash ROM’ s, SRAM (which is not populated on board, may be added by the user) and the Ethernet.
Page 9
MCF5307 XCEIVERS ispLSI 2032LV Data RJ45 Buffers Flash 1Mbit U20,U21 Addr Buffer U10, , U11 DRAM DIMM I/O PORTS ADDR BUS CONTROL BUS DATA BUS Mictor and Expansion Connectors Figure 1 Block Diagram of the board...
There are two on board Flash ROM’ s (U20, U21), U20 is the most significant byte and the U21 is the least significant byte. The SBC5307 comes with two 29LV004 Flash ROM’ s programmed with a debugger/monitor firmware. Both AM29LV004DT Flash are 4Mbits each giving a total of 1Mbyte of Flash memory.
ON BOARD ETHERNET The SBC5307 has an on board Ethernet (NE2000 compatible) operating at 10M bits. The on board ROM MONITOR is programmed to allow a user to download files from a network to memory in different formats. The current formats supported are S-Record, COFF, ELF, or Image.
The board is now ready to be connected to a terminal. Use the RS-232 serial cable to connect the PC to the SBC5307. The cable has a 9-pin female D-sub connector at one end and a 9-pin male D-sub connector at the other end.
1.9.7. Using a Personal Computer as a Terminal You may use your personal computer as a terminal provided you also have a terminal emulation software such as PROCOMM, KERMIT, QMODEM, Windows 95 Hyper Terminal or similar packages. Then connect as described in 1.9.6 Connecting the Terminal Once the connection to the PC is made, you are ready to power-up the PC and run the terminal emulation software.
Page 14
BACKGROUND DEBUG (BDM) Con dBUG> SBC5307 RS232 TERMINAL or PC SDRAM D +7.5 to 12V, GND Power Supply MICROPROCESSOR EXPANSION BUS Figure 3 System Configuration...
Page 15
Figure 4 Jumper and connector placement...
3. Press the black RESET button to insure that the board has been initialized properly. If you still are not receiving the proper response, your board may have been damaged in shipping. Contact Arnewsh Inc. for further instructions. 1.11 SBC5307 Jumper Setup The jumpers on the board are discussed in Chapter 3.
1.12 USING THE BDM The MCF5307 has a built in debug mechanism referred to as BDM. The SBC5307 has the necessary connector, J1, to facilitate this connection. In order to use the BDM, simply connect the 26-pin IDC header at the end of the BDM cable provided by the BDM development tool (third party tool) to the J1 connector.
CHAPTER 2 USING THE MONITOR/DEBUG FIRMWARE The SBC5307 Computer Board has a resident firmware package that provides a self-contained programming and operating environment. The firmware, named dBUG, provides the user with monitor/debug, disassembly, program download, and I/O control functions. This Chapter is a how-to-use description of the dBUG package, including the user interface and command structure.
command will be executed under control of the dBUG firmware, and after command completion, the system returns to command entry mode. During command execution, additional user input may be required depending on the command function. For commands that accept an optional <width> to modify the memory access size, the valid values are: 8-bit (byte) access 16-bit (word) access 32-bit (long) access...
Page 20
Figure 5 Flow Diagram of dBUG Operational Mode.
SYSTEM POWER-UP AND . Note, the date ‘ xxx 199x xx:xx:xx’ may vary in different revisions. INITIAL OPERATION Other means can be used to re-initialize the SBC5307 Computer Board firmware. These means are discussed in the following paragraphs. 2.2.2.1. Hard RESET Button.
2.2.2.4. USER Program. The user can return control of the system to the firmware by recalling dBUG via his/her program. Instructions can be inserted into the user program to call dBUG via the TRAP 15 handler. 2.2.3. System Operation After system initialization, the terminal will display: Hard Reset DRAM Size: 8M NE2000: 0x300...
c. CTRL-D - Go down in the command history buffer, you may modify then press enter key. d. CTRL-U - Go up in the command history buffer, you may modify then press enter key. e. CTRL-R - Recall and execute the last command entered, does not need the enter key to be pressed.
Page 24
Table 3 - dBUG Commands COMMAND DESCRIPTION SYNTAX PAGE MNEMONIC ASSEMBLE AS <addr> <instruction> BLOCK FILL BF<WIDTH> BEGIN END DATA 2-11 BLOCK MOVE BM BEGIN END DEST 2-12 BLOCK SEARCH BS <WIDTH> BEGIN END DATA 2-14 BREAKPOINT BR ADDR <-R> <-C COUNT> <-T TRIGGER> 2-13 DATA DATA CONVERT...
2.4.1. AS - Assemble Usage: AS <addr> <instruction> The AS command assembles instructions. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. Instruction may be any valid instruction for the target processor. The assembler keeps track of the address where the last instruction’...
2.4.2. BC - Compare Blocks of Memory Usage: BC first second length The BC command compares two contiguous blocks of memory the first block starting at address 'first', the second block starting at address 'second', both of length 'length'. If the blocks are not identical, then the addresses of the first mismatch are displayed.
BF - Block of Memory Fill 2.4.3. Usage: BF<width> begin end data The BF command fills a contiguous block of memory starting at address begin, stopping at address end, with the value data. Width modifies the size of the data that is written. The value for addresses begin and end may be an absolute address specified as a hexadecimal value, or a symbol name.
BM - Block Move 2.4.4. Usage: BM begin end dest The BM command moves a contiguous block of memory starting at address begin, stopping at address end, to the new address dest. The BM command copies memory as a series of bytes, and does not alter the original block.
BR - Breakpoint 2.4.5. Usage: BR addr <-r> <-c count> <-t trigger> The BR command inserts or removes breakpoints at address addr. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. Count and trigger are numbers converted according to the user-defined radix, normally hexadecimal.
2.4.6. BS - Block Search Usage: BS<width> begin end data The BS command searches a contiguous block of memory starting at address begin, stopping at address end, for the value data. Width modifies the size of the data that is compared during the search. The value for addresses begin and end may be an absolute address specified as a hexadecimal value, or a symbol name.
DATA - Data Conversion 2.4.7. DATA Usage: DATA data The DATA command displays data in both decimal and hexadecimal notation. The value for data may be a symbol name or an absolute value. If an absolute value passed into the DATA command is prefixed by ‘...
DI - Disassemble 2.4.8. Usage: DI <addr> The DI command disassembles target code pointed to by addr. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. Wherever possible, the disassembler will use information from the symbol table to produce a more meaningful disassembly.
DL - Download Serial 2.4.9. Usage: DL <offset> The DL command performs an S-record download of data obtained from the serial port. The value for offset is converted according to the user defined radix, normally hexadecimal. If offset is provided, then the destination address of each S-record is adjusted by offset. The DL command checks the destination address for validity.
DN - Download Network 2.4.10. Usage: DN <-c> <-e> <-i> <-s> <-o offset> <filename> The DN command downloads code from the network. The DN command handle files which are either S- record, COFF or ELF formats. The DN command uses Trivial File Transfer Protocol, TFTP, to transfer files from a network host.
Go - Execute 2.4.11. Usage: GO <addr> The GO command executes target code starting at address addr. The value for addr may be an absolute address specified as a hexadecimal value, or a symbol name. If no argument is provided, the GO command begins executing instructions at the current program counter. When the GO command is executed, all user-defined breakpoints are inserted into the target code, and the context is switched to the target program.
2.4.12. GT - Execute Till a Temporary Breakpoint Usage: GT <addr> The GT command executes the target code starting at address in PC (whatever the PC has) until a temporary breakpoint as given in the command line is reached. Example: To execute code at the current program counter and stop at breakpoint address 0x10000, the command is: GT 10000 2-20...
HELP - Help 2.4.13. Usage: HELP <command> The HELP command displays a brief syntax of the commands available within dBUG. In addition, the address of where user code may start is given. If command is provided, then a brief listing of the syntax of the specified command is displayed.
IRD - Internal Registers Display 2.4.14. Usage: IRD <module.register> This commands displays the internal registers of different modules inside the MCF5307. In the command line, the module refers to the module name where the register is located and the register refers to the specific register needed.
IRM - Internal Registers MODIFY 2.4.15. Usage: IRM module.register data This commands modifies the contents of the internal registers of different modules inside the MCF5307. In the command line, the module refers to the module name where the register is located, register refers to the specific register needed, and data is the new value to be written into that register.
2.4.16. MD - Memory Display Usage: MD<width> <begin> <end> The MD command displays a contiguous block of memory starting at address begin and stopping at address end. The value for addresses begin and end may be an absolute address specified as a hexadecimal value, or a symbol name.
MM - Memory Modify 2.4.17. Usage: MM<width> addr <data> The MM command modifies memory at the address addr. The value for address addr may be an absolute address specified as a hexadecimal value, or a symbol name. Width modifies the size of the data that is modified.
RD - Register Display 2.4.18. Usage: RD <reg> The RD command displays the register set of the target. If no argument for reg is provided, then all registers are displayed. Otherwise, the value for reg is displayed. Examples: To display all the registers and their values, the command is: To display only the program counter, the command is: 2-26...
RM - Register Modify 2.4.19. Usage: RM reg data The RM command modifies the contents of the register reg to data. The value for reg is the name of the register, and the value for data may be a symbol name, or it is converted according to the user defined radix, normally hexadecimal.
RESET - Reset the board and dBUG 2.4.20. RESET Usage: RESET The RESET command attempts to reset the board and dBUG to their initial power-on states. The RESET command executes the same sequence of code that occurs at power-on. This code attempts to initialize the devices on the board and dBUG data structures.
SET - Set Configuration 2.4.21. Usage: SET option <value> The SET command allows the setting of user configurable options within dBUG. The options are listed below. If the SET command is issued without option, it will show the available options and values. The board needs a RESET after this command in order for the new option(s) to take effect.
Page 47
Examples: To see all the available options and supported choices, the command is: To set the baud rate of the board to be 19200, the command is: baud 19200 Now press the RESET button (RED) or RESET command for the new baud to take effect. This baud will be programmed in Flash ROM and will be used during the power-up.
SHOW - Show Configuration 2.4.22. SHOW Usage: SHOW option SHOW The SHOW command displays the settings of the user configurable options within dBUG. Most options configurable via the SET command can be displayed with the SHOW command. If the SHOW command is issued without any option, it will show all options.
STEP - Step Over 2.4.23. Usage: STEP The ST command can be used to “step over” a subroutine call, rather than tracing every instruction in the subroutine. The ST command sets a breakpoint one instruction beyond the current program counter and then executes the target code.
SYMBOL - Symbol Name Management 2.4.24. SYMBOL Usage: SYMBOL <symb> <-a symb value> <-r symb> <-c|l|s> The SYMBOL command adds or removes symbol names from the symbol table. If only a symbol name is provided to the SYMBOL command, then the symbol table is searched for a match on the symbol name and its information displayed.
2.4.25. TRACE - Trace Into Usage: TRACE <num> The TRACE command allows single instruction execution. If num is provided, then num instructions are executed before control is handed back to dBUG. The value for num is a decimal number. The TRACE command sets bits in the processors’ supervisor registers to achieve single instruction execution, and the target code executed.
UPDBUG - Update the dBUG Image 2.4.26. UPDBUG Usage: UPDBUG The UPDBUG command is used for updating the dBUG image in Flash. When updates to the MCF5307 EVS dBUG are available, the updated image is downloaded to address 0x00020000. The new image is placed into Flash using the UPDBUG command.
UPUSER - Update User Code In Flash 2.4.27. UPUSER Usage: UPUSER <number of sectors> The UPUSER command places user code and data into space allocated for the user in Flash. There are six sectors of 128K each available as user space. To place code and data in user Flash, the image is downloaded to address 0x00020000, and the UPUSER command issued.
Page 54
VERSION - Display dBUG Version VERSION Usage: VERSION The VERSION command display the version information for dBUG. The dBUG version number and build date are both given. The version number is separated by a decimal, for example, “v1.1”. The first number indicates the version of the CPU specific code, and the second number indicates the version of the board specific code.
TRAP #15 Functions An additional utility within the dBUG firmware is a function called the TRAP 15 handler. This function can be called by the user program to utilize various routines within the dBUG, to perform a special task, and to return control to the dBUG. This section describes the TRAP 15 handler and how it is used. There are four TRAP #15 functions.
Page 56
move.l #$0010,d0 Select the function trap Make the call, the input character is in d1. C example: int board_in_char (void) asm (“ move.l #0x0010,d0”); /* select the function */ asm (“ trap #15”); /* make the call */ asm (“ move.l d1,d0”);...
In this manual, an active low signal is indicated by a "-" preceding the signal name. 3.1 THE PROCESSOR AND SUPPORT LOGIC This part of the Chapter discusses the CPU and general supporting logic on the SBC5307 board. 3.1.1. The Processor The microprocessor used in the SBC5307 is the highly integrated MCF5307, 32 -bit processor.
The MCF5307 has four external interrupt request lines. You can program the external interrupt request pins to level 1, 3, 5, and 7 or levels 2, 4, 6, and 7. The SBC5307 configures these lines as level 1, 3, 5, and 7.
0x10000000 by dBUG. For complete map of these registers refer to the MCF5307 User's Manual. The SBC5307 board can have up to 8M bytes of SDRAM installed. The first 8M bytes are reserved for this memory. Refer to Section 3.2 for a discussion of RAM. The dBUG is programmed in two 29LV004B Flash ROM’...
3.3 FLASH ROM There are two 512Kbyte Flash ROM’ s on the SBC5307, U20 (high, even byte) and U21 (low, odd byte). The board is shipped with two 29LV004, 512K-byte, FLASH ROM’ s for a total of 1M bytes. The first 128K of the Flash contains ROM Monitor firmware.
The two M-Bus signals are SDA and SCL which are available at LA4 connector. These signals are open-collector signals. However, they have pull-up resistors on the SBC5307. These signals are connected to the SDRAM DIMM module I C interface but not used by the debugger.
3.6 ON BOARD ETHERNET LOGIC The SBC5307 includes the necessary logic, drivers, and the NE2000 compatible Ethernet chip to allow 10M bit transfer rate on a network. The Ethernet-space addresses are located starting at 0xFE600000. The interface base address is 0x300 and uses IRQ3. However, the Ethernet base address in our system as mentioned earlier is 0xFE600000.
3.7 THE CONNECTORS AND THE EXPANSION BUS There are 8 connectors on the SBC5307 which are used to connect the board to external I/O devices and or expansion boards. This section provides a brief discussion and the pin assignments of the connectors.
Page 66
Table 6 - The J7 Connector pin assignment PIN NO. DIRECTION SIGNAL NAME Output Data Carrier Detect (shorted to 4 & 6) Output Receive data Input Transmit data Input Data Terminal Ready (shorted to 1 & 6) Signal Ground Output Data Set Ready (shorted to 1 &...
Page 67
Table 8 - The J9 Connector pin assignment PIN NO. SIGNAL NAME PIN NO. SIGNAL NAME R/-W 3-11...
Page 68
Table 9 - The LA2 Connector pin assignment PIN NO. SIGNAL NAME PIN NO. SIGNAL NAME A25_PP9 A27_PP11 A29_PP13 A31_PP15 A30_PP14 A28_PP12 A26_PP10 A24_PP8 3-12...
Page 69
Table 10 - The LA1 Connector pin assignment PIN NO. SIGNAL NAME PIN NO. SIGNAL NAME PSTCLK TXD1 TXD2 SIZ0 /CS0 /IRQ3 /CF_RSTI /CS4 /CS3 /CS2 /IRQ5 /CS5 /CS6 /CS7 R/-W /IRQ7 /IRQ1 /CS1 SIZ1 Table 11 - The LA3 Connector pin assignment PIN NO.
Page 70
Table 12 - The LA4 Connector pin assignment PIN NO. SIGNAL NAME PIN NO. SIGNAL NAME BCLK0 /R_RAS0 /R_CAS2 /R_RAS1 /R_CAS0 /R_CAS1 /R_CAS3 /R_SRAS /R_DRAMW /R_SCAS R_SCKE TIN0 TOUT0 PPLTPA EDGSEL /BWE0 /BWE3 /BEW2 /BWE1 /TIN1 TOUT1 Table 13 - The LA5 Connector pin assignment PIN NO.
3.7.4. The Debug Connector J1 The MCF5307 does have background Debug Port, Real-Time Trace Support, and Real-Time Debug Support. The necessary signals are available at connector J1. Table 14 - The J1 Connector pin assignment shows the pin assignment. Table 14 - The J1 Connector pin assignment PIN NO.
APPENDIX A (Configuring dBUG for Network Downloads) The dBUG module has the ability to perform downloads over an Ethernet network using the Trivial File Transfer Protocol, TFTP. Prior to using this feature, several parameters are required for network downloads to occur. The information that is required and the steps for configuring dBUG are described below.
set client 123.45.68.15 set server 123.45.67.1 set gateway 123.45.68.250 set netmask 255.255.255.0 set Macaddr 00:00:00:00:00:00 The last step is to inform dBUG of the name and type of the file to download. Prior to giving the name of the file, keep in mind the following. Most, if not all, TFTP servers will only permit access to files starting at a particular sub-directory.
Page 74
Check for proper configuration and operation of the TFTP server. Most Unix workstations can execute a command named ‘ tftp’ which can be used to connect to the TFTP server as well. Is the default TFTP root directory present and readable? If ‘...
APPENDIX B (FPLA code) module isa2 title 'Ethernet controller' "Feb 26 '98 version v1 of the 5307 "isa2 device 'ispLSI'; ;"*****************************************************" ;"This abel file contains the code for a NE2000 compatible Ethernet" ;"for the 55307 Coldfire processor as well as reset and IRQ7 (abort)" ;"It was targeted to Lattice ispLSI 2032 fpga "...
Page 82
0.1 UF PRESET FREQ0 PRESET FREQ1 ADDR_CONF CS_CONF0 CS_CONF1 CS_CONF2 +3.3 V C C 1OE* 2OE* COPYRIGHT ARNEWSH, INC., P.O. BOX 270352, FO G N D Title SBC5307 Evaluation Board MC74LCX244DW Size Document Number -CF_RSTI ARN.SBC5307.BUFFERS Date: Sunday, March 22, 1998...
Page 84
49.9 G N D 3 G N D 4 G N D 0 0.1 UF 0.1 UF DM9008F 0.01 UF COPYRIGHT ARNEWSH, INC., P.O. BOX 270352 F GREEN LED 0.1 UF 0.1 UF 0.1 UF 0.1 UF 0.1 UF Title...
APPENDIX D (Pin Array Layout) This layout represents the pattern for the MCF5307 socket if used on the SBC5307 board. The pin numbers corresponds to the MCF5307 processor.
Need help?
Do you have a question about the SBC5307 and is the answer not in the manual?
Questions and answers