The MPC5125 Tower System is based on Freescale's MPC5125
microprocessor. The board provides on-board DDR2 SDRAM, NAND
FLASH,CAN ports, USB 2.0, 10/100 Ethernet, HDMI,USB Debug Port.All
powered from a 5 Volt wall mount power supply.
Freescale's Tower System. For information of Tower System, please go to
http://www.freescale.com/tower .
1.1 Device Placement and Functions
This section provides a description of the connectors, jumpers, switches and
main components of the MPC5125 board. Refer to Figures 1 and 2 for
location of the devices referenced below.
This board is compatible with
J2 JTAG Connector
1
CN1 RJ45 Ethernet Connector
2
J35 Serial Port Header
3
SW1 System
4
Config Switch
U13 USB PHY
5
Mini-AB USB Connector
6
CN3 HDMI Connector
7
U20 HMDI Transmitter
8
J27 Dual-Ethernet Jumper
9
J3 On-Board Microphone (MIC)
10
J1 Earphone Connector
11
U28 Audio CODEC
12
Secondary Elevator Connctor
13
TWR-MPC 5125
Figure 1
Primary Elevator connector
J4 Debug MCU Config Header
U14 Debug MCU
J19 USB Debug port
SW7 Reset Swich
SW8 Hibemate Swich
J33 Depopulated
SD Card Connector
J31 CAN Termination
S/ N: MPC 5 1 2 5 1 0 0 3 0 0 0 1
J34 CAN Connector
DC 5V
U6 DDR Memory
U7 DDR Memory
Battery Site
U1 MPC5125
Jumper
J20 DC In
02
14
15
16
17
18
19
20
21
22
23
24
25
26
27
semiconductor
U10 NAND Flash Memory
28
U4 Digital Accelerometer
29
TWR-MPC5125 User Manual
Made by
www.
A
7
-
9
-4
0
0
8-
7
-
2
-2
0
0
:
C
MA
.com
U2 Ethernet PHY
Figure 2
Additional descriptions of the functionality of switches and jumpers along with
their recommended settings can be found in Section 3 of this manual.
1
J2- JTAG Connector
Connector J2 is a 16-pin header used for the COP/JTAG input. This port is
made available to aid of debugging code running on the MPC5125.The pinouts for the connector are listed in Appendix A
30
TWR-MPC 5125
03
TWR-MPC5125 User Manual
semiconductor
2
Cn1 RJ45 Ethernet Connector
Made by
www.
Cn1 is a standard Ethernet input jack
3
J35 Serial Port Header
J35 is the serial port header with the following 2x2 header to MPC5125 pin
assignments:
.com
PSC2_2
PSC2_3
4
SW1 System config switch
PSC2_0
PSC2_1
See switch settings. Section 3
5
U13 USB PHY
U13 is a Hi-Speed USB 2.0 ULPI transceiver
6
Mini-AB USB Connector
DOWN4 is a USB mini AB connector that is compatible with the USB 2.0
format.
7
CN3 HDMI Connector
CN3 is a HDMI interface
8
U20 HMDI Transmitter
U20 is a HDMI transmitter
9
J27 Dual-Ethernet Jumper
J27 is the dual-Ethernet jumper. Connecting a jumper across the terminals
will enable a second Ethernet connection to be made over the Primary
Elevator Connector in addition to the CN1 RJ45 Ethernet jack. Connecting
this jumper will disable the Mini-AB USB Connector.
TWR-MPC 5125
04
TWR-MPC5125 User Manual
semiconductor
10
J3 On-Board Microphone (MIC)
Made by
www.
Audio input
11
J1 Earphone Connector
Audio output
12
U28 Audio CODEC
U28 is Audio CODEC
13
Secondary Elevator Connctor
Secondary Elevator Edge Connector for the Freescale TOWER system
14
Primary Elevator connector
Primary Elevator Edge Connector for the Freescale TOWER system
15
J4 Debug MCU Config Header
See section 3.4 for configuration header settings. A BDM module can be
connected as shown to debug code running on the Debug MCU.
.com
Pin 1
Pin 3
Pin 5
16
U14 Debug MCU
Pin 2
Pin 4
Pin 6
U14 is Debug MCU which performs the USB to MPC5125 debug bridge
from the USB Debug Port.
17
J19 USB Debug port
J19 is the USB Debug port for the MPC5125. Power can be provided to
the system over this USB port.
18
SW7 Reset switch
SW7 is a Hardware Reset switch. Push once causes a Power on reset.
TWR-MPC 5125
05
TWR-MPC5125 User Manual
semiconductor
19
SW8 Hibernate Switch
Made by
www.
SW8 is hibernate switch
Push it to wake up the system
20
J33 Depopulated Battery Site
Location to add a battery or capacitor for the Real Time Clock VBAT_RTC
power domain.Recommended capacitor is EECEN0F204RT from
Panasonic .
21
U1 MPC5125
U1 is Freescale's MPC5125 microprocessor
22
SD Card Connector
SD card interface
23
J31 CAN Termination Jumper
J31 is the CAN jumper location. Connecting a jumper across the terminals
will add termination to the CAN interface which is normally not terminated.
24
J34 CAN Connector
J34 is a CAN connector
25
U6 DDR Memory
U6 is DDR2 Memory for system running
26
J20 DC IN
J20 is the 5V DC input to the board
27
U7 DDR Memory
DC 5V
U7 is DDR2 Memory for system running
28
U10 NAND Flash Memory
U10 is a NAND Flash for uboot, Linux kernel, file system and user data
29
U4 Digital Accelerometer
U4 is a digital accelerometer
30
U2 Ethernet PHY
U2 is the Ethernet PHY with MII/RMII interface.
.com
TWR-MPC 5125
06
TWR-MPC5125 User Manual
semiconductor
Made by
www.
.com
2.0 Hardware Design & Architecture
2.1 Memory
4GB MLC NAND flash storage
256MB DDR2 memory
2.2 Connectving & Features
Digital accelerometer
- HDMI(video/audio) portwithHDMItoDVI--Dadaptor
- RJ-45 10/100 Base T Ethernet port
Mini-AB USB2.0 OTG
-
USB host to hub (keyboard, mouse, sound , card, WiFi,....)
USB device to external USB host system
On-board microphone and audio stereo out jack
SD Card expansion port
CAN2.0 A/B port
-
2.3 Debugger Interface
On-board debugger over Mini-B USB port
JTAG/COP header for external BDM
TWR-MPC 5125
07
TWR-MPC5125 User Manual
semiconductor
Made by
www.
.com
Serial Header
JATG
USB Debug Port
EMB_AD[ 0:31]
BUS @20 0MHz, (DDR2 -400)
DDRⅡ CON TROLL ER AND DATA
12C/1
LAN PH Y
2.4 Physical Specifications
This section contains general information on the MPC5125's physical
characteristics
Board Size: Freescale Tower specification(59mm x 90mm)
Power Requirement: 5VDC
This Jump is function select:
1-2 Short USB Debug Port
1-2 Open Serial to USB bridge
3.4.2 J4 Debug MCU mode
3-4 Short Bootloader mode
3-4 Open UART to USB bridge mode
Made by
www.
.com
TWR-MPC 5125
10
TWR-MPC5125 User Manual
semiconductor
Made by
www.
.com
4.0 Schematic
The schematic and basic assembly information in a portable document format
for the MPC5125 can be located on the CD with the board.
The MPC5125 design can be customized for optional flexibility and custom
interfaces so the embedded systems engineer can obtain a lower overall parts
cost using a variety of fixed and user selectable options.
These options inherently are contained in connectors, jumpers and switches
on the board.
The schematic provides guidelines for using the already installed as well as
user modifiable options available on the present design.
TWR-MPC 5125
11
TWR-MPC5125 User Manual
semiconductor
Made by
www.
.com
5.0 Operation
5.1 Central Processing Unit
The MCP5125 provides the interface to local on board resources including:
NAND FLASH memory, DDR2-SDRAM memory, MII (10/100 Fast Ethernet
Controller), RMII (10/100 Fast Ethernet Controller), I2C (EEPROM), PSC
(programmable serial controller) for RS232 and AC97 (audio), Interrupt
controller, USB 2.0 (ULPI), Display Interface Unit (DIU) Controller, SD card
interface.
See MPC5125 user manual for detail descriptions for each interface.
5.2 Power supplies
The MPC5125 accepts +5Volts only.
Power Sequencing
Power sequencing rules require that the IO voltage rail is powered before the
Core Voltages.
5.3 Resets
SW1 is a push button that provides a power on reset signal for the hardware
on the MPC5125
The MPC5125 POREST_B signal is used for the Configuration system and its
internal registers. It also is used for CPU power on reset.
5.3.1 Clocks
The main clock driver is a programmable clock synthesizer IC.
The SYS_CLK is the main processor clock (32.768 Mhz).
The 4Mhz is used by the Debug MCU.
The CLK_24.000Mhz is used by the CPU's internal USB circuitry.
The CLK_50.000Mhz is used by both the CPU's internal fast Ethernet circuitry
and the Ethernet PHY.
TWR-MPC 5125
12
TWR-MPC5125 User Manual
semiconductor
Made by
www.
.com
The RTC_CLK_32.768Khz is used by the CPU's internal XTAL_RTC drive
circuitry.
5.4 Memory
5.4.1 DDR2 SDRAM
The dedicated DDR2 memory bus is 32 bits wide, single bank, 200MHz clock
frequency, no ECC. It uses the MPC5125 DDR2 SDRAM controller and is
directly connection to the MPC5125.
5.4.2 NAND FLASH
Dedicated NAND FLASH memory is directly connected to the MPC5125 NFC
NAND flash controller.
TWR-MPC 5125
13
TWR-MPC5125 User Manual
semiconductor
Made by
www.
6.0 U-boot, Linux setup (Target Deployment )
6.1 Host Computer Setup
Host computer setup is critical for your BSP to function. The host must be
running tftp and nfs servers in order for deployment to work. The following
instructions are generic. Your system may be different and the commands
should be adjusted accordingly.
The following instructions are for a Linux host computer.
1). Turn off firewall for tftp to work
$ sudo iptables –F
2). Install tftp-server on the host computer
3). Install nfs-server on the host computer
4). Create the tftpboot directory if it does not already exist
CPU: MPC5125 rev. 1.0, Core e300c4 at 400 MHz, CSB at 200 MHz
board: mpc5125_mpu
I2C: ready
DRAM: 256 MB
NAND: 2048 MiB
In: serial
Out: serial
Err: serial
Net: FEC ETHERNET
.com
Type run nfsboot to mount root filesystem over NFS
TWR-MPC 5125
15
TWR-MPC5125 User Manual
semiconductor
Made by
www.
.com
6.3 Configuring U-Boot
To boot the Linux kernel u-boot must have device tree support compiled in. To
verify this support is enabled, type help bootm at the u-boot prompt.
=> help bootm
bootm [addr [arg ...]]
- boot application image stored in memory
passing arguments 'arg ...'; when booting a Linux kernel, 'arg' can be the
address of an initrd image
When booting a Linux kernel which requires a flat device-tree
a third argument is required which is the address of the of the device-tree blob.
To boot that kernel without an initrd image, use a '-' for the second argument. If
you do not pass a third a bd_info struct will be passed instead
If the help message indicates that bootm takes three arguments then device
tree support is enabled. If not then it will be necessary to install a new u-boot.
See the Flashing U-Boot chapter below for details.
The factory installed u-boot has several commands predefined in the default
environment.
1). Print the existing u-boot configuration by typing “print” at the u-boot
prompt.
=> print
bootcmd=run nfsboot
bootdelay=5
baudrate=115200
loads_echo=1
preboot=echo;echo Type \"run flash_nfs\" to mount root filesystem over
If your u-boot environment does not match then use the u-boot setenv
command to add or modify it to match what is printed here.
2). Tell the linux kernel which serial port to use for a console from the kernel
command line. Add a u-boot variable for setting the console on the kernel
command line.
=> setenv consoledev ttyPSC1
3). Set the board's network configuration using values appropriate for your
installation.
$ make distclean
$ make ads5125_nand_config
$ make –j 4
2). Build Kernel
$ cp arch/powerpc/configs/mpc5125_twr_defconfig .config
$ make –j 4
TWR-MPC 5125
21
TWR-MPC5125 User Manual
semiconductor
Made by
www.
Compressed kernel ulmage in the path: arch/powerpc/boot/uImage
Uncompress the kerenl uImage script file "mkvm":
#!/bin/bash
cat vmlinux.bin.gz | gunzip > vmlinux.bin
mkimage -A ppc -O Linux -T kernel -C none -a 0x0 -e 0x0 -n Linux-2.6 -d
vmlinux.bin $1
$ mkvm vmlinux-5125-twr.bin
3). Build Device-tree
Compile the DTS script file "mkdts":
#!/bin/bash
# checks for correct cmdline usage
if [ "$#" != "1" -a "$#" != "3" ]; then
echo "Usage: `basename $0` <dts-filename> [-o dtb-filename]"
exit 1
fi
DTS_FILE=$1
DTB_FILE=${DTS_FILE%%dts}dtb
if [ "${DTS_FILE##*.}" != "dts" ]; then
echo “`basename $0`: '$DTS_FILE' input file type error."
exit 1
fi
shift
.com
if [ "$1" == "-o" ]; then
shift
DTB_FILE=$1
if [ "${DTB_FILE##*.}" != "dtb" ]; then
echo “`basename $0`: '$DTB_FILE' output file type error."
exit 1
fi
fi
There are two ways, using CodeWarrior JTAG port program NAND, from
CodeWarrior for MobileGT IDE or from CodeWarrior Connection Server
command line script.
8.1.1 IDE method
What tools are needed:
· CodeWarrior IDE for MobileGT v9.2
· CodeWarrior IDE patch for MPC5125 platform
· Codewarrior USB Tap
U-Boot source code is compiled on the linux server, and Codewarrior
MobileGT v9.2 is running on windows computer. The CW-IDE create project
needed to retrieve the source of information on U-Boot directory, so customer
need to map the network drive through the linux samba service.
How to map the network drive from the windows computer:
Configure the samba server on the linux server
·
· Open "My Computer" on the desktop, select Menu “Tools->Map Network
Drive"
· Like the following configuration:
Drive: Z:
Folder: \\server_ip\<U-Boot code directory on linux server>
1). Create project
. Start the CodeWarrior IDE
· Click "File->Open" and use the browse option to select u-boot in the samba
directory, CodeWarrior IDE will import u-boot and create one project.
TWR-MPC 5125
23
TWR-MPC5125 User Manual
semiconductor
Made by
www.
If prompt “can't find the file libgcc2.c”, select “Continue with next file”, this
tip does not affect the previous work.
The following memory map is only an example, refer to the MPC5125 Quick
Guide for specific memory map configurations, many of these memory map
settings are user defined.
Function
IMMRBAR Default
setting at reset
FF40 0000
DDR SDRAM
BOOT Space
EBC NAND
FLASH
Boot High
NAND FLASH
Upto 2GB
SRAM
USB ULPI 2.0 Device
Local Configuration
Registers
Rs232 on MPU
RS232 on TWR
IIC1
IIC2
Fast Ethernet
Controller
Bytes
Reserved
256MB
2048MB
1MB
256KB
4KB
1KB
PSC1
PSC9
32 Bit Address
Start
0x8000 0000
0x0000 0000
0xFFF0 0000
0x4000 0000
0x3000 0000
IMMR_0x3000
IMMR_0x1 0000
IMMR_0x1 1100
IMMR_0x1 1900
IMMR_0x0 1720
IMMR_0x0 1740
IMMR_0x0 2800
End
0x803F FFFF
0x0FFF FFFF
0xFFFF FFFF
0x400F FFFF
0x3001 FFFF
IMMR_3FFF
IMMR_0x1 01FF
IMMR_0x1 11FF
IMMR_0x1 19FF
IMMR_0x0 173F
IMMR_0x0 17FF
IMMR_0x0 2FFF
CS#Size
1M Recommend
4M For future
DDR_MCSN
NFC_CE0_B
256MB
1MB
1MB
32KB
4KB
32B
32B
256B
TWR-MPC 5125
29
Made by
www.
.com
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.