1、最近在使用 TI 的 TMS320DM6437 处理器,安装完 CCS3.3 后,又安装了 DVSDK.可是发现 PSPdriver 下的 example 无法编译通过,经过几天的研究,终于发现了一些环境配置上的细节,整理出来供大家分享。1.安装 CCS3.3,推荐安装默认路径“C:CCSt io_v3.3”,安装时按照提示进行,对于“TI Emulator driver“ 选项可以取消不安装,在有些 XP 系统上,如果不取消此项的安装,会在安装结束后会死机,原因不明。2.完成 CCS3.3 的安装后,再安装 DVSDK,推荐安装默路径“C:dvsdk_1_11_00_00“,安装过程为会提示
2、安装最新的 DSP/BIOS,可以选择不装,如果安装了,会在 CCS3.3 目录中多一个子目录 bios_5_3x_xx(可能与 CCS3.3 自带的 DSP/BIOS 版本不同 ,x 为版本号,根据具体情况有所不同)3.以上两个软件安装完成后,要设置系统环境变量,供编译工具链使用。具体参数设置如下(如果是在默认路径上安装的话)BIOS_INSTALL_DIR C:CCSt io_v3.3bios_5_31_08BIOSDVSDK_INSTALL_DIR C:dvsdk_1_11_00_00BIOSUTILS_INSTALL_DIR C:dvsdk_1_11_00_00biosutils_1_
3、00_02BSL_EVMDM6437_INSTALLDIR C:CCSt io_v3.3boardsICETEK-DM6437-B_V2CE_INSTALL_DIR C:dvsdk_1_11_00_00codec_engine_1_20_02DVSDK_INSTALL_DIR C:dvsdk_1_11_00_00NDK_INSTALL_DIR C:dvsdk_1_11_00_00ndk_1_92_00_22_evalPSP_INCL E_SOC_PATH DM6437PSP_INSTALL_DIR C:dvsdk_1_11_00_00pspdrivers_1_10_00packagesXDC_
4、INSTALL_DIR C:dvsdk_1_11_00_00xdc_2_95_024.设置完成后,CCS3.3/bios_1_xx_xx 下的例子都有可以编译和运行了。但是 C:dvsdk_1_11_00_00pspdrivers_1_10_00 下的例子还不能编译通过。以目录 C:dvsdk_1_11_00_00pspdrivers_1_10_00packagestisdopspdriverssystemdm6437biosevmDM6437 rt 下的例子说明如何配置,使 example 能正常编译。5.用 CCS3.3 找开工程文件 dm6437_evm_ rt_st_sample.pj
5、t,这时如果打开 dm6437_evm_ rt_st_sample.tcf 文件会出错,选择 dm6437_evm_ rt_st_sample.tcf,右键选择 DSP/BIOS config-text edit,打开文本模式,找到“utils.importFile(“ti/sdo/pspdrivers/system/dm6437/bios/evmDM6437/ rt/dm6437_ rt0.tci“);“替换为utils.importFile(“dm6437_ rt0.tci“);保存。这样这个脚本文件就能正常运行了。但是这时编译会提示找不到一些文件。这是因为 XDC 工具读取的路径文件中的
6、路径没有设置设置方法如下:打开 C:dvsdk_1_11_00_00pspdrivers_1_10_00packagestisdopspdriverscommonpsp_xdcpaths_common.dat内容如下-/ DO NOT MOVE OR DELETE THIS LINE JavaScript xdcpaths/ Note: Use /FORWARD/ slashes for all directories!/Section for non-DVSDK users/Section 1 Starts/ Root directory for the PSP Drivers instal
7、lation/ User should modify this variable to point it to the ROOT directory/ of PSP installation directory.pspRootDir = “C:/dvsdk_1_11_00_00/“;/ PSP version number/ If working from clearcase, this variable should be NULL as shown below:/pspversion = “;pspversion = “1_10_00“;/ PSP installation directo
8、ry/ It is the directory where PSP is installed.pspInstallDir =“pspdrivers_“ + pspversion ;/ EDMA3 installation directory/ It is the directory where EDMA3 LLD is installed.edma3InstallDir = “C:/dvsdk_1_11_00_00/edma3_lld_1_05_00“;xdcpaths =/ EDMA3 build directoryedma3InstallDir + “/packages;“ +/ PSP
9、Drivers build directorypspRootDir + pspInstallDir + “/packages;“ +“;/Section 1 Ends/Section for DVSDK users/Section 2 Starts/* For making a release to the DVSDK, Section 1 above needs to be commented and* the code below needs to be un-commented. This is needed in order to incl e* the DVSDK dat file,
10、 so that the standalone sample apps can be built.*/*/var xdcPathsFile;/function getWindowsEnvironmentVar( envvarName )/ var temp = java.io.File.createTempFile(“envVarEchoer“, “.bat“);/ temp.deleteOnExit();/ var out = new java.io.B?redWriter(new java.io.FileWriter(temp);/ out.write( “echo %“ + envvar
11、Name + “%“ ); / out.close();/ var runtime = java.lang.Runtime.getRuntime();/ var proc = runtime.exec( temp.getPath() );/ var status = proc.waitFor();/ var envvar = java.io.B?redReader(new/java.io.InputStreamReader(proc.getInputStream().readLine();/ if (envvar = “ECHO is on.“) / envvar = “;/ / return
12、 (envvar + “).replace( “, “/“, “g“ );/ xdcPathsFile = this.xdcPathsFile;/this.xdcPathsFile = getWindowsEnvironmentVar(“BIOSDVSDK_INSTALL_DIR“);/print( “xdcpaths-common.dat using BIOSDVSDK_INSTALL_DIR=“ + this.xdcPathsFile );/if (xdcPathsFile = “) / throw “Error: Windows environment variable BIOSDVSDK_INSTALL_DIR is not set. Please run Start-Control Panel- .“/load (xdcPathsFile + “/xdcpaths_evmDM648.dat“);/Section 2 Ends */-以上是以我计算机上的安装路径设置的,也就是 TI 推荐的默认安装路径。如果 你没有使用默认安装路径,请根据实际路径设置环境变量和修改本文件。至此,环境就算是配置好了。编译也能正常通过。