Axiom CML-5485 Скачать руководство пользователя страница 14

C M L - 5 4 8 5   U S E R   M A N U A L   V 1 . 0

      0 6 / 2 2 / 0 5

13

ADDRESS_PORT

The ADDRESS PORT provides access to the MCF5485 FLEX Bus latched address signals.
This port may be applied for bus expansion.

A0

1 2

A1

A2

3 4

A3

A4

5 6

A5

A6

7 8

A7

A8

9 10

A9

A10

11 12

A11

A12

13 14

A13

A14

15 16

A15

A16

17 18

A17

A18

19 20

A19

A20

21 22

A21

A22

23 24

A23

A24

25 26

A25

A26

27 28

A27

A28

29 30

A29

A30

31 32

A31

+3.3V

33 34

GND

BDM_PORT

The BDM PORT provides a standard Coldfire BDM / JTAG development port.  The 

BDM_EN

option provides for the development port mode selection between BDM or JTAG.

Development Cable Installation

BDM_EN

INSTALLED  = BDM_PORT is in BDM Mode (Development mode = BDM).

OPEN = BDM_PORT is in JTAG Mode (Development mode = JTAG).

To Host PC

CML5485 board

Pin 1

BDM Port

Содержание CML-5485

Страница 1: ... C 0 3 4 7 0 1 0 R E V C ٛ Axiom Manufacturing 2813 Industrial Lane Garland TX 75041 Email Sales axman com Web http www axman com ٛ CML 5485 Application Board for Freescale MCF5485 MCU Hardware User Manual ...

Страница 2: ...T 10 J4 AND J5 ETHERNET PORTS 10 MCU_PORT 11 BUS_PORT 12 ADDRESS_PORT 13 BDM_PORT 13 J1 PCI PORT 14 TROUBLESHOOTING 16 DBUG MONITOR OPERATION 17 DBUG COMMUNICATION 17 DBUG SYSTEM INITIALIZATION 17 Interrupt Service Support 17 DBUG MEMORY MAP 18 DBUG COMMANDS 19 dBUG Command Table 19 DBUG ETHERNET SUPPORT 20 Configuring dBUG Network Parameters 21 APPENDIX 1 DBUG COMMAND SET 22 ASM ASSEMBLER 22 BC B...

Страница 3: ...EMORY DISPLAY 33 MM MEMORY MODIFY 34 MMAP MEMORY MAP DISPLAY 34 RD REGISTER DISPLAY 35 RM REGISTER MODIFY 35 RESET RESET THE BOARD AND DBUG 36 SET SET CONFIGURATIONS 36 SHOW SHOW CONFIGURATIONS 37 STEP STEP OVER 38 SYMBOL SYMBOL NAME MANAGEMENT 38 TRACE TRACE INTO 39 UP UPLOAD NETWORK 39 VERSION DISPLAY DBUG VERSION 40 TRAP 15 FUNCTIONS 40 OUT_CHAR 40 IN_CHAR 41 CHAR_PRESENT 41 EXIT_TO_dBUG 42 ...

Страница 4: ...to take adequate prevention measures d Attaching additional wiring to this product or modifying the products operation from the factory default as shipped may effect its performance and also cause interference with other apparatus in the immediate vicinity If such interference is detected suitable mitigating measures should be taken Terminology This development board applies option selection jumpe...

Страница 5: ...X Ethernet Ports w RJ45 Connectors LNK DUP SPD indicators for each port Auto Negotiation and MDIX connections 2 x COM Ports UART0 1 w RS232 DB9 S Connectors USB type B connector w USB device I O 2 x CAN Ports w 1 M baud transceivers 5 pin Term Block PCI V2 2 Bus connector 3 3V bus 50Mhz maximum MCU Port 50 pins w I O port signals ADDRESS Port 34 pin Demultiplexed Address BUS signals BUS Port 50 pi...

Страница 6: ...opment Software Development Application development maybe performed by applying the dBUG firmware monitor or by applying a compatible Coldfire BDM JTAG cable with supporting host software The monitor provides an effective and low cost command line debug method Software development is best performed with a development tool connected to the BDM port This provides real time access to all hardware per...

Страница 7: ...erial cable 4 Apply power to the development board by installing the wall plug power supply between a wall outlet and the PWR Jack on the board The board voltage indicators should turn on at this time The RESET indicator will flash during power on or Reset switch press 5 Observe the AxIDE or HyperTerminal window display for the dBUG monitor prompt Prompt should be similar to the following Hard Res...

Страница 8: ...vides a direct connection to the MCF5485 RSTI for Reset application by development tools Application of RESET will cause the dBUG monitor or user application to initialize the MCF5485 Previous DDRAM memory content and operating state of the MCF5485 will be lost INDICATORS Indication is provided for power supply status CPU Reset status and Ethernet status The indications may be applied to determine...

Страница 9: ...AM on the SDRAM bus and 8M bytes of Flash memory on the FLEX Bus The debug monitor occupies the first or lower 256K bytes of the board Flash memory User should refer to the dBUG memory map for default memory allocation and physical locations The BUS and ADDRESS Ports maybe applied for Flex Bus expansion off board Note The MCF5485 DDRAM controller must be configured prior to application of the memo...

Страница 10: ...rom port by option see chart below CTS RTS are enabled by options see chart below 1 4 6 connected for status null to host The 1 4 6 and 9 pins provide RS232 status signals These DB9 connector locations are provided access pads behind the connector COM PORT OPTIONS The following table provides COM options and default connections to the MCF5485 Programmable Serial Controllers PSC Port Signal Option ...

Страница 11: ...erminal block that will accept discreet wiring for CAN Bus connections CAN Port Term Block 1 2 3 4 5 CAN PORT Connection and Options Table CAN Port Port Signal MCF5485 Signals OPTION Default 1 CAN_HI_0 CANTX0 CT1 Closed 2 CAN_LO_0 CANRX0 CT2 Closed 3 Ground 4 CAN_HI_1 CANTX1 CT3 Closed 5 CAN_LO_1 CANRX1 CT4 Closed Notes 1 All options are SMT 0805 component size pads 2 Default closed options must b...

Страница 12: ...te 1 Note 1 CANRX0 7 8 CANTX0 Note 1 TIN2 9 10 TOUT2 TIN1 11 12 TOUT1 TIN0 13 14 TOUT0 PSC3RTS 15 16 PSC3CTS PSC3RXD 17 18 PSC3TXD PSC2RXD 19 20 PSC2TXD Note 2 PSC1RTS 21 22 PSC1CTS Note 2 Note 2 PSC1RXD 23 24 PSC1TXD Note 2 Note 3 PSC0RTS 25 26 PSC0CTS Note 3 Note 3 PSC0RXD 27 28 PSC0TXD Note 3 DSPISOUT 29 30 DSPISIN DSPISCK 31 32 DSPICS5 DSPICS3 33 34 DSPICS2 DSPICS0 35 36 SDA SCL 37 38 PCIBG0 P...

Страница 13: ...6 15 16 AD17 AD14 17 18 AD15 AD12 19 20 AD13 A10 21 22 AD11 AD8 23 24 AD9 AD6 25 26 AD7 AD4 27 28 AD5 AD2 29 30 AD3 AD0 31 32 AD1 RSTO 33 34 RESET IN Note 1 CLKOUT 35 36 FBCS1 FBCS2 37 38 FBCS3 FBCS4 39 40 FBCS5 BWE0 41 42 BWE1 BWE2 43 44 BWE3 R W 45 46 TS TA 47 48 OE 3 3V 49 50 GND Notes 1 The CLKOUT signal must be enabled by installing option resistor R63 The value of R63 should be selected to r...

Страница 14: ...6 A15 A16 17 18 A17 A18 19 20 A19 A20 21 22 A21 A22 23 24 A23 A24 25 26 A25 A26 27 28 A27 A28 29 30 A29 A30 31 32 A31 3 3V 33 34 GND BDM_PORT The BDM PORT provides a standard Coldfire BDM JTAG development port The BDM_EN option provides for the development port mode selection between BDM or JTAG Development Cable Installation BDM_EN INSTALLED BDM_PORT is in BDM Mode Development mode BDM OPEN BDM_P...

Страница 15: ...A0 19 20 GND 21 22 GND 23 24 CLKOUT 3 3V 25 26 TA J1 PCI Port J1 provides a single 3 3V standard 32 bit PCI bus connector slot 4 connection 0 3 slots not applied The MCF5485 PCI bus is applied to this connector with arbitration signals and external master support Due to the fixed system frequency only 66Mhz PCI cards should be applied for an operating PCI bus frequency of 50Mhz Following is the co...

Страница 16: ...D B22 A22 PCI_AD28 PCI_AD27 B23 A23 PCI_AD26 PCI_AD25 B24 A24 GND 3 3V B25 A25 PCI_AD24 PCI_BE3 B26 A26 IDSEL PCI_AD17 applied base 0x20000 PCI_AD23 B27 A27 3 3V GND B28 A28 PCI_AD22 PCI_AD21 B29 A29 PCI_AD20 PCI_AD19 B30 A30 GND 3 3V B31 A31 PCI_AD18 PCI_AD17 B32 A32 PCI_AD16 PCI_BE2 B33 A33 3 3V GND B34 A34 PCI_FRAME PCI_IRDY B35 A35 GND 3 3V B36 A36 PCI_TRDY PCI_DEVSEL B37 A37 GND GND B38 A38 P...

Страница 17: ...s port is working by substituting a known good serial device or by doing a loop back diagnostic if you applied a different baud rate with the dBUG SET command make sure the terminal software is set correctly 4 Verify the power source 3 3V and 2 5V Indicators are ON You should measure a minimum of 9 volts between the GND and V test pad and GND test pad near the power jack with the standard power su...

Страница 18: ...pt is dBUG Any dBUG command may be entered from this prompt dBUG does not allow command lines to exceed 80 characters Wherever possible dBUG displays data in 80 columns or less dBUG echoes each character as it is typed eliminating the need for any local echo on the terminal side In general dBUG is not case sensitive Commands may be entered either in upper or lower case depending upon the user s eq...

Страница 19: ...mory User Vector table if applied See Interrupt Support for more information 1K bytes 0x00000400 0x0001FFFF External DDRAM Memory dBUG reserved ram space 128K bytes 0x00020000 0x03FFFFFF External DDRAM Memory User ram or development memory space 64M bytes 32 bits wide 100Mhz 0x04000000 0x3FFFFFFF Not applied memory space reserved 0x40000000 0x7FFFFFFF ISBAR MCF5485 Internal register and peripheral...

Страница 20: ...BUG dldbug Download dBUG Update DN dn c e i s o offset filename Download Network FL fl command dest src size Flash write or erase GO go addr Execute GT gt addr Execute To HELP help command Help IRD ird module register Internal Internal Register Display IRM irm module register data Internal Register Modify LR lr width addr Loop Read LW lw width addr data Loop Write MD md width begin end Memory Disp...

Страница 21: ...ation requires an Ethernet TFTP server to be running on the host usually a PC attached to the development board The support CD provides simple TFTP host software TFTPD32 for a Windows based PC if needed Prior to using this feature several parameters must be configured for network downloads to occur The information that is required and the steps for configuring dBUG are described below Required Net...

Страница 22: ...unique The commands to dBUG are 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 mac 00 CF 52 82 EB 01 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 that the host TFTP server will require the file to be transferred be in the TFTP server s assigned base directory or...

Страница 23: ...s addr may be an absolute address specified as a hexadecimal value or a symbol name The value for stmt must be valid assembler mnemonics for the CPU For the interactive mode the user enters the command and the optional addr If the address is not specified then the last address is used The memory contents at the address are disassembled and the user prompted for the new assembly If valid the new as...

Страница 24: ...ntiguous 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 If no width is specified the default of word sized data is used The value for addresses begin and end may be an absolute address specified as a hexadecimal value or a symbol name The value for data may be a symbol name or a number converted according to...

Страница 25: ...x7_0000 to the location 0x200000 the command is bm 40000 70000 200000 To copy the target code s data section defined by the symbols data_start and data_end to 0x200000 the command is bm data_start data_end 200000 NOTE Refer to upuser command for copying code data into Flash memory BR Breakpoints Usage BR addr r c count t trigger The BR command inserts or removes breakpoints at address addr The val...

Страница 26: ...ction bench and set its trigger value to 3 the command is br _bench t 3 When the target code is executed the processor must attempt to execute the function bench a third time before returning control back to dBUG To remove all breakpoints the command is br r BS Block Search Usage BS width begin end data The BS command searches a contiguous block of memory starting at address begin stopping at addr...

Страница 27: ... found then the address is incremented to 0x0004_0002 and the next 16 bit value is read and compared DC Data Conversion Usage DC data The DC command displays the hexadecimal or decimal value data in hexadecimal binary and decimal notation The value for data may be a symbol name or an absolute value If an absolute value passed into the DC command is prefixed by 0x then data is interpreted as a hexa...

Страница 28: ... download of data obtained from the console or 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 download address for validity If the destination is an address outside the defined user space then an error message is dis...

Страница 29: ...ransfer files from a network host In general the type of file to be downloaded and the name of the file must be specified to the DN command The c option indicates a COFF download the e option indicates an ELF download the i option indicates an Image download and the s indicates an S record download The o option works only in conjunction with the s option to indicate an optional offset for S record...

Страница 30: ... will prompt the user to continue The MCF5485 internal flash destination address F0000000 F007FFFC must be long word 4 byte aligned and the byte count must be in long word 4 byte multiples External flash destination address FFF40000 FFFFFFFE must be word aligned 2 byte and the byte count must be in word 2 byte or even number multiples To download S record files directly into the flash please see t...

Страница 31: ...the context is switched to the target program Control is only regained when the target code encounters a breakpoint illegal instruction or other exception that causes control to be handed back to dBUG The GO command is repeatable Examples To execute code at the current program counter the command is go To execute code at the C function main the command is go _main To execute code at the address 0x...

Страница 32: ...RT0 UART1 UART2 SDRAMC TIMER0 TIMER1 TIMER2 TIMER3 FEC CAN I2C WDT PIT0 PIT1 PIT2 PIT3 QADC GPTA GPTB RESET CCM PMM CLOCK EPORT CFM INTC0 and INTC1 Refer to the MCF5485 user s manual for more information on these modules and the registers they contain Example ird cs0 csar IRM Internal Register Modify Usage IRM module register data This command modifies the contents of the internal registers of dif...

Страница 33: ...e specified command is displayed Examples To obtain a listing of all the commands available within dBUG the command is help To obtain help on the breakpoint command the command is help br LR Loop Read Usage LR width addr The LR command continually reads the data at addr until a key is pressed The optional width specifies the size of the data to be read If no width is specified the command defaults...

Страница 34: ... address begin If no beginning address is provided the MD command uses the last address that was displayed If no ending address is provided then MD will display memory up to an address that is 128 beyond the starting address This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation...

Страница 35: ...ry for the data value is entered for instance a period This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To set the byte at location 0x0001_0000 to be 0xFF the command is mm b 10000 FF To interactively modify m...

Страница 36: ... registers and their values the command is rd Here is an example of the output from this command PC 00000000 SR 2000 t Sm 000 xnzvc An 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01000000 Dn 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 RM Register Modify Usage RM reg data The RM command modifies the contents of the register reg to data The value for re...

Страница 37: ... is the baud rate for the first serial port on the board All communications between dBUG and the user occur using 19200 bps eight data bits no parity and one stop bit 8N1 with no flow control base This is the default radix for use in converting a number from its ASCII text representation to the internal quantity used by dBUG The default is hexadecimal base 16 and other choices are binary base 2 oc...

Страница 38: ...the most significant nibble should always be even Examples To set the baud rate of the board to be 38400 the command is set baud 38400 NOTE See the SHOW command for a display containing the correct formatting of these options See the dBUG Ethernet support for additional details on network settings SHOW Show Configurations Usage SHOW option The SHOW command displays the settings of the user configu...

Страница 39: ... 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 a option adds a symbol name and its value into the symbol table r option removes a symbol name from the table c option clears the entire symbol table l option lists the contents ...

Страница 40: ...cution and the target code executed Control returns to dBUG after a single instruction execution of the target code This command is repeatable Examples To trace one instruction at the program counter the command is tr To trace 20 instructions from the program counter the command is tr 20 UP Upload network Usage UP begin end filename The UP command transfers binary data stored in memory on the deve...

Страница 41: ...function can be called by the user program to utilize various routines within the dBUG 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 These are OUT_CHAR IN_CHAR CHAR_PRESENT and EXIT_TO_dBUG OUT_CHAR This function function code 0x0013 sends a character which is in lower 8 bits of D1 to terminal...

Страница 42: ...code 0x0010 returns an input character from terminal to the caller The returned character is in D1 Assembly example move l 0010 d0 Select the function trap 15 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 put the character in d0 CHAR_PRESENT This function function code 0x0014 checks if...

Страница 43: ... select the function asm trap 15 make the call EXIT_TO_dBUG This function function code 0x0000 transfers the control back to the dBUG by terminating the user code The register contents are preserved Assembly example move l 0000 d0 Select the function trap 15 Make the call exit to dBUG C example void board_exit_to_dbug void asm move l 0x0000 d0 select the function asm trap 15 exit and transfer to d...

Отзывы: