NXP Semiconductors i.MX31 Quick Start Manual

Page 1
i.MX31 3-Stack
Development Kit
Quick Start Guide
for Linux
Page 2
Information in this document is provided solely to enable system and software implementers to use Freescale Semicon-
How to Reach Us:
Home Page:
www.freescale.com
E-mail:
support@freescale.com
USA/Europe or Locations Not Listed:
Freescale Semiconductor Technical Information Center, CH370 1300 N. Alma School Road Chandler, Arizona 85224 +1-800-521-6274 or +1-480-768-2130 support@freescale.com
Europe, Middle East, and Africa:
Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen, Germany +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) support@freescale.com
Japan:
Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064, Japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com
Asia/Pacific:
Freescale Semiconductor Hong Kong Ltd. Technical Information Center 2 Dai King Street Tai Po Industrial Estate Tai Po, N.T., Hong Kong +800 2666 8080 support.asia@freescale.com
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center P.O. Box 5405 Denver, Colorado 80217 1-800-521-6274 or 303-675-2140 Fax: 303-675-2150 LDCForFreescaleSemiconductor@hibbertgroup.com
Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any partic ­ular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental dam­ages. “Typical” parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typ­icals”, must be validated for each customer application by customer’s technical experts. Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not de­signed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semi­conductor product could create a situation where personal injury or death may occur. Should Bu yer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part.
Federal Communications Commission Radio Frequency Interference Statement
This device complies with Part 15 of the FCC rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference and (2) this device must accept any interference received, including interference that might cause undesired operation. Changes or modifications to this equipment not expressly approved by Freescale could void the user’s authority to operate the equipment.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners.
© Freescale Semiconductor, Inc. 2007. All rights reserved.
Page 3
1 About the Boards 3
About the 3-Stack Platform System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
CPU Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Debug Board. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Personality Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
2 Getting Started 13
Unpack the Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
CD-ROM Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
Provide a Development PC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
3 Build the Platform 17
Build a Development Platform: Assemble 3 Boards . . . . . . . . . . . . . . . . . . . . .17
Connect Personality Board to Debug Board . . . . . . . . . . . . . . . . . . . . . . . . .18
Connect CPU Board to Debug Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Connect Development Platform to PC; Run Preloaded Image. . . . . . . . . . . 20
Build a Demo Platform: Assemble 2 Boards . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Connect CPU Board to Personality Board . . . . . . . . . . . . . . . . . . . . . . . . . .22
Connect Power Supply; Run Preloaded Demo . . . . . . . . . . . . . . . . . . . . . . .23
4 Using the Linux Demo Image 25
Linux Menus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Multimedia Applications Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Connectivity Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 5
Settings Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Downloading Multimedia to the 3-Stack Board . . . . . . . . . . . . . . . . . . . . . . . . .26
Using an SD Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Using a USB Mass Storage Application. . . . . . . . . . . . . . . . . . . . . . . . . . . .29
i.MX31 3-Stack Quick Start Guide for Linux
1
Page 4
Running the Video, Audio, and Picture Applications. . . . . . . . . . . . . . . . . . . . .29
Running the Video Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Running the Audio Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Running the Picture Viewer Application. . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Running the Camera Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Running the FM Radio Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Supported Codecs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Ready to Begin Your Development?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
i.MX31 3-Stack Quick Start Guide for Linux
2
Page 5
About the Boards
This chapter provides detailed information about the three boards (CPU, Debug, Personality) and identifies the locations of the connectors and switches.
Table 1.1 Chapter Summary
Board See
3-Stack Platform “About the 3-Stack Platform System” on page 3
CPU “CPU Board” on page 6
Debug “Debug Board” on page 7
Personality “Personality Board” on page 10
About the 3-Stack Platform System
1
Freescale introduces the 3-Stack Platform System, which you use to develop multimedia and connectivity applications using the i.M31 Applications Processor and the MC13783 Audio and Power Management device.
The 3-Stack Platform System decreases the time between first development and final product release by providing you (as the system designer) with a near-to-final product design, which you can use as a development platform for software and hardware.
There are two Board Support Packages (BSP) for the 3-Stack Platform System, with one BSP for WinCE and one BSP for Linux operating systems. These BSPs contain drivers optimized for multimedia operations using the i.MX31 and MC13783 devices.
Freescale's 3-Stack Platform System consists of three small boards: CPU, Debug, and Personality.
• A CPU board contains the i.MX31 CPU, memories and the MC13783 Power Management IC (PMIC).
• A Debug board provides the debug interfaces (like JTAG), and also has a CPLD that implements an external Ethernet and serial controller for debug purposes.
• The Personality board implements the functionality of the 3-Stack board system, and contains hardware for WiFi connectivity, FM receiver, and so on. The Personality board can be modified to meet your specific requirements without the need to modify the other two boards (CPU, Debug). The Personality board was designed to support common multimedia applications, and has a 2.8-inch VGA display, image sensor
i.MX31 3-Stack Quick Start Guide for Linux
3
Page 6
About the Boards
About the 3-Stack Platform System
camera, WiFi 802.11g/b, FM receiver, SD Card connector, USB OTG, USB Host,
2.4 QVGA smart display panel connector, ATA connector and TV-Out connector. As the 3-Stack Platform continues to evolve, more Personality boards will be created to meet new multimedia requirements.
Table 1.2
describes the 3-Stack Platform features in detail.
Table 1.2 3-Stack Platform Features
Item Description
All boards • Near to final product form-factor demonstration
CPU board • i.MX31 ARM-11 Applications Processor
Personality board • Peripheral components
Debug board • Two RS-232 interfaces
modules and working platforms.
• Solid reference schematics that closely resemble final products to aid customers' designs.
• MC13783 Atlas power management chip
• 256 MB of NAND Flash Memory
• 128 MB of 32 bit DDR SDRAM memory
• 37.914 mm x 67.517 mm
• Interface connectors
• 71.428 mm x 129.462 mm
• 10/100 Base-T Ethernet connector
• Current measure connectors
• 71.400 mm x 174.900 mm
Expansion Headers • Utilizing reliable high density connector to interface
Battery Support • +4.2 V 2400mAh Battery power supply and Battery
LCD Display • 2.8 inch TFTLCD display panel with touch panel and
Smart LCD Connector • 2.4 inch QVGA smart display panel connector
Camera Interface • Image sensor camera connector
Selectable Clock Sources
Debug Port • RealView-ICE debug support
i.MX31 3-Stack Quick Start Guide for Linux
4
between boards, 3 board assembly for software development and 2-board assembly (without debug board) for demonstration
Charging Function
LED backlight
• Two selectable system clock sources: 32.768 KHz and 26 Mhz
Page 7
Table 1.2 3-Stack Platform Features
Item Description
About the Boards
About the 3-Stack Platform System
Video and Audio Stereo
GPS Connector • One connector to outboard GPS module
FM Receiver
TV Out • TV decoder that supports 8-bit color, NTSC and PAL
PC Card Expansion • SD card connectors, with card sense
Keypad • Onboard keypad and keypad connector
Network Support • WiFi 802.11g/b and BT2.0 + EDR Combo Module
USB • One USB OTG high-speed transceiver with mini-
ATA Support ATA5 controller with
• Stereo microphone jack, headphone and video jack, stereo and mono (ear piece) speaker terminals
formats
onboard
• One Ethernet jack connector (for application/debug)
USB connector
• One USB high-speed host transceiver, with standard USB host connector
• One 44-position dual row 2 mm header for small form-factor disk drivers
• One 40-pin ZIF connector for Toshiba HDD
Accelerometer • Onboard accelerometer with sensitivity in three
separate axes (X, Y, Z)
Serial Port Two RS-232 interfaces with DB-9 connectors
• One RS-232 interface is driven by a UART channel internal to the MX31, and it supports DCE with optional full modem controls
• The other RS-232 interface is DTE with optional full modem controls
Cables • 5.0V/2.4A universal power supply kit
• RS-232 standard serial cable
• High Speed USB cables with mini-AB connectors for OTG
• High speed cable with standard A-to-mini-B connectors
• Mini-USB adaptor
• Ethernet cables (2) with RJ45-8 connectors
i.MX31 3-Stack Quick Start Guide for Linux
5
Page 8
About the Boards
J1 Board-to-Board Connector
CPU Board
Top
Bottom
CPU Board
Item Description
Table 1.2 3-Stack Platform Features
Software • Sample Windows® embedded CE binary image
Application Development Tools
CPU Board
from Freescale
• Windows embedded CE BSP available from Freescale
• ATK software
• Platform Builder 5.0/6.0
• Visual Studio 2005
6
You use the J1 board-to-board connector (500 pins) to connect the CPU board to either of the other two boards:
• Connect the CPU board to a Personality board, for running demos (no Debug board is needed).
• Connect the CPU board to a Debug board, (and connect the Personality board to the Debug board) for developing software. The Personality board plugs into the other side of the Debug board.
i.MX31 3-Stack Quick Start Guide for Linux
Figure 1.1 CPU Board
Page 9
To Personality Board
Connector CN74
Current Measure J3
MX31 JTAG CN1
SW5–SW10 See Table 1.5
3.3V LED D9
Power-On S4
DC Power LED D11
DC Power J2
Ethernet J1
UART CON4
female
UART CON3
male
Debug CPLD
JTAG CN2
Personality
CPLD JTAG
CN3
CPLD Test
Debug Reset S2
CPLD Test
Power S1
System Reset
CPLD LEDs D1–D8
SW4 See Table 1.4
Debug Board
TOP
Bottom
P1
P2
Resettable Fuse F1
To CPU Board Connector
About the Boards
Debug Board
Debug Board
Figure 1.2 Debug Board
i.MX31 3-Stack Quick Start Guide for Linux
7
Page 10
About the Boards
Debug Board
Type Physical Feature
Switches • S1: Power button
Connectors • J1:10/100 Base-T Ethernet RJ45 connector
Table 1.3 Debug Board Physical Features
• S2: Debug board reset button
• S3: System reset switch
• S4: Power-on switch
• SW4: Enable switch
• J2: 5.0V DC power connector
• J3: Current measure connector
• J4: 500-pin connector to CPU board
• P1: WEIM Address measure connector
• P2: WEIM Data measure connector
• CN1: i.MX31 JTAG connector
• CN2: Debug board CPLD JTAG connector
• CN3: Personality board CPLD JTAG connector (Reserved)
• CN74: 500-pin connector to Personality board
• CON4: UART (DCE) DB9 female connector
LEDs • D1–D8: LEDs for CPLD debug
• D9: LED for debug board 3.3V power
• D11:LED for DC power supply
Buttons • BT1, BT2: Test buttons for CPLD
Fuse • F1: Resettable Fuse
i.MX31 3-Stack Quick Start Guide for Linux
8
Page 11
About the Boards
Debug Board
Table 1.4 Debug Board SW4 Switch
Switch Setting Effect
SW4-1 UART Port Select ON Selects serial port UART (DCE) CON4
SW4-8 Power Enable ON Power is supplied to all three boards.
OFF Power is only supplied to the Debug
board.
Table 1.5 Boot Mode Setting (SW5–SW10)
Boot Mode Device
UART/USB bootloader
8-bit NAND Flash (2KB page) Ext
SW5 Boot4
SW6
X0 0 0 0 0
X1 0 0 0 0
Boot3 SW7
SW8 SW9 SW10
i.MX31 3-Stack Quick Start Guide for Linux
9
Page 12
About the Boards
Bluetooth
Antenna
E2
Audio/Video J19
USB OTG J10
USB Host J18
WiFi Antenna E1
GPS CN13
GiantPlus QVGA Smart Display J15
CMSO Sensor CN14 (underneath LCD)
Debu
g
Port for
WiFi a
n
d
Blu
e
too
t
h
ZIFF
C
onnect
o
r
f
or HDD
CN
70
WVGA (
n
o
t
popula
t
ed)
Key
p
a
d
c
o
n
n
e
ctor C
N2
0
Reset
t
able
F
u
s
e
F
1
TOP
On-Board Keypad S1–S7
Fast Ethernet J16
SD Card Socket CN31
DC Power J12
HDD Connector CN12
Board-to-Board Connector CN73
Coin Cell Battery B1
Bottom
Personality Board
Camera
Epson VGA Dis­play Connector (underneath LCD)
R
es
e
t
Bu
t
t
o
n
Battery Connector
Personality Board
Personality Board
i.MX31 3-Stack Quick Start Guide for Linux
10
Figure 1.3 Personality Board
Page 13
About the Boards
Table 1.6 Personality Board Physical Features
Type Physical Feature
Connectors • CN12: 44-position dual row, 2 mm header for HDD
• CN13: GPS module connector
• CN14: 2.0 M pixel CMOS sensor connector
• CN16: Debug port for WiFi and Bluetooth module
• CN31: SD card socket
• CN70: 40-pin ZIF connector for HDD
• CN73: 500-pin connector to CPU Engine board (in demo configuration) or Debug board (in development configuration)
• J10: Mini-USBOTG high speed connector
• J12: 5.0 VDC power connector
• J14: Epson VGA display connector
• J15: GiantPlus QVGA smart display connector
• J16: 10/100 BT Fast Ethernet Connector
• J18: Standard USB host high speed connector
• J19: Audio and video connector
Personality Board
Battery • B1: Coin cell battery
Buttons • S7–S17: Onboard keypad
Fuse • F1: Resetable fuse
Antennas • E1: WiFi Antenna
• E2: Bluetooth antenna
i.MX31 3-Stack Quick Start Guide for Linux
11
Page 14
About the Boards
Personality Board
12
i.MX31 3-Stack Quick Start Guide for Linux
Page 15
Getting Started
Unpack the Kit
The 3-Stack Platform System is shipped wi th the items listed in Table 2.1.
Table 2.1 3-Stack Development Kit Contents
Type Items
Boards • CPU board
• Debug board
• Personality board
Cables • RS-232 serial cable
• Ethernet straight cable
• High-speed USB cables with mini AB connectors for OTG
• High-speed cable with standard A to mini B connectors
• Mini-USB adaptor
2
Power Supply • 5.0V/2.4A universal power supply kit
Paperwork • CD-ROMs: Content CD
• End-User License Agreement
• Quick Start Guide (this document)
• Warranty card
• Freescale Support card
Verify that all the items are contained in the package. See Figure 2.1. Take out the three boards from their anti-static bags and check the boards for any visible
damage.
i.MX31 3-Stack Quick Start Guide for Linux
13
Page 16
Getting Started
RS-232
CD-ROM
Ethernet Straight
Min-AB USB OTG
A to Mini B USB Cable
CPU Board
Debug Board
Universal Power Supply
Personality Board
Unpack the Kit
Figure 2.1 PDK Kit Contents
i.MX31 3-Stack Quick Start Guide for Linux
14
Page 17
CD-ROM Contents
Table 2.2.identifies the items on the CD-ROM set.
Table 2.2 Development PC Requirements
Type Requirement
Getting Started
CD-ROM Contents
Product Documentation
Software Development Tools
• 3-Stack Platform Product Brief
• Bill of Materials, Schematics, and Gerber files for CPU Board, Personality Board, and Debug Board
• 3-Stack Platform Hardware User’s Guide
• i.MX31 MAX PDK Readme, Linux 2.6.19
• i.MX31 MAX PDK Quick Start Guide, Linux 2.6.19
• i.MX31 MAX PDK Release Notes, Linux 2.6.19
• i.MX31 MAX PDK User’s Guide, Linux 2.6.19
• i.MX31 MAX PDK Reference Manual, Linux 2.6.19
• i.MX31 MAX PDK Hello World Application Note, Linux 2.6.19
• Data sheets for the 3-Stack Platform’s non-Freescale components
• Advanced ToolKit (ATK) User’s Guide
• Linux Toolchain (included in LTIB distribution)
• Linux SDK installation file
• Advanced ToolKit (ATK) software
i.MX31 3-Stack Quick Start Guide for Linux
15
Page 18
Getting Started
Provide a Development PC
Provide a Development PC
To develop applications using the 3-Stack development kit, you need a PC with the requirements shown in Table 2.3.
Table 2.3 Development PC Requirements
Type Requirement
Operating System Linux OS- the following are platforms on which LTIB was
tested.
• Redhat: 7.3, 8.0, 9.0
• Fedora Core: 1, 2, 3
• Debian: 3.1r0 (stable), unstable
• SuSE: 8.2, 9.2, 10.0
Network • Internet access
PC HW • 933 MHz Pentium II or later processor;
2 GHz processor recommended
• 512 MB of RAM; 1 GB recommended
• 1 GB of available space required on system drive
• 10 GB of available hard-disk space
•DVD ROM drive
• 1024x768 or higher resolution display with 256 colors
i.MX31 3-Stack Quick Start Guide for Linux
16
Page 19
Build the Platform
Development Configuration
Personality Board
Debug Board
CPU Board
Demo Configuration
Personality Board
CPU Board
3 Board Stack 2 Board Stack
This chapter explains how to connect the three types of 3-Stack boards (Debug, Personality, CPU) together, to make either a development platform (Personality board + CPU board + Debug board), or a demonstration platform (Personality board + CPU board), and how to connect the 3-Stack platform to your PC. See Figure 3.1
3
.
Figure 3.1 3-Stack Platform Configurations
The three 3-Stack boards in your development kit may already be assembled. If the three boards are already assembled, revi ew the procedures in the following sections, and be sure to configure the debug board appropriately.
• To build a development platform, follow the procedures in “Build a Development
Platform: Assemble 3 Boards” on page 17.
• To build a demonstration platform, follow the procedures in “Build a Demo
Platform: Assemble 2 Boards” on page 21.
Build a Development Platform: Assemble 3 Boards
This section explains how to connect the Personality, Debug, and CPU boards.
i.MX31 3-Stack Development Kit Quick Start Guide
17
Page 20
Build the Platform
Personality
Board
Debug Board
Align boards
Personality Board
Debug Board
1
2
Connect boards
Personality
Board
Debug Board
Build a Development Platform: Assemble 3 Boards
Connect Personality Board to Debug Board
The Personality board connects to the Debug board using a 500-pin connector. The connector is keyed to avoid misconnection, so there is only one way to connect these boards. Connect the Personality board to the Debug board. See Figure 3.2
.
Figure 3.2 Install Personality Board onto Debug Board
i.MX31 3-Stack Development Kit Quick Start Guide
18
Page 21
Personality Board
Debug Board
CPU Board
Flip over Personality/ Debug assembly
1
2
Align boards
3
Connect CPU board to underside of Debug board
Personality Board
Debug
CPU Board
CPU Board
Build the Platform
Build a Development Platform: Assemble 3 Boards
Connect CPU Board to Debug Board
After connecting the Personality board to the Debug board, connect the CPU board to the underside of the Debug board.
Figure 3.3 Align CPU Board and Debug/Personality Board
i.MX31 3-Stack Development Kit Quick Start Guide
19
Page 22
Build the Platform
RS-232 cable
COM port
Female
1
3
4
5
6
DC power
Regulated +5V DC Supply
J2
S4
Configure serial console application.
Set Bootstrap switches (SW5–SW10) to NAND boot
2
Set SW4
Build a Development Platform: Assemble 3 Boards
Connect Development Platform to PC; Run Preloaded Image
Figure 3.4 Connecting the Platform to your PC
To connect the 3-Stack platform to your host PC:
1. Connect one end of an RS-232 serial cable (included in the kit) to a serial port connector (CON4) on the Debug board and connect the other end to a COM port on the host PC.
• Configure SW4-1 to ON.
• Make sure that SW4-8 is ON, to supply power to all three boards.
• Configure SW4-2 to OFF.
2. Confirm that the Bootstrap switches (SW5–SW10) are set for NAND boot. See Table
3.1.
Table 3.1 Boot Mode Setting (SW5–SW10)
Boot Mode Device
UART/USB bootloader
8-bit NAND Flash (2KB page) Ext
SW5 SW6
(Boot4)
X0 0 0 0 0
X1 0 0 0 0
SW7
SW8 SW9 SW10
(Boot3)
i.MX31 3-Stack Development Kit Quick Start Guide
20
Page 23
Build the Platform
Build a Demo Platform: Assemble 2 Boards
3. Connect the regulated 5V power supply to the appropriate power adapter. Plug the power adapter into an electrical outlet and the 5V line connector into the J2 (5V POWER JACK) connector on the Debug board. See Figure 3-5.
4. Start a serial console application on your host PC with the following configuration:
Table 3.2 Serial Console Configuration
Baud Rate 115200
Data Bits
Parity
Stop Bits
Flow Control
8
None
1
None
5. On the Debug board, switch the power switch (S4) to 1.
6. The OS image pre-loaded in the 3-Stack board will boot and the debug messages from the bootloader should now appear on the serial console application on your PC.
Build a Demo Platform: Assemble 2 Boards
This section explains how to make a demonstration platform using the Personality and CPU boards.
To make a demonstration platform, the CPU board is directly connected to the Personality board using the 500-pin connector; the Debug board is not used.
NOTE I f your system is already configured as a development platform (using all three
boards), disconnect all boards from one another.
i.MX31 3-Stack Development Kit Quick Start Guide
21
Page 24
Build the Platform
Personality Board
CPU Board
Personality Board
CPU Board
Flip over Personality/
1
2
Align boards
Personality Board
Personality Board
Personality/CPU Assembly
3
Install CPU board onto underside of Personality board
CPU Board
Build a Demo Platform: Assemble 2 Boards
Connect CPU Board to Personality Board
Connect the CPU board to the Personality board. The connector is keyed to avoid misconnections, so there is only one way to connect the CPU board to the Personality board.
22
Figure 3.5 Install CPU Board onto Personality Board
i.MX31 3-Stack Development Kit Quick Start Guide
Page 25
Build the Platform
CPU/Personality Board
DC power
Regulated +5V DC Supply
J12 power jack is on the underside of the Personality board
1
2
Build a Demo Platform: Assemble 2 Boards
Connect Power Supply; Run Preloaded Demo
1. Connect the regulated 5V power supply to the appropriate power adapter. Plug the 5V
2. The OS image pre-loaded in the 3-Stack should boot and the Linux operating system
Figure 3.6 Connect Personality Board to Power Supply
line into the J12 (5V POWER JACK) connector on the Personality board. See Figure
3.6. Turn the 5V power supply ON.
should appear at the Personality board’s LCD display.
i.MX31 3-Stack Development Kit Quick Start Guide
23
Page 26
Build the Platform
Build a Demo Platform: Assemble 2 Boards
i.MX31 3-Stack Development Kit Quick Start Guide
24
Page 27
Using the Linux Demo Image
After you have assembled the 3-Stack board and powered it up, the Linux image that was loaded to the board will boot up. The first image you will see is the menu for Multimedia Applications.
Linux Menus
There are three important menus for our use: Multimedia Applications, Connectivity, and Settings.
Multimedia Applications Menu
4
The Multimedia applications menu contains the following options:
•Audio Player
• Video Player
•Picture Viewer
• Camera Application
• FM Radio Application
Connectivity Menu
The Connectivity menu contains the following options:
• USB OTG Port
Settings Menu
The Settings menu provides options for changing the appearance, language settings, and volume and display settings, as well as other tools.
i.MX31 3-Stack Development Kit Quick Start Guide
25
Page 28
Using the Linux Demo Image
Downloading Multimedia to the 3-Stack Board
Downloading Multimedia to the 3-Stack Board
Downloading the multimedia content to the 3-Stack board requires the following items:
• An SD card -After the SD card is plugged in, you may load the multimedia files from a PC if the USB Mass Storage Application is launched.
• (Optional) the USBS Mass Storage Application
• A serial connection between the board and the PC (HyperTerminal software can be used). Figure 4-1 shows the configuration for HyperTerminal software. After communication is established, you can view the Linux directories using standard Linux commands. Figure 4-2 illustrates the resulting display on the HyperTerminal.
Figure 4.1 Configuration for HyperTerminal
i.MX31 3-Stack Development Kit Quick Start Guide
26
Page 29
.Select "Yes" and click Next
Using the Linux Demo Image
Downloading Multimedia to the 3-Stack Board
Figure 4.2 HyperTerminal Display
i.MX31 3-Stack Development Kit Quick Start Guide
27
Page 30
Using the Linux Demo Image
Downloading Multimedia to the 3-Stack Board
Using an SD Card
If you have an SD Card with pictures or other multimedia content, you may use the 3-Stack Board to view its content.
To use the SD Card, follow these steps:
1. Insert the SD Card in the SD Card slot, which is located in the lower part of the personality board, just below the USB connectors.
The system displays an SD card image in the left side of the display, and mounts the card in the /mnt/mmcblk0p1 folder. If the mmcblk0p1 folder is not there, then the card may not have the correct format. If so, then enter the following command:
mx31#fsdisk /dev/mmcblk
• For partition, use the n command.
• For type (extended or primary), use p for primary.
• Accept the default options provided by the prompt.
• To save the changes, apply w. The SD card will now be mounted in /mnt.
2. Notice the multimedia file locations. By default, the mult imedia fi les are store d i n th e / mnt/flc/directory. There are three folders: one for pictures, one for music and one for video.
• mx31#cp /mnt/<sd_card/picture_file> /mnt/flc/Pictures
• mx31#cp /mnt/<sd_card/audio_file> /mnt/flc/Music
• mx31#cp /mnt/<sd_card/video_file> /mnt/flc/Video
3. Copy the content on the SD card to those folders, storing the picture files to the Pictures folder, audio files to the Music folder, and video files to the Video folder.
The files are now visible to the multimedia applications.
i.MX31 3-Stack Development Kit Quick Start Guide
28
Page 31
Using the Linux Demo Image
Running the Applications
Using a USB Mass Storage Application
If the SD card is plugged and detected by the system, then you can run the USB Mass Storage application, which allows the system to be seen by a PC as an ext ernal hard disk driver that contains the content stored on the SD card.
This allows you to transfer information from the PC to the system and from the system to the PC.
The information transferred from the PC to the system is stored on the SD card. You can send multimedia files from the PC to the system, store them in the SD card, and then copy them to the /mnt/flc directories
To use a USB mass storage application, follow these steps:
1. Make sure the SD card is plugged in and detected.
2. Connect a B-type to mini-AB cable from the USB mini-AB port (which is the OTG port in the Personality board), to a USB port in the PC.
3. Select the Mass Storage mode.
4. Click on the Launch button. The application is launched, and the PC wil l detect an external mass storage device.
Typically, the drive is seen as Drive F. Now the system ca n load information to this drive as if it were a regular mass storage device.
After the files are stored in the SD card, repeat the steps in the previous section, Usin g an SD Card, to make the files visible to the Multimedia applic ations.
Running the Applications
Now that the system contains the multimedia files, you can run the applications. First, see
“Supported Codecs”
Running the Video Application
The Video application enables you to view video files. To use the Video application, follow these steps:
1. In the Multimedia Menu, select the VideoPlayer application.
2. Click on the arrow that is located in the top of the display in the right corner (near the cross button).
A menu displays video options such as Open File, Playlist, and About.
for a description of the software packages supported by the system.
3. Select Open File. The /mnt/flc/Video folder is displayed, listing the files previously saved.
i.MX31 3-Stack Development Kit Quick Start Guide
29
Page 32
Using the Linux Demo Image
Running the Applications
4. Select one file and click Select. The file and reproduction open, providing options to stop, seek, forward, pause,
increase the volume or even play the file in full screen.
Running the Audio Application
The Audio application enables you to listen to music and manage the music files. To use the Audio application, follow these steps:
1. In the Multimedia Menu, select the Audio Player application.
2. Click on the arrow that is located in the top of the display in the right corner (near the cross button).
A menu displays video options such as Open File, Playlist, and About.
3. Select Open File. The /mnt/flc/Music folder is displayed, listing the files previously saved.
4. Select one file and click Select. The file and reproduction open, providing options to stop, seek, forward, pause, or
increase the volume.
Running the Picture Viewer Application
The Picture Viewer application enables you to view and modify the view of images. To use the Picture Viewer application, follow these steps:
1. In the Multimedia Menu, select the Picture Viewer application.
2. Select the Picture Viewer Application The /mnt/flc/Pictures folder is displayed, showing the files previously saved. Click on
a picture to view it.
3. When a picture is selected, options are displayed to manage the image, such as zoom in or zoom out, change picture (to the previous or next image), rotate the picture, and view it full screen.
The next time the system is turned on, the files in the /mnt/flc directories will remain, and you will not need to use the Debug board unless you want to add files.
Running the Camera Application
The Camera application reflects in the displ ay panel th e imag e to which the camera on the board is pointing.
i.MX31 3-Stack Development Kit Quick Start Guide
30
Page 33
Using the Linux Demo Image
Running the Applications
Running the FM Radio Application
The FM Radio application enables you to search and listen to FM radio stations. Search functions include an automatic mode for seeking selected stations and a manual mode for searching for all available stations.
To use the FM Radio application, follow these steps:
1. In the Multimedia Menu, select the FM Radio application.
2. Use the selection control to select a station and the volume control to set the volume.
3. Connect headphones to the board and put on the headphones to listen.
i.MX31 3-Stack Development Kit Quick Start Guide
31
Page 34
Using the Linux Demo Image
Running the Applications
Supported Codecs
Table 4-1 describes the supported video and audio codecs.
Plugin Description Features
mfw_mp3decoder MPEG Layer 3 decoder Play, Pause, Stop, Seek,
Table 4.1 Supported Codecs
metadata query
mfw_wmadecoder WMA7, WMA8, WMA9
decoder
Does not support wma pro and lossless decoders
mfw_aacdecoder AAC LC decoder
Does not support standalone seek in aac files with the adif format.
mfw_h264decoder H264 baseline decoder Play, Pause, Stop, Seek,
mfw_mpeg4decoder MPEG-4/H263 simple profile
decoder
mfw_avidemuxer .avi Parser (H264 + MP3,
MPEG-4 + MP3, DIVX + MP3)
mfw_asfdemuxer .asf Parser (wma + wmv) Play, Pause, Stop, Seek,
mfw_mp4demuxer .mp4 parser (H264 + AAC,
H264 + MP3, MPEG-4 + MP3)
Play, Pause, Stop, Seek, metadata query
Play, Pause, Stop, Seek, metadata query
metadata query
Play, Pause, Stop, metadata query
Play, Pause, Stop, Seek, metadata query
metadata query
Play, Pause, Stop, Seek, metadata query
mfw_v4lsink video YUV420 rendering
mfw_mpeg4encoder MPEG-4/H263 encoder encode only
mp3enc MPEG Layer 3 encoder encode only
V4lsrc Video capture plugin
i.MX31 3-Stack Development Kit Quick Start Guide
32
CSC, rotate, resize
plugin
Page 35
Using the Linux Demo Image
Ready to Begin Your Development?
Ready to Begin Your Development?
If you are ready to develop new applications using the i.MX31 MAX PDK, use the following documents to locate the information required for your development:
i.MX31 3-Stack Platform Hardware User's Guide - provides all of the hardware information for the 3-Stack board, including the connectors, switches, options, and pins.
i.MX31 3-Stack SDK1.2 Release Notes for Linux - provides the tools needed to use the SDK, including the SDK driver availability, and known errors.
SDK1.2 User’s Guide for Linux - explains how to build and modify a Linux image and deploy the image to the 3-Stack board.
SDK1.2 Reference Manual for Linux - provides detailed information about the Linux BSP drivers, including functional information, dependencies, and building options for each driver.
i.MX31 3-Stack SDK1.2 Application Note - explains how to create a simple Hello World application using the LTIB environment from the Linux Package.
For additional information, please use the support information enclosed in your package.
i.MX31 3-Stack Development Kit Quick Start Guide
33
Page 36
i.MX31 3-Stack Development Kit Quick Start Guide
PN 926-23573 Rev B
Loading...