Texas Instruments TMS320DM648 DVDP Getting Started Manual
Texas Instruments TMS320DM648 DVDP Getting Started Manual

Texas Instruments TMS320DM648 DVDP Getting Started Manual

Hide thumbs Also See for TMS320DM648 DVDP:

Advertisement

Quick Links

TMS320DM648 DVDP Getting Started
Guide
Literature Number: SPRUEP1A
March 2008

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320DM648 DVDP and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Texas Instruments TMS320DM648 DVDP

  • Page 1 TMS320DM648 DVDP Getting Started Guide Literature Number: SPRUEP1A March 2008...
  • Page 2 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete.
  • Page 3 EVALUATION BOARD/KIT IMPORTANT NOTICE Texas Instruments (TI) provides the enclosed product(s) under the following conditions: This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMON- STRATION, OR EVALUATION PURPOSES ONLY and is not considered by TI to be a finished end-product fit for general consumer use.
  • Page 4 FCC Warning This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMON- STRATION, OR EVALUATION PURPOSES ONLY and is not considered by TI to be a finished end-product fit for general consumer use. It generates, uses, and can radiate radio frequency energy and has not been tested for compliance with the limits of computing devices pursuant to part 15 of FCC rules, which are designed to provide reasonable protection against radio frequency interference.
  • Page 5 Preface About This Guide The TMS320DM648 DVDP (Digital Video Development Platform) is an evaluation platform that showcases the DM648 architecture and lets users evaluate the power and performance of the DM648 as a Multimedia engine. The intended audience is the user who is developing software on the DM648.
  • Page 6 Trademarks Texas Instruments logo Texas Instruments are registered trademarks of Texas Instruments. Trademarks of Texas Instruments include: TI, DaVinci, the DaVinci logo, XDS, Code Composer, Code Composer Studio, Probe Point, Code Explorer, DSP/BIOS, RTDX, Online DSP Lab, DaVinci, TMS320,...
  • Page 7: Table Of Contents

    TMS320DM648 DVDP Overview ........
  • Page 8 Contents Placing an Application in Flash Memory..........A-2 Understanding the Demo Host Software .
  • Page 9: Tms320Dm648 Dvdp Overview

    Chapter 1 TMS320DM648 DVDP Overview This chapter introduces the TMS320DM648 DVDP (Digital Video Development Platform). Topic Page 1.1 Welcome! ..........1–2 1.2 What’s in this Kit? .
  • Page 10: Welcome

    Chapter 4. ❏ Digital Video Software Development Kit (DVSDK) case (from Texas Instruments) ■ CD 1 of 2. Contains Microsoft Windows installer for Codec Engine software and demos and an evaluation version of codecs (H.264...
  • Page 11 ■ CD 1 of 1. Contains Board Support Package (BSP), drivers and diagnostics, Sheldon Instruments PCI host driver, and DM648 EVM-specific installer for Code Composer Studio. This CCStudio install package includes DSP/BIOS, the Fast FlashBurn utility, the Chip Support Package (CSP), and more. TMS320DM648 DVDP Overview...
  • Page 12: What's On The Board

    What’s on the Board? What’s on the Board? The following photograph shows the major components and input/output areas on the DM648 EVM: The numbered areas on this board photo are as follows: 1) Hi-def video input 2) Video outputs (hi-def and S-video) 3) PCI connector 4) a) audio outputs;...
  • Page 13: What's Next

    ❏ DM648 Evaluation Module Technical Reference Guide from Lyrtech Signal Processing, which is provided in the kit ❏ DVEVM updates website: http://www.ti.com/dvevmupdates ❏ Other PDF documents on the CDs included with the DVDP ❏ Lyrtech Signal Processing website: www.lyrtech.com TMS320DM648 DVDP Overview...
  • Page 15: Dvdp Hardware And Software Setup

    Chapter 2 DVDP Hardware and Software Setup This chapter tells you how to set up the DVDP hardware and software. Topic Page 2.1 Setting Up the Hardware ........2–2 2.2 Installing the Software .
  • Page 16: Setting Up The Hardware

    Setting Up the Hardware Setting Up the Hardware To set up the hardware, use the steps that follow: 1) The DVDP is sensitive to static discharges. Use a grounding strap or other device to prevent damaging the board. Be sure to connect communication cables before applying power to any equipment.
  • Page 17 Setting Up the Hardware 3) Verify that the board is set to display the correct video format (NTSC or PAL). Switches are "on" when switched to the top. SW4-3: On: PAL video mode Off: NTSC video mode 4) Install the software using the CDs included with the kit. See Section 2.2, Installing the Software for more details.
  • Page 18 Setting Up the Hardware 6) Connect an S-video cable from a video display to the EVM board’s Standard Definition video Output jack J13. 7) Connect an audio cable from a CD player, microphone, or other audio device to the EVM board’s Audio Line In channels 1 & 2 (stereo jack P3).
  • Page 19 Setting Up the Hardware 9) Connect an Ethernet cable to either of the two RJ-45 jacks, J7 or J8. The demo software detects which port is connected and uses it appropriately. DO NOT attempt to connect both ports to your network simultaneously. If you are connecting directly to a computer, use a crossover cable or connect through a switch or router.
  • Page 20 Setting Up the Hardware Use the SW4-1 switch to select the number of input channels used in each mode of the standalone demo. Also see Section 3.2, Running the Demos in Standalone Mode. Use the SW4-2 switch to select whether the demo starts up running Capture/Preview mode or Encode/Decode mode.
  • Page 21: Installing The Software

    Installing the Software Installing the Software To install the software needed to use the DVDP, follow these steps: 1) If you do not already have CCStudio installed, install the pre- evaluation version CCStudio DM648 from http://www.ti.com/freetools. The CCStudio installation also installs DSP/BIOS and the TI Code Gen Tools, which includes the compiler and linker.
  • Page 22 Installing the Software 3) Optionally use the SoC Analyzer CD to install the SoC Analyzer software. See the SoC Analyzer documentation for details. 4) Install the DVSDK software for your board by following these steps: a) Insert the Digital Video Software Development Kit (DVSDK) CD #1 of 2 and allow the installer to autostart or alternatively run the DM648_DVSDK_setupwin32_1_xx_xx_xx.exe file, where "xx"...
  • Page 23 Installing the Software 6) See the Release Notes HTML file installed with the DVSDK for the latest information about the software in the DVSDK and the index_manuals.html file for links to other documents in the DVSDK. The DVSDK installation creates the following key directories in the default directory, which is C:\dvsdk_1_xx_xx_xx.
  • Page 24 Installing the Software 8) Then, run Code Composer Studio Setup, and follow these substeps to have CCStudio use the target GEL file that is provided in Lyrtech’s install folder: a) Right click the DM648 DSP processor entry in the System Configuration panel.
  • Page 25: Running The Demonstration Software

    Chapter 3 Running the Demonstration Software This chapter explains how to run the software demos provided with the DVDP. Topic Page 3.1 Overview of the Demo Software......3–2 3.2 Running the Demos in Standalone Mode .
  • Page 26: Overview Of The Demo Software

    Overview of the Demo Software Overview of the Demo Software The demo software provided with the DVDP allows you to run examples that encode and/or decode a signal. The examples can be run either entirely on the target (standalone) or via a PC host application. Five example modes are provided: ❏...
  • Page 27 Running the Demos in Standalone Mode See the end of Section 2.1 for basics about the SW4 switch settings. The EVM is shipped with the SW4-2 switch set for Passthrough mode (also called "Preview" or "Capture/Display"). In this mode, audio and video are captured by the input devices and sent directly to the output devices.
  • Page 28: Running The Demos With The Pc Host Application

    Running the Demos with the PC Host Application Running the Demos with the PC Host Application The target-side demo application is stored in Flash memory and runs automatically when you power up the board. Alternately, you can run the target-side demo application manually by following these steps: 1) If you have not already done so, use CCStudio Setup to select the DM648 platform.
  • Page 29 Running the Demos with the PC Host Application You will see a window similar to the following: If this window does not open, edit the run.bat file with WordPad and change the location of the xdcRoot directory to match your installation of the XDC Tools.
  • Page 30 Running the Demos with the PC Host Application 2) Click the Discover button to find the IP address of the EVM board. (If more than one board is found, the IP and MAC addresses of all boards running the target application are listed in the drop-down, and you can select the one you want.
  • Page 31 Running the Demos with the PC Host Application 6) You can read log messages from the target-side application in the Target Messages area: 7) In the Mode area, select the mode in which you want to run the demo. Then, go to the section indicated in this book for information on choosing files for the mode you selected and running the demo.
  • Page 32 Running the Demos with the PC Host Application 9) In the Output Type area, choose whether you want D1 composite, D1, S-Video, or 1080i (high definition) output. The 1080i format has a resolution of 1408 x 960 if you are using NTSC and 1408 x 1080 if you are using PAL.
  • Page 33 Running the Demos with the PC Host Application 12) The Video Settings tab allows you to make video codec settings. You can select a Codec for any mode other than Preview. You can set additional rates and resolutions for Enc+Dec Loopback mode and Encode to File mode only.
  • Page 34 Running the Demos with the PC Host Application The host application provides these controls for experimental purposes. They allow you to experiment with the limits of performance and quality. If you experiment with them, keep in mind that some settings will necessarily degrade performance and quality. 13) If you select "Decode from File"...
  • Page 35 Running the Demos with the PC Host Application 14) If you select "Encode to File" mode, you can use the Encode to File Settings tab to select file locations to store the encoded output from the target-side application. To select a Video output file, click the "..." button next to the Video field.
  • Page 36: Preview Mode (Capture / Display)

    Running the Demos with the PC Host Application 3.3.1 Preview Mode (Capture / Display) This mode does not use an input file or an output file. It simply captures video from the input video device (for example, a camera) and sends it to the display.
  • Page 37: Compare Codecs Mode

    Running the Demos with the PC Host Application 3.3.5 Compare Codecs Mode This mode provides the ability to view and compare the effects of various codecs on the input video stream. A single input is displayed in four different versions in the organization shown here: MPEG4 Direct encode/decode...
  • Page 38 3-14...
  • Page 39: Rebuilding Dvdp Software

    Chapter 4 Rebuilding DVDP Software This chapter explains how to rebuild the software provided with the DVDP. Topic Page 4.1 Software Overview ........4–2 4.2 Rebuilding the Demo Target Software.
  • Page 40: Software Overview

    APIs within popular operating systems for rapid software implementation. 4.1.1 Software Components The software included with the TMS320DM648 DVDP is the Digital Video Software Development Kit (DVSDK). The following figure shows the software components used for application development on the DM648: Application...
  • Page 41: Rebuilding The Demo Target Software

    Rebuilding the Demo Target Software Rebuilding the Demo Target Software As a way to prepare to develop your own applications, you may modify the target demo applications provided with the DVDP. This document does not discuss in detail how to modify these applications. 4.2.1 Rebuilding the Examples To rebuild the examples, follow these steps:...
  • Page 42 Rebuilding the Demo Target Software exclusive execution-time analysis of codecs, drivers, and tasks shows whether algorithms are performing up to specifications and the impact of preemption on their performance. Data for the SoC Analyzer is collected in real-time from framework instrumentation and is transported over TCP/IP for analysis and visualization.
  • Page 43 Rebuilding the Demo Target Software The dm648_demo.out file was built with device driver instrumentation turned off. However, pre-built instrumented versions of the driver libraries have been provided with the DVSDK product. To use these instrumented drivers, simply follow these steps: 1) Right-click on the demo project in CCStudio, and select the "Configurations"...
  • Page 44 Rebuilding the Demo Target Software 6) SoC Analyzer Control Panel is located at top left corner of screen. Set the following values in Control Panel: ■ Action. Select the "Online Capture" option. ■ Session. Type a new session name like "MyFirstSession". ■...
  • Page 45: Additional Procedures

    Appendix A Additional Procedures This appendix describes optional procedures you may use depending on your setup and specific needs. Topic Page A.1 Using the Bootloader ........A–2 A.2 Replacing the Demo Codec Combinations .
  • Page 46: Using The Bootloader

    Using the Bootloader Using the Bootloader You can select one of the following boot modes using the boot device pins. When the board is reset, it captures the status of these pins and branches to the appropriate code to implement the selected boot method. ❏...
  • Page 47 Placing an Application in Flash Memory 3) The start of the NOR flash contains a binary AIS image of a secondary boot loader, referred to as a User Boot Loader (UBL). The UBL AIS image is parsed and interpreted by the RBL. 4) The UBL AIS image contains AIS commands to initialize the DDR2 memory and the system clock multiplier.
  • Page 48 Placing an Application in Flash Memory A.3.1 Prepping the EVM to boot the Demo Application In order to prepare the DM648 EVM for booting the demo application, there are a number of steps to follow. Note that a Perl interpreter is required to run the "create_ais.bat"...
  • Page 49 Placing an Application in Flash Memory 8) CCStudio displays messages in the stdout window similar to the following: 9) A dialog box then prompts you for a filename for the UBL AIS image. You can enter "none" if you do not want or need to flash the UBL: 10) The UBL.ais file is transferred to the board and the NOR memory is erased and then written.
  • Page 50 Placing an Application in Flash Memory 12) When the application image has been flashed, the CCStudio stdout window shows messages similar to the following: NOTE: Depending on the size of the application image, the downloading and flashing of the image may require some time. For example, the demo application could require as long as six minutes to transfer and flash to the board.
  • Page 51 Understanding the Demo Host Software Understanding the Demo Host Software If you want to modify the host-side demo application, you likely only need to add or remove some buttons and drop-down lists and read and write different target state parameters used by your target application. This can be done by changing the GUI script in Main.js.
  • Page 52 Understanding the Demo Host Software JavaScript's syntax allows C programmers to understand and (to a degree) modify programs written in this language even if they have never seen this language before. To learn how to make nontrivial modifications or to write new JavaScript programs, please refer to this Web page: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide Most C programmers will not need to refer to the JavaScript guide in order to understand the scripts in this section.
  • Page 53 Understanding the Demo Host Software The Rpc.js script (Remote Procedure Call) provides the GUI script with several functions, of which the important ones are: ❏ rpc.connect( ipAddr ): Connects to the target at ipAddr. ❏ rpc.paramGet( paramName ): Gets the state of a target parameter, such as "mode".
  • Page 54 Understanding the Demo Host Software For details about how the Rpc, Fileio, and Ipc modules work, see their scripts directly. They follow certain rules for exchanging information between the host and the target. It is unlikely you will have to change any of those modules.
  • Page 55 Understanding the Demo Host Software print;" and print() is a built-in function, the message appears. If "var debugFxn = function() {}", all calls to debugFxn() are silent. ■ The global variables "rpc" and "fileio" are for target communication. The global variables "display" and "shell" refer to the system screen and the application's window.
  • Page 56 Understanding the Demo Host Software Here is a diagram of the functions in Main.js and their actions: Global - load target comm. scripts - define global variables - call main() main() - create target comm. objects create GUI objects - call layoutWidgets() - call setEventListeners() - loop till the user closes application layoutWidgets()
  • Page 57 Understanding the Demo Host Software A.4.4 Drawing Screen Controls (Widgets) Since we don’t use a graphical editor to draw the host-side application widgets, we lay them out within the script in a recipe-like fashion. For our application window (the "shell"), the script says which groups of widgets are drawn next to, below, or within others.
  • Page 58 Understanding the Demo Host Software The "Connection" frame is a cell in a larger grid, but it could be the only thing on the screen—we'd script it the same way. This needs to be a "Group" container, because we want a visible frame with "Connection" as the text.
  • Page 59 Understanding the Demo Host Software The following code creates the "Connection" frame inside the current widget, and adds the first two elements—the text and field in the first row. Some formatting statements have been omitted to simplify this example. WID( widgets.Group( $w, SWT.NONE ) ); $w.setText( "Connection"...
  • Page 60 Understanding the Demo Host Software The rest of the layout code for the "Connection" frame lays out the "IP address" label, the invisible 7-column "Composite" with its IP address fields and labels, the "Discover" button and combo box, and the "Connect"...
  • Page 61 Understanding the Demo Host Software A.4.5 Reacting to Button Clicks The setEventListeners() function assigns a function to every widget the user can click. The first such assignment—remembering that "w" is an alias for the "myWidgets" hash table—is as follows: w["btnDiscover"].addListener( SWT.Selection, eventFxnBtnDiscover ); That means, when the user clicks the "Discover"...
  • Page 62 Understanding the Demo Host Software uses or by the function itself if it detects some irregularity. That exception travels up the call stack until it is caught. If no function catches it, the application exits in an error with its call stack listed. This behavior frees us from having to check the return status frequently.
  • Page 63 Understanding the Demo Host Software The new thread may print its message between the two main thread's messages or after. The new thread also could run a loop, perhaps sleeping occasionally by calling java.lang.Thread.sleep(<milliseconds>) or yielding the CPU with java.lang.Thread.yield(). This is all standard for any threading system;...
  • Page 64 Understanding the Demo Host Software The main thread sets the text of the "myText" text widget and creates the new thread. But the new thread is not allowed to call the "getText()" method of the w["myText"] object. It can get around this limitation by calling a method "display.syncExec()"...
  • Page 65 Understanding the Demo Host Software Why didn't we use display.syncExec() (that is, the blocking version)? The answer is, we don't want the fileio thread to be blocked on what is a less important task—updating the widgets—and be less responsive to the data the target sends.
  • Page 66 A-22...
  • Page 67 Index demo Flash 2-6 Ittiam Systems 1-3 audio modes 3-2 cable 2-4 running host application 3-4 inputs 1-4 running standalone 3-2 output 1-4, 2-4 directories 2-9 AV sample files 1-2 DM648 DSP 1-4 documentation, additional 1-5 drivers 2-7 DVDP 1-2 DVSDK board CD case 1-2...
  • Page 68 Index host demo A-7 PCI connector 1-4 running 3-4 power connector 1-4 power supply 2-5 Preview mode 3-12 iDebug project configuration 4-5 installation hardware 2-2 RCA jack 2-3 software 2-7 release project configuration 4-5 instrumentation 4-5 resolution 3-3 IP address 3-6 RJ-45 Ethernet jacks 1-4, 2-5 iRelease project configuration 4-5 Ittiam Systems CD 1-3...

Table of Contents