没有合适的资源?快使用搜索试试~ 我知道了~
首页TMS320DM3730_Software_Developers_Guide
Thanks you for choosing the TMS320DM3730 Evaluation Module (EVM) for your application. The purpose of this guide is to get you going with developing software for the TMS320DM3730 on a Linux development host only.
资源详情
资源评论
资源推荐
TMS320DM3730 Software Developers Guide
Contents
1 Welcome to the TMS320DM3730 Software Developer's Guide•
2 Starting your software development
2.1 Setting up the DVSDK♦
2.2 Writing your own "Hello World!" application and executing
it on the target
♦
•
3 Running the pre-installed applications on the target file system
3.1 Running the DVSDK demos from the command line♦
3.2 Running the DSPLink examples♦
3.3 Running the C6Accel apps♦
3.4 Running the DMAI apps
3.4.1 Decode examples◊
3.4.2 Encode examples◊
3.4.3 Loopback examples◊
3.4.4 Display examples◊
♦
3.5 Running the Digital Video Test Bench (DVTB)♦
3.6 Running the Qt/Embedded examples♦
3.7 Running GStreamer pipelines♦
3.8 Running 3D Graphics Demos♦
•
4 DVSDK software overview and support
4.1 TI Worldwide Technical Support♦
4.2 Creating a Linux application♦
4.3 Creating a DSPLink application♦
4.4 Creating a C6Run application♦
4.5 Creating a C6Accel application♦
4.6 Creating a DMAI multimedia application♦
4.7 Creating a Qt/Embedded application♦
4.8 Creating a GStreamer application♦
•
5 Additional Procedures
5.1 Setting up cross compilation environment♦
5.2 Rebuilding the DVSDK components♦
5.3 Creating your own Linux kernel image♦
5.4 Setting up Tera Term♦
5.5 Integrating a new Codec in the DM3730 DVSDK♦
5.6 How to create an SD card♦
5.7 How to copy boot loaders to NAND flash♦
5.8 Adding Wifi and Bluetooth support♦
•
Welcome to the TMS320DM3730 Software
Developer's Guide
Thanks you for choosing the TMS320DM3730 Evaluation Module (EVM) for your application. The purpose
of this guide is to get you going with developing software for the TMS320DM3730 on a Linux development
host only.
TMS320DM3730 Software Developers Guide
Welcome to the TMS320DM3730 Software Developer's Guide 1
Note! This Software Developer's Guide (SDG) supports version 4.00 of the TMS320DM3730 DVSDK which
is only for Linux host development.
Note! This guide assumes you have already followed the Quick Start Guide (QSG) for setting up your EVM
and installing the Digital Video Software Development Kit (DVSDK). If you have not done this yet, please do
so now before continuing. You can find a hard copy contained with your EVM. Alternatively you can find the
QSG PDF and various other documentation in the 'docs' directory of the DVSDK installation directory.
Note! All instructions in this guide are for Ubuntu 10.04 LTS. At this time, it is the only supported Linux host
distribution for development.
Note! In previous DVSDK releases there has been a Getting Started Guide explaining how to set up the
DVSDK. This document replaces and extends the Getting Started Guide for DVSDK 4.xx.
Throughout this document there will be commands spelled out to execute. Some are to be executed on the
Linux development host, some on the Linux target and some on the u-boot (bootloader) prompt. They are
distinguished by different command prompts as follows:
host $ <this command is to be executed on the host>
target # <this command is to be executed on the target>
u-boot :> <this command is to be executed on the u-boot prompt>
Starting your software development
Your DVSDK should be installed before you continue. Throughout this document it will be assumed you have
an environment variable DVSDK which points to where your DVSDK is installed. You can set it as follows
(the following assumes that DVSDK was installed at default location):
host $ export DVSDK="${HOME}/ti-dvsdk_dm3730-evm_xx_xx_xx_xx"
Setting up the DVSDK
The DVSDK comes with a script for setting up your Ubuntu 10.04 LTS development host as well as your
target boot environment. It is an interactive script, but if you accept the defaults by pressing return you will
use the recommended settings. This is recommended for first time users. Note that this script requires internet
access as it will update your Ubuntu Linux development host with the packages required to develop using the
DVSDK. Before executing the script make also sure that the SD card received with the EVM or an SD card
prepared as described in the section below "How to create an SD card" is inserted in the EVM SD card reader.
Execute the script using:
host $ ${DVSDK}/setup.sh
If you accepted the defaults during the setup process, you will now have set up your development host and
target to:
Boot the Linux kernel from your development host using TFTP. On your development host the Linux
kernel is fetched from /tftpboot by default.
1.
TMS320DM3730 Software Developers Guide
Starting your software development 2
Boot the Linux file system from your development host using NFS. On your development host the
Linux target file system is located at ${HOME}/targetfs
2.
Minicom is set up to communicate with the target over RS-232. If you want to use a windows host for
connecting to the target instead, see the #Setting_up_Tera_Term section.
3.
If you start minicom on your Linux development host using minicom -w (or Tera Term on Windows) and
power cycle the EVM, Linux will boot.
After Linux boots up, login into the target using root as the login name.
Note! The Matrix application launcher is not launched automatically in the development filesystem. If you
would like to start it, execute the following command on the target board:
target # /etc/init.d/matrix-gui start
Make sure you have terminated the Matrix before running any other applications from the command line:
target # /etc/init.d/matrix-gui stop
Writing your own "Hello World!" application and executing
it on the target
This section shows how to create/build an application on your host development PC and execute a basic Linux
application on your booted target filesystem.
1. Create your own work directory on the host PC and enter it:
host $ mkdir ${HOME}/workdir
host $ cd ${HOME}/workdir
2. Create a new C source file:
host $ gedit helloworld.c
Enter the following source code:
#include <stdio.h>
int main()
{
printf("Hello World!\n");
}
Save the file and exit.
3. Create a basic makefile:
host $ gedit Makefile
Enter the following:
TMS320DM3730 Software Developers Guide
Setting up the DVSDK 3
# Import the variables from the DVSDK so that you can find the DVSDK components
include ${DVSDK}/Rules.make
helloworld:
# Make sure that you use a tab below
$(CSTOOL_PREFIX)gcc -o helloworld helloworld.c
Save the file and exit. Note that the gap before $(CSTOOL_PREFIX)gcc corresponds to a tab. If it is filled
with spaces instead you will get build errors.
4. Make sure the $DVSDK variable is still set using:
host $ echo $DVSDK
This command should print your DVSDK installation directory. If it doesn't, you will have to set it again as
described in the beginning of this document. Compile the application:
host $ make helloworld
As a result, an executable called helloworld is generated in ${HOME}/workdir
5. You now have your own application, but you need to create a directory and copy it to your NFS exported
filesystem to make it visible by the target:
host $ mkdir ${HOME}/targetfs/home/root/dm3730
host $ cp helloworld ${HOME}/targetfs/home/root/dm3730
6. On your target this application will be accessible from /home/root/dm3730/helloworld. Execute
it on your target:
target # /home/root/dm3730/helloworld
You should now see the following output:
Hello World!
Congratulations! You now have your own basic application running on the target.
Running the pre-installed applications on the
target file system
The filesystem comes with a number of prebuilt applications (which can be rebuilt inside the DVSDK). This
section shows how to execute those applications in the provided filesystem.
The loadmodule files provided for the different applications within the filesystem are specifically
designed to work with the applications referred to in this section. If you would like to run different
application parameters or pipelines given it's supported by the device, the CMEM module's pool
parameters in the provided loadmodule files may need to be adjusted accordingly based on different
memory needs. Information on how to do this can found in the CMEM Overview on TI's embedded
processor wiki page.
•
TMS320DM3730 Software Developers Guide
Running the pre-installed applications on the target file system 4
Running the DVSDK demos from the command line
The DVSDK multimedia demos can be launched from the Matrix application launcher. There is a copy
installed in your NFS mounted target filesystem as well. First enter the demo directory on your target:
target # cd /usr/share/ti/dvsdk-demos/
You need to load the kernel modules configured to run the DVSDK demos:
target # ./loadmodules.sh
You can view information on options available to the demos using these commands:
target # cat encode.txt
target # cat decode.txt
After reading up on the options, you can execute the demos from the command line like this:
target # ./encode <options>
target # ./decode <options>
Note that there are multimedia clips installed under /usr/share/ti/data on the target.
If you prefer to run the demos using a graphical user interface (instead of the textual one), you can pass in the
-o option to do so.
Running the DSPLink examples
The DSPLink comes with a few sample application. To run them enter this directory on the target
target # cd /usr/share/ti/ti-dsplink-examples/
Then load the DSPlink kernel module required for the DSPLink examples
target # ./ti-dsplink-examples-loadmodules.sh
Execute the following script to run the example application
target # ./ti-dsplink-examples-run.sh
The target terminal window will output the results of the examples executed. The examples can be run
individually (vi ti-dsplink-examples-run.sh for proper parameters to individual examples).
When finished running DSPLink examples, the DSPLink kernel module can be unloaded
target # ./ti-dsplink-examples-unloadmodules.sh
TMS320DM3730 Software Developers Guide
Running the DVSDK demos from the command line 5
剩余32页未读,继续阅读
qiufeng_xz
- 粉丝: 0
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 27页智慧街道信息化建设综合解决方案.pptx
- 计算机二级Ms-Office选择题汇总.doc
- 单链表的插入和删除实验报告 (2).docx
- 单链表的插入和删除实验报告.pdf
- 物联网智能终端项目设备管理方案.pdf
- 如何打造品牌的模式.doc
- 样式控制与页面布局.pdf
- 武汉理工Java实验报告(二).docx
- 2021线上新品消费趋势报告.pdf
- 第3章 Matlab中的矩阵及其运算.docx
- 基于Web的人力资源管理系统的必要性和可行性.doc
- 基于一阶倒立摆的matlab仿真实验.doc
- 速运公司物流管理模式研究教材
- 大数据与管理.pptx
- 单片机课程设计之步进电机.doc
- 大数据与数据挖掘.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2